/* Azbuka.cz homepage v1 — styly jsou záměrně omezené na .az-site. */
.az-site {
  --az-ink: #17233a;
  --az-muted: #647087;
  --az-paper: #fffdf8;
  --az-soft: #f4f1e9;
  --az-blue: #244eeb;
  --az-blue-dark: #1635a8;
  --az-red: #e64343;
  --az-yellow: #ffd65a;
  --az-line: #dce1ea;
  --az-green: #16765a;
  color: var(--az-ink);
  background: var(--az-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.az-site *, .az-site *::before, .az-site *::after { box-sizing: border-box; }
.az-site h1, .az-site h2, .az-site h3, .az-site p { margin-top: 0; }
.az-site h1, .az-site h2, .az-site h3 { color: var(--az-ink); font-weight: 800; }
.az-site h1 { font-size: clamp(52px, 8vw, 104px); line-height: .92; letter-spacing: -.065em; margin-bottom: 28px; }
.az-site h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 22px; }
.az-site h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.az-site a { color: inherit; text-decoration: none; }
.az-site button, .az-site textarea { font: inherit; }
.az-site button { cursor: pointer; }
.az-container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }

.az-hero { position: relative; padding: 92px 0 76px; background: radial-gradient(circle at 80% 30%, rgba(255,214,90,.28), transparent 25%), linear-gradient(135deg, #f6f8ff 0%, #fffdf8 48%, #f7eee4 100%); border-bottom: 1px solid var(--az-line); }
.az-hero::before { content: "Б Ж Я"; position: absolute; right: -30px; bottom: -46px; color: transparent; -webkit-text-stroke: 1px rgba(36,78,235,.08); font-size: clamp(100px, 21vw, 360px); font-weight: 900; line-height: .7; letter-spacing: -.08em; pointer-events: none; }
.az-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 76px; align-items: center; }
.az-kicker, .az-section-number { color: var(--az-blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.az-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.az-kicker::before { content: ""; width: 34px; height: 3px; background: var(--az-red); }
.az-lead { max-width: 760px; color: #4f5b70; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.55; }
.az-hero-actions, .az-tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.az-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.az-button:hover { transform: translateY(-2px); }
.az-button-primary { color: #fff !important; background: var(--az-blue); box-shadow: 0 12px 25px rgba(36,78,235,.20); }
.az-button-primary:hover { background: var(--az-blue-dark); }
.az-button-secondary { color: var(--az-ink) !important; background: rgba(255,255,255,.78); border-color: var(--az-line); }
.az-proof { display: flex; flex-wrap: wrap; gap: 12px 25px; padding: 0; margin: 30px 0 0; list-style: none; color: var(--az-muted); font-size: 13px; font-weight: 700; }
.az-proof li::before { content: "✓"; color: var(--az-green); margin-right: 7px; }
.az-hero-panel { position: relative; min-height: 410px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; background: #102765; border-radius: 28px; box-shadow: 0 30px 70px rgba(23,35,58,.20); color: #fff; }
.az-hero-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.az-orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.az-orbit-one { width: 310px; height: 310px; }
.az-orbit-two { width: 210px; height: 210px; }
.az-hero-letter { position: relative; z-index: 1; color: var(--az-yellow); font-family: Georgia, "Times New Roman", serif; font-size: 175px; font-weight: 700; line-height: .85; }
.az-hero-word { position: relative; z-index: 1; margin-top: 22px; font-size: 27px; font-weight: 800; letter-spacing: .08em; }
.az-hero-panel p { position: relative; z-index: 1; color: rgba(255,255,255,.75); font-size: 13px; margin: 4px 0 0; }
.az-hero-panel strong { color: #fff; }

.az-jump { position: sticky; top: 0; z-index: 20; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--az-line); backdrop-filter: blur(15px); }
.az-jump-inner { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.az-jump-inner::-webkit-scrollbar { display: none; }
.az-jump a { flex: none; padding: 8px 13px; border-radius: 8px; color: var(--az-muted); font-size: 13px; font-weight: 750; }
.az-jump a:hover { color: var(--az-blue); background: #eef1ff; }

.az-section { padding: 95px 0; border-bottom: 1px solid var(--az-line); scroll-margin-top: 80px; }
.az-section-number { display: block; margin-bottom: 23px; }
.az-two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.az-prose p { color: var(--az-muted); margin-bottom: 20px; }
.az-prose strong { color: var(--az-ink); }
.az-section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 50px; }
.az-section-head > p { color: var(--az-muted); margin-bottom: 8px; }

.az-alphabet-section { background: #f7f9ff; }
.az-alphabet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.az-letter-card { position: relative; min-height: 176px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; overflow: hidden; text-align: left; color: var(--az-ink); background: #fff; border: 1px solid var(--az-line); border-radius: 14px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.az-letter-card::after { content: "kopírovat"; position: absolute; right: 11px; top: 10px; color: #99a2b2; font-size: 8px; font-weight: 800; letter-spacing: .06em; opacity: 0; text-transform: uppercase; transition: opacity .18s ease; }
.az-letter-card:hover, .az-letter-card:focus-visible { transform: translateY(-3px); border-color: #91a5ff; box-shadow: 0 12px 25px rgba(23,35,58,.09); outline: none; }
.az-letter-card:hover::after, .az-letter-card:focus-visible::after { opacity: 1; }
.az-letter-card.is-copied { border-color: var(--az-green); background: #f2fcf8; }
.az-letter { color: var(--az-blue); font-size: 38px; font-weight: 800; line-height: 1; }
.az-cursive { position: absolute; right: 14px; bottom: 42px; color: #d9deea; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-style: italic; line-height: 1; }
.az-letter-card b { margin-top: 14px; font-size: 14px; }
.az-letter-card small { position: relative; z-index: 1; margin-top: auto; color: var(--az-muted); font-size: 11px; line-height: 1.35; }
.az-letter-card.az-tricky { border-top: 4px solid var(--az-red); }
.az-letter-card.az-sign { background: #fff9e6; border-color: #ead999; }
.az-copy-status { margin: 20px 0 0; color: var(--az-muted); font-size: 13px; }
.az-learning-bands { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 35px; }
.az-learning-bands article { padding: 26px; background: #fff; border: 1px solid var(--az-line); border-radius: 14px; }
.az-learning-bands span { color: var(--az-blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.az-learning-bands h3 { margin: 13px 0 8px; }
.az-learning-bands p { color: var(--az-muted); font-size: 14px; margin: 0; }

.az-rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--az-line); border-radius: 18px; overflow: hidden; }
.az-rule-grid article { min-height: 250px; padding: 30px; border-right: 1px solid var(--az-line); border-bottom: 1px solid var(--az-line); }
.az-rule-grid article:nth-child(3n) { border-right: 0; }
.az-rule-grid article:nth-child(n+4) { border-bottom: 0; }
.az-rule-grid article > span { color: var(--az-blue); font-size: 11px; font-weight: 800; }
.az-rule-grid h3 { margin: 20px 0 12px; }
.az-rule-grid p { color: var(--az-muted); font-size: 14px; margin: 0; }
.az-callout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 28px 34px; background: var(--az-ink); border-radius: 16px; color: #fff; }
.az-callout-mark { min-width: 160px; color: var(--az-yellow); font-size: 32px; font-weight: 900; }
.az-callout h3 { color: #fff; margin-bottom: 7px; }
.az-callout p { color: #c6ccda; margin: 0; }

.az-tool-section { color: #fff; background: linear-gradient(145deg, #102765, #1635a8); }
.az-tool-section h2, .az-tool-section .az-section-number { color: #fff; }
.az-tool-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.az-tool-grid > div:first-child > p:not(.az-section-number) { color: #cbd5f4; }
.az-tool-note { margin-top: 30px; padding: 18px; color: #d9e0fa; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font-size: 13px; }
.az-translit-card { padding: 32px; color: var(--az-ink); background: #fff; border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,.20); }
.az-translit-card label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.az-translit-card textarea { width: 100%; padding: 15px; resize: vertical; color: var(--az-ink); background: #f8f9fc; border: 1px solid var(--az-line); border-radius: 10px; line-height: 1.5; }
.az-translit-card textarea:focus { border-color: var(--az-blue); outline: 3px solid rgba(36,78,235,.12); }
.az-translit-card .az-tool-actions { margin: 13px 0 22px; }
.az-text-button, .az-copy-output { color: var(--az-blue); background: transparent; border: 0; font-weight: 800; }
.az-copy-output { margin-top: 8px; padding: 6px 0; }
.az-tool-status { min-height: 22px; margin: 8px 0 0; color: var(--az-muted); font-size: 12px; }

.az-writing-grid { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 50px; border: 1px solid var(--az-line); border-radius: 16px; overflow: hidden; }
.az-writing-grid div { min-height: 145px; display: grid; place-items: center; align-content: center; border-right: 1px solid var(--az-line); }
.az-writing-grid div:last-child { border-right: 0; }
.az-writing-grid span { color: #9ca6b6; font-size: 22px; }
.az-writing-grid em { color: var(--az-blue); font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 700; }
.az-writing-grid b { font-size: 11px; }
.az-practice { margin-top: 32px; padding: 34px; background: var(--az-soft); border-radius: 16px; }
.az-practice ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding: 0; margin: 25px 0 0; list-style: none; counter-reset: practice; }
.az-practice li { color: var(--az-muted); font-size: 13px; counter-increment: practice; }
.az-practice li::before { content: counter(practice); display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 12px; color: #fff; background: var(--az-blue); border-radius: 50%; font-size: 11px; font-weight: 800; }
.az-practice strong { color: var(--az-ink); }

.az-mistakes-section { background: #fff8f4; }
.az-mistakes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.az-mistakes-list article { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; padding: 25px; background: #fff; border: 1px solid #eeddd7; border-radius: 14px; }
.az-mistakes-list article > span { display: grid; width: 58px; height: 58px; place-items: center; color: #fff; background: var(--az-red); border-radius: 12px; font-size: 30px; font-weight: 900; }
.az-mistakes-list h3 { margin-bottom: 6px; }
.az-mistakes-list p { color: var(--az-muted); font-size: 14px; margin: 0; }

.az-quiz-section { background: var(--az-yellow); }
.az-quiz-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.az-quiz-grid > div:first-child > p:not(.az-section-number) { color: #5f5123; }
.az-quiz-card { padding: 36px; background: #fff; border: 2px solid var(--az-ink); border-radius: 18px; box-shadow: 12px 12px 0 var(--az-ink); text-align: center; }
.az-quiz-meta { display: flex; justify-content: space-between; color: var(--az-muted); font-size: 12px; }
.az-quiz-letter { color: var(--az-blue); font-size: 110px; font-weight: 900; line-height: 1.2; }
.az-quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.az-quiz-options button { min-height: 50px; color: var(--az-ink); background: #f4f6fb; border: 1px solid var(--az-line); border-radius: 9px; font-weight: 800; }
.az-quiz-options button:hover { border-color: var(--az-blue); }
.az-quiz-options button.is-correct { color: #fff; background: var(--az-green); border-color: var(--az-green); }
.az-quiz-options button.is-wrong { color: #fff; background: var(--az-red); border-color: var(--az-red); }
.az-quiz-feedback { min-height: 25px; margin: 15px 0 0; color: var(--az-muted); font-size: 13px; }

.az-word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.az-word-grid details { padding: 18px 20px; background: #fff; border: 1px solid var(--az-line); border-radius: 10px; }
.az-word-grid summary { cursor: pointer; color: var(--az-blue); font-size: 23px; font-weight: 800; }
.az-word-grid p { margin: 12px 0 0; color: var(--az-muted); font-size: 14px; }
.az-history-section { background: #f4f1e9; }

.az-next-section { color: #fff; background: var(--az-ink); }
.az-next-section h2, .az-next-section h3 { color: #fff; }
.az-next-section .az-section-head > p { color: #b9c0ce; }
.az-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.az-next-grid article { position: relative; padding: 34px; overflow: hidden; background: #22304b; border: 1px solid #394760; border-radius: 16px; }
.az-next-grid article > span { display: inline-block; margin-bottom: 45px; color: var(--az-yellow); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.az-next-grid p { max-width: 500px; color: #bbc3d1; }
.az-next-grid em { color: #8894a9; font-size: 12px; font-style: normal; font-weight: 800; text-transform: uppercase; }

.az-faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 85px; }
.az-faq-list details { padding: 22px 0; border-top: 1px solid var(--az-line); }
.az-faq-list details:last-child { border-bottom: 1px solid var(--az-line); }
.az-faq-list summary { position: relative; padding-right: 40px; cursor: pointer; color: var(--az-ink); font-size: 18px; font-weight: 800; list-style: none; }
.az-faq-list summary::-webkit-details-marker { display: none; }
.az-faq-list summary::after { content: "+"; position: absolute; right: 5px; color: var(--az-blue); font-size: 24px; }
.az-faq-list details[open] summary::after { content: "−"; }
.az-faq-list p { max-width: 760px; margin: 14px 0 0; color: var(--az-muted); font-size: 14px; }

.az-sources { background: #f7f9ff; }
.az-sources h2 { max-width: 700px; }
.az-source-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 75px; }
.az-source-grid ul { padding: 0; margin: 0; list-style: none; }
.az-source-grid li { border-top: 1px solid var(--az-line); }
.az-source-grid li:last-child { border-bottom: 1px solid var(--az-line); }
.az-source-grid a { display: block; padding: 16px 3px; color: var(--az-blue); font-size: 14px; font-weight: 750; }
.az-source-grid a::after { content: " ↗"; }
.az-footer { padding: 42px 0; color: #fff; background: #111a2c; }
.az-footer-inner { display: flex; align-items: center; justify-content: space-between; }
.az-footer strong { font-size: 24px; }
.az-footer p { margin: 2px 0 0; color: #aab3c4; font-size: 13px; }
.az-footer a { color: var(--az-yellow); font-weight: 800; }

@media (max-width: 980px) {
  .az-hero-grid, .az-two-col, .az-section-head, .az-tool-grid, .az-quiz-grid, .az-faq-grid, .az-source-grid { grid-template-columns: 1fr; gap: 42px; }
  .az-hero-copy { order: 1; }
  .az-hero-panel { order: 2; max-width: 590px; width: 100%; }
  .az-alphabet-grid { grid-template-columns: repeat(4, 1fr); }
  .az-rule-grid { grid-template-columns: 1fr 1fr; }
  .az-rule-grid article, .az-rule-grid article:nth-child(3n), .az-rule-grid article:nth-child(n+4) { border-right: 1px solid var(--az-line); border-bottom: 1px solid var(--az-line); }
  .az-rule-grid article:nth-child(2n) { border-right: 0; }
  .az-rule-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .az-writing-grid { grid-template-columns: repeat(4, 1fr); }
  .az-writing-grid div { border-bottom: 1px solid var(--az-line); }
  .az-writing-grid div:nth-child(4n) { border-right: 0; }
  .az-writing-grid div:nth-last-child(-n+4) { border-bottom: 0; }
  .az-practice ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .az-site { font-size: 16px; }
  .az-container { width: min(100% - 28px, 1180px); }
  .az-hero { padding: 60px 0 48px; }
  .az-hero-grid { gap: 38px; }
  .az-hero-panel { min-height: 300px; border-radius: 19px; }
  .az-hero-letter { font-size: 125px; }
  .az-hero-actions .az-button { width: 100%; }
  .az-section { padding: 68px 0; }
  .az-section-head { margin-bottom: 34px; }
  .az-alphabet-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .az-letter-card { min-height: 158px; padding: 15px; }
  .az-letter { font-size: 33px; }
  .az-cursive { font-size: 34px; }
  .az-rule-grid { grid-template-columns: 1fr; }
  .az-rule-grid article, .az-rule-grid article:nth-child(2n), .az-rule-grid article:nth-last-child(-n+2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--az-line); }
  .az-rule-grid article:last-child { border-bottom: 0; }
  .az-callout { grid-template-columns: 1fr; padding: 25px; }
  .az-callout-mark { min-width: 0; }
  .az-translit-card { padding: 20px; }
  .az-writing-grid { grid-template-columns: repeat(2, 1fr); }
  .az-writing-grid div:nth-child(2n) { border-right: 0; }
  .az-writing-grid div:nth-child(4n) { border-right: 0; }
  .az-writing-grid div:nth-last-child(-n+4) { border-bottom: 1px solid var(--az-line); }
  .az-writing-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .az-practice ol { grid-template-columns: 1fr; }
  .az-mistakes-list, .az-next-grid, .az-word-grid, .az-learning-bands { grid-template-columns: 1fr; }
  .az-mistakes-list article { grid-template-columns: 52px 1fr; padding: 20px; }
  .az-mistakes-list article > span { width: 48px; height: 48px; font-size: 25px; }
  .az-quiz-card { padding: 24px 18px; box-shadow: 7px 7px 0 var(--az-ink); }
  .az-quiz-letter { font-size: 90px; }
  .az-footer-inner { align-items: flex-start; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .az-site *, .az-site *::before, .az-site *::after { scroll-behavior: auto !important; transition: none !important; }
}