:root {
  --navy: #10265d;
  --navy-2: #243b70;
  --text: #34405a;
  --muted: #6d7890;
  --cream: #fffaf1;
  --paper: #fffdf8;
  --white: #ffffff;
  --purple: #8f5cf6;
  --purple-dark: #7140d8;
  --purple-soft: #f1e9ff;
  --blue: #4298ef;
  --green: #7cc329;
  --orange: #ff942b;
  --line: #eadfce;
  --shadow: 0 16px 38px rgba(42, 55, 91, 0.12);
  --shadow-soft: 0 7px 20px rgba(42, 55, 91, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 4%, rgba(154, 111, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 10% 0, rgba(255, 235, 176, 0.24), transparent 25rem),
    linear-gradient(180deg, #fffdf8 0%, #fffaf7 100%);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong, b { font-weight: 800; }

.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.section-anchor { scroll-margin-top: 96px; }
.eyebrow { color: #628d28; font-size: 11px; font-weight: 900; letter-spacing: 0.13em; }
.fill-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.status-correct { color: #4e8d12 !important; }
.status-wrong { color: #a14a2d !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 223, 206, 0.72);
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(14px);
}
.navigation { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand-logo { width: 190px; flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo img { width: 100%; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 29px; color: #252d42; font-size: 14px; font-weight: 800; }
.main-nav a { position: relative; padding: 27px 0 23px; }
.main-nav a:hover { color: var(--purple); }
.main-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; border-radius: 2px; background: var(--purple); }
.header-cta,
.button,
.game-action,
.form-submit,
.form-success button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-cta { padding: 12px 17px; color: #fff; background: linear-gradient(135deg, #a56cff, #7b46e7); box-shadow: 0 10px 24px rgba(143, 92, 246, 0.28); }
.header-cta:hover,
.button:hover,
.game-action:hover,
.form-submit:hover { transform: translateY(-2px); }
.header-cta:focus-visible,
.button:focus-visible,
.game-action:focus-visible,
.form-submit:focus-visible,
.brand-logo:focus-visible,
.footer-logo:focus-visible,
.main-nav a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(143, 92, 246, 0.28);
  outline-offset: 4px;
}
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span { display: block; height: 2px; border-radius: 4px; background: var(--navy); }
.menu-toggle span + span { margin-top: 5px; }

/* Hero */
.hero-section { position: relative; overflow: hidden; padding: 32px 0 10px; }
.hero-grid { min-height: 470px; display: grid; grid-template-columns: 49% 51%; align-items: center; }
.hero-copy { position: relative; z-index: 3; padding: 16px 0 40px; }
.hero-copy h1,
.section-heading h2,
.final-cta h2,
.lead-modal h2,
.form-success h2 {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -1.55px;
}
.hero-copy h1 { max-width: 720px; margin: 18px 0 23px; font-size: clamp(45px, 4.4vw, 64px); line-height: 1.04; }
.hero-copy p { max-width: 620px; margin: 0 0 25px; color: #4c566c; font-size: 18px; line-height: 1.58; }
.hero-copy small { display: block; max-width: 590px; margin-top: 25px; color: #667186; font-size: 13px; line-height: 1.5; }
.hero-copy small b { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; }
.button.primary { color: #fff; background: linear-gradient(135deg, #a56cff, #7b46e7); box-shadow: 0 11px 23px rgba(123, 70, 231, 0.27); }
.button.secondary { padding: 12px 20px; color: #6f46d8; border: 2px solid #ccb9ff; background: #fff; }
.hero-art { position: relative; z-index: 2; min-width: 0; align-self: end; }
.hero-art img { width: 108%; max-width: none; height: auto; margin-left: -3%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(91, 71, 34, 0.08)); animation: hero-float 5s ease-in-out infinite; }
.hero-star { position: absolute; left: 49%; top: 31px; color: #ffc526; font-size: 30px; animation: drift 4.8s ease-in-out infinite; }
.hero-cloud { position: absolute; left: 43%; top: 105px; width: 70px; height: 27px; border-radius: 50px; background: #dff3ff; animation: drift 5.5s ease-in-out infinite; }
.hero-cloud::before,
.hero-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.hero-cloud::before { width: 34px; height: 34px; left: 11px; top: -15px; }
.hero-cloud::after { width: 44px; height: 38px; right: 5px; top: -18px; }
.hero-leaf { position: absolute; left: 46%; top: 220px; width: 18px; height: 33px; border-radius: 100% 0 100% 0; background: #7bc82a; transform: rotate(26deg); }
@keyframes hero-float { 50% { transform: translateY(-7px); } }
@keyframes drift { 50% { translate: 0 -8px; } }

/* Benefit strip */
.feature-strip { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -8px; }
.feature-card { min-height: 114px; display: grid; grid-template-columns: 112px 1fr 35px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #eee2d4; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.feature-card > img { width: 106px; height: 80px; object-fit: contain; }
.feature-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 19px; line-height: 1.2; }
.feature-card p { margin: 0; color: #58657a; font-size: 14px; line-height: 1.42; }
.feature-dot { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.feature-dot.blue { background: var(--purple); }
.feature-dot.green { background: #82c720; }
.feature-dot.orange { background: var(--orange); }

/* Section headings */
.section-heading h2 { margin: 9px 0 0; font-size: clamp(35px, 3.8vw, 49px); line-height: 1.1; }
.games-heading { margin-bottom: 24px; }
.games-heading > div { max-width: 920px; }
.games-heading p { max-width: 760px; margin: 12px 0 0; color: #667186; font-size: 16px; line-height: 1.62; }
.section-heading.compact { display: flex; align-items: center; gap: 10px; }
.section-heading.compact h2 { font-size: 31px; letter-spacing: -1.6px; }
.section-heading.compact > span:not(.leaf-mark) { color: #ffc526; font-size: 22px; }
.leaf-mark { width: 15px; height: 26px; border-radius: 100% 0 100% 0; background: #79bf22; transform: rotate(18deg); }
.section-intro { max-width: 720px; margin: 9px 0 17px; color: #667186; font-size: 15px; line-height: 1.55; }

/* Activity selector */
.games-section { padding: 88px 0 74px; }
.game-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.game-tab-card { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--navy); text-align: center; cursor: pointer; transition: transform 0.18s ease; }
.game-tab-card:hover { transform: translateY(-2px); }
.game-tab-card:focus-visible { outline: 3px solid rgba(139, 92, 246, 0.28); outline-offset: 3px; border-radius: 18px; }
.game-tab-visual { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid rgba(218, 206, 185, 0.72); border-radius: 18px; box-shadow: var(--shadow-soft); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.game-tab-visual img { width: 100%; height: 100%; object-fit: contain; }
.game-tab-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 43px; padding: 0 4px; }
.game-tab-meta span { color: #8f6ef0; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.game-tab-meta strong { color: #26345c; font-size: 17px; line-height: 1.15; }
.game-tab-card.is-active .game-tab-visual { border-color: rgba(143, 92, 246, 0.5); box-shadow: 0 10px 22px rgba(122, 75, 214, 0.1); }
.game-tab-card.is-active .game-tab-meta span { color: #7140d8; }
.game-tab-card.is-active .game-tab-meta strong { color: #26345c; }
.game-tab-memory .game-tab-visual { background: #f2eafd; }
.game-tab-sort .game-tab-visual { background: #fff1ca; }
.game-tab-odd .game-tab-visual { background: #fff7e6; }
.game-tab-match .game-tab-visual { background: #fff7ea; }
.game-tab-count .game-tab-visual { background: #fff5dd; }
.game-tab-trace .game-tab-visual { background: #e8f4ff; }

/* Game area */
.game-panel { position: relative; min-height: 478px; overflow: hidden; padding: 32px; border: 1px solid #c9e5f5; border-radius: 27px; background: linear-gradient(135deg, #edf8ff, #f8fcff 58%, #ebf7ff); box-shadow: var(--shadow); }
.game-panel:focus-visible { outline: 3px solid rgba(66, 152, 239, 0.25); outline-offset: 4px; }
.game-layout { min-height: 412px; display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(265px, 0.72fr); align-items: center; gap: 36px; }
.game-guide { min-height: 315px; display: flex; flex-direction: column; justify-content: center; padding: 29px; border: 1px solid #e1e7ea; border-radius: 21px; background: #fff; box-shadow: var(--shadow-soft); }
.game-number { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: 0.13em; }
.game-guide h3 { margin: 8px 0; color: var(--navy); font-size: 28px; font-weight: 900; line-height: 1.1; }
.game-guide p { margin: 0 0 17px; color: #5b667a; font-size: 14px; line-height: 1.55; }
.game-guide small { min-height: 18px; margin-top: 11px; color: #6d7890; font-size: 12px; line-height: 1.45; text-align: center; }
.game-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 11px; color: var(--navy); font-size: 15px; }
.game-stats span:first-child { color: var(--purple); }
.game-stats b { color: var(--navy); }
.game-action { width: 100%; min-height: 48px; padding: 12px 15px; color: #fff; background: linear-gradient(135deg, #a56cff, #7b46e7); box-shadow: 0 9px 17px rgba(123, 70, 231, 0.23); }
.game-action.secondary { color: #6f46d8; border: 2px solid #ccb9ff; background: #fff; box-shadow: none; }
.play-dot { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; background: #fff; color: var(--purple); font-size: 9px; }
.progress-bars { display: flex; gap: 7px; margin: 5px 0 11px; }
.progress-bars i { flex: 1; height: 7px; border-radius: 10px; background: #e4e8ec; }
.progress-bars i.is-done { background: var(--green); }
.game-message { color: var(--navy) !important; font-weight: 900 !important; }

/* Pexeso */
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 12px; }
.memory-card { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; perspective: 900px; }
.memory-card:disabled { cursor: default; }
.memory-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.44s cubic-bezier(0.2, 0.65, 0.3, 1); }
.memory-card.is-open .memory-card-inner { transform: rotateY(180deg); }
.memory-card-face { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; box-shadow: 0 5px 14px rgba(36, 78, 112, 0.16); }
.memory-card-back { background: #cfeaff; }
.memory-card-back img { width: 100%; height: 100%; object-fit: cover; }
.memory-card-front { transform: rotateY(180deg); border: 2px solid #efdfc3; background: #fffaf0; }
.memory-card-front img { width: 100%; height: 100%; padding: 14%; object-fit: contain; }
.memory-card.is-matched { animation: card-pop 0.35s ease; }
@keyframes card-pop { 50% { transform: scale(1.06); } }

/* Triedenie a odlišný prvok */
.sorting-game,
.odd-game,
.matching-game,
.counting-game,
.trace-game { text-align: center; }
.sorting-game > p,
.odd-game > p,
.matching-game > p,
.counting-game > p,
.trace-game > p { min-height: 24px; margin: 0 0 14px; color: var(--navy); font-weight: 900; }
.sorting-object { position: relative; width: min(190px, 45%); aspect-ratio: 1; margin: 0 auto 20px; border: 2px solid #f0dfbf; border-radius: 26px; background: #fffaf0; box-shadow: var(--shadow-soft); }
.sorting-object img { width: 100%; height: 100%; padding: 14%; object-fit: contain; }
.sorting-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sorting-targets button { min-height: 145px; padding: 9px; border: 2px solid #e2e8e9; border-radius: 20px; background: #fff; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.sorting-targets button:hover,
.odd-grid button:hover,
.matching-choices button:hover { transform: translateY(-3px); border-color: #8fc5ef; }
.sorting-targets button span { position: relative; display: block; height: 100px; }
.sorting-targets button img { width: 100%; height: 100%; padding: 4px 15%; object-fit: contain; }
.sorting-targets button b { color: var(--navy); font-size: 16px; }
.odd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.odd-grid button { position: relative; aspect-ratio: 1; border: 2px solid #e2e8e9; border-radius: 20px; background: #fff; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.odd-grid img { width: 100%; height: 100%; padding: 14%; object-fit: contain; }

/* Priraďovanie */
.matching-board { display: grid; grid-template-columns: minmax(130px, 0.8fr) 54px minmax(0, 1.7fr); align-items: center; gap: 16px; }
.matching-focus { position: relative; width: min(210px, 100%); aspect-ratio: 1; justify-self: center; overflow: hidden; border: 2px solid #efdfc3; border-radius: 25px; background: #fffaf0; box-shadow: var(--shadow-soft); }
.matching-focus img,
.matching-choices img { width: 100%; height: 100%; padding: 14%; object-fit: contain; }
.matching-arrow { color: var(--purple); font-size: 42px; font-weight: 900; }
.matching-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.matching-choices button { position: relative; aspect-ratio: 1; border: 2px solid #e2e8e9; border-radius: 20px; background: #fff; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }

/* Počítanie */
.counting-objects { min-height: 245px; display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); align-items: center; justify-content: center; gap: 8px; padding: 10px 7%; border: 2px dashed #c8e3f3; border-radius: 24px; background: rgba(255, 255, 255, 0.62); }
.counting-objects span { position: relative; display: block; min-height: 104px; }
.counting-objects img { width: 100%; height: 100%; padding: 5%; object-fit: contain; }
.counting-answers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 15px; }
.counting-answers button { min-height: 68px; display: grid; place-items: center; padding: 8px; border: 2px solid #dce6ee; border-radius: 13px; background: #fff; color: var(--navy); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.counting-answers button:hover { transform: translateY(-2px); border-color: var(--purple); }
.count-dot-pattern { width: 43px; height: 43px; display: grid; grid-template-columns: repeat(3, 9px); grid-template-rows: repeat(3, 9px); place-content: center; gap: 4px; }
.count-dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.count-dot.is-visible { background: var(--navy); box-shadow: 0 1px 0 rgba(16, 40, 96, 0.12); }
.counting-answers button:hover .count-dot.is-visible,
.counting-answers button:focus-visible .count-dot.is-visible { background: var(--purple); }

/* Grafomotorika */
.trace-canvas-wrap { overflow: hidden; border: 2px solid #d6eaf6; border-radius: 24px; background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.9), transparent 18rem), linear-gradient(135deg, #fffdf6, #f5fbff); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.45); }
#traceCanvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.trace-progress { height: 10px; overflow: hidden; margin: 4px 0 8px; border-radius: 20px; background: #e6ebef; }
.trace-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #9ddc46); transition: width 0.15s ease; }
.trace-percent { display: block; margin-bottom: 12px; color: var(--navy); font-size: 14px; text-align: center; }
.trace-status { display: block; min-height: 38px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.trace-status.status-correct { color: #4e8d12; font-weight: 800; }
.trace-status.status-wrong { color: #a14a2d; font-weight: 800; }

/* Success overlay */
.celebration { position: absolute; left: 50%; top: 50%; z-index: 10; min-width: 210px; padding: 24px 42px; border-radius: 23px; background: #fff; color: #e9a900; text-align: center; box-shadow: 0 24px 70px rgba(17, 39, 93, 0.27); opacity: 0; pointer-events: none; transform: translate(-50%, -42%) scale(0.82); transition: 0.25s ease; }
.celebration.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.celebration span { font-size: 31px; }
.celebration b,
.celebration small { display: block; color: var(--navy); }
.celebration b { font-size: 24px; }
.celebration small { margin-top: 3px; color: var(--muted); font-size: 12px; }

/* Themes */
.themes-section { padding: 5px 0 70px; }
.theme-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.theme-card { overflow: hidden; border: 1px solid rgba(218, 206, 185, 0.72); border-radius: 17px; background: #fff; box-shadow: var(--shadow-soft); }
.theme-image { position: relative; height: 112px; padding: 8px 12px 4px; }
.theme-image img { width: 100%; height: 100%; padding: 5px 12%; object-fit: contain; }
.theme-card.family .theme-image { background: #fff1ca; }
.theme-card.autumn .theme-image { background: #ffe5ad; }
.theme-card.animals .theme-image { background: #dff2c5; }
.theme-card.transport .theme-image { background: #d8f2ff; }
.theme-card.christmas .theme-image { background: #eaddff; }
.theme-card.zoo .theme-image { background: #d8f5e9; }
.theme-card.more .theme-image { background: linear-gradient(135deg, #fff1ca, #e9ddff 55%, #d8f5e9); }
.theme-card > b { display: block; padding: 8px; border-top: 1px solid rgba(225, 218, 207, 0.7); color: #26345c; text-align: center; }
.theme-card.more > b { color: #6a4ca0; }
.theme-collage { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 2px; padding: 12px 8px; }
.theme-collage img { position: static; width: 100%; height: 82px; padding: 2px !important; object-fit: contain; }

.svp-highlight { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 22px; margin-top: 24px; padding: 23px 26px; border: 1px solid #cddfb3; border-radius: 22px; background: linear-gradient(135deg, #f7fde9, #fffdf8); box-shadow: var(--shadow-soft); }
.svp-badge,
.benefit-icon { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; flex: 0 0 76px; background: transparent; }
.svp-badge img,
.benefit-icon img { width: 100%; height: 100%; object-fit: contain; }
.svp-highlight h3 { margin: 0 0 7px; color: var(--navy); font-size: 22px; }
.svp-highlight p { margin: 0; color: #5e6a55; font-size: 14px; line-height: 1.6; }

/* Why Mydrala */
.benefits-section { padding: 4px 0 68px; }
.benefits-panel { padding: 21px 22px 19px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 17px; }
.benefit-grid article { min-height: 158px; display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 14px; padding: 15px; border: 1px solid #e8e0d6; border-radius: 18px; }
.benefit-grid h3 { margin: 0 0 5px; color: var(--navy); font-size: 18px; }
.benefit-grid p { margin: 0; color: #667186; font-size: 13.5px; line-height: 1.48; }

/* Final CTA */
.final-cta { padding: 18px 0 55px; }
.final-cta-inner { min-height: 275px; overflow: hidden; display: grid; grid-template-columns: 62% 38%; align-items: center; gap: 18px; padding: 28px 38px; border: 1px solid #d8c3ff; border-radius: 25px; background: linear-gradient(120deg, #fdf7ff, #f0e6ff); }
.final-cta h2 { margin: 11px 0 10px; font-size: clamp(33px, 3.5vw, 48px); line-height: 1.08; }
.final-cta p { max-width: 650px; margin: 0 0 19px; color: #596477; font-size: 16px; line-height: 1.55; }
.final-cta-art { position: relative; min-height: 310px; display: flex; align-items: flex-end; justify-content: center; }
.final-cta-art::before { content: ""; position: absolute; inset: 24px 16px 16px; border-radius: 28px; background: radial-gradient(circle at 50% 30%, rgba(180, 146, 255, 0.28), rgba(180, 146, 255, 0.08) 55%, transparent 72%); }
.mascot-note { position: absolute; top: 6px; left: 50%; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid #dfd0ff; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-soft); white-space: nowrap; }
.mascot-teacher { position: relative; z-index: 1; width: min(92%, 360px); max-height: 360px; height: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(77, 40, 131, 0.15)); }

/* Footer */
.site-footer { padding: 27px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; }
.footer-brand-block { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { width: 142px; display: block; }
.footer-logo img { width: 100%; height: auto; }
.footer-grid p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 22px; font-size: 12px; }
.footer-links a:hover { color: var(--purple); }
.footer-grid > span { color: var(--muted); font-size: 12px; }

/* Contact form */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(11, 27, 62, 0.7); backdrop-filter: blur(7px); }
.lead-modal { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 36px; border-radius: 25px; background: #fffdf8; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34); }
.modal-close { position: absolute; right: 15px; top: 13px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4f0e9; cursor: pointer; font-size: 24px; }
.modal-close:hover { background: #ebe4da; }
.lead-modal h2 { margin: 10px 45px 8px 0; font-size: 33px; }
.lead-modal > p { margin: 0 0 19px; color: #667186; font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-modal form label { color: var(--navy); font-size: 12px; font-weight: 900; }
.lead-modal form label small,
.message-label small { color: var(--muted); font-size: 10px; }
.form-grid label,
.message-label { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; }
.lead-modal input,
.lead-modal textarea,
.lead-modal select { width: 100%; padding: 11px; border: 1px solid #d9d9d6; border-radius: 10px; outline: none; background: #fff; color: #26324b; }
.lead-modal input:focus,
.lead-modal textarea:focus,
.lead-modal select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(143, 92, 246, 0.13); }
.message-label { margin-top: 13px !important; }
.consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 13px; color: #667186 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.5; }
.consent input { width: auto; margin-top: 3px; }
.consent a { color: var(--purple); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; }
.form-error { margin: 12px 0 0; padding: 11px 13px; border: 1px solid #f1b5b9; border-radius: 10px; background: #fff1f2; color: #9b2732; font-size: 13px; line-height: 1.45; }
.form-submit { width: 100%; min-height: 50px; margin-top: 15px; padding: 13px 17px; color: #fff; background: linear-gradient(135deg, #a56cff, #7b46e7); box-shadow: 0 9px 20px rgba(123, 70, 231, 0.25); }
.form-submit:disabled { opacity: 0.65; cursor: wait; }
.form-success { padding: 34px 15px; text-align: center; }
.form-success > span { width: 65px; height: 65px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #eaf8d7; color: var(--green); font-size: 35px; }
.form-success h2 { margin: 17px 0 8px; font-size: 34px; }
.form-success p { margin: 0 0 20px; color: #667186; font-size: 15px; line-height: 1.55; }
.form-success button { padding: 12px 24px; color: #fff; background: linear-gradient(135deg, #8f5cf6, #6d3fd4); }

/* Legal page */
.legal { min-height: 100vh; padding: 45px 15px; background: var(--cream); }
.legal article { width: min(850px, 100%); margin: auto; padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.legal-brand { display: inline-flex; margin-bottom: 22px; color: var(--navy); font-weight: 800; }
.legal h1 { margin: 0 0 5px; color: var(--navy); font-size: 43px; font-weight: 900; line-height: 1.1; letter-spacing: -2px; }
.legal h2 { margin-top: 28px; color: var(--navy); font-size: 20px; }
.legal p { font-size: 15px; line-height: 1.7; }
.legal a { color: var(--purple); }

/* Responsive */
@media (max-width: 1160px) {
  .container { width: min(100% - 46px, 1100px); }
  .hero-grid { grid-template-columns: 50% 50%; }
  .feature-card { grid-template-columns: 88px 1fr 32px; }
  .feature-card > img { width: 84px; height: 70px; }
  .feature-card h3 { font-size: 17px; }
  .game-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .navigation { min-height: 72px; }
  .brand-logo { width: 168px; }
  .main-nav { position: absolute; left: 23px; right: 23px; top: 73px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav a:hover::after { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; padding-bottom: 12px; }
  .hero-copy h1,
  .hero-copy p,
  .hero-copy small { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art img { width: 104%; margin: 16px 0 0 -2%; }
  .hero-star { left: 86%; }
  .hero-cloud,
  .hero-leaf { display: none; }
  .feature-strip { grid-template-columns: 1fr; margin-top: 6px; }
  .feature-card { grid-template-columns: 110px 1fr 35px; }
  .feature-card > img { width: 104px; height: 78px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-guide { min-height: 0; }
  .matching-board { grid-template-columns: 1fr; }
  .matching-arrow { transform: rotate(90deg); font-size: 30px; }
  .matching-focus { width: min(180px, 46%); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 0; }
  .final-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .final-cta p { margin-left: auto; margin-right: auto; }
  .final-cta .button { margin-inline: auto; }
  .final-cta-art { min-height: 0; padding-top: 10px; }
  .mascot-note { position: static; transform: none; margin: 0 auto 8px; }
  .mascot-teacher { max-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand-block { align-items: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 26px); }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero-section { padding-top: 22px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero-copy p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .feature-card { grid-template-columns: 90px 1fr; }
  .feature-card > img { width: 84px; height: 70px; }
  .feature-dot { display: none; }
  .games-section { padding: 68px 0 55px; }
  .section-heading h2 { font-size: 36px; }
  .game-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-tab-meta strong { font-size: 15px; }
  .game-panel { min-height: 0; padding: 18px; border-radius: 22px; }
  .game-layout { min-height: 0; gap: 22px; }
  .memory-grid { gap: 8px; }
  .memory-card-face { border-radius: 12px; }
  .odd-grid { grid-template-columns: repeat(2, 1fr); }
  .sorting-targets { gap: 10px; }
  .sorting-targets button { min-height: 125px; }
  .counting-objects { min-height: 220px; grid-template-columns: repeat(2, minmax(85px, 1fr)); padding: 8px 10%; }
  .counting-objects span { min-height: 88px; }
  .counting-answers { grid-template-columns: repeat(3, 1fr); }
  .counting-answers button { min-height: 64px; }
  .theme-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme-image { height: 105px; }
  .svp-highlight { grid-template-columns: 1fr; padding: 20px; text-align: center; }
  .svp-badge { margin: auto; }
  .svp-highlight h3 { font-size: 20px; }
  .svp-badge,
  .benefit-icon { width: 68px; height: 68px; flex-basis: 68px; }
  .benefit-grid article { grid-template-columns: 68px 1fr; }
  .final-cta-inner { padding: 25px 18px; }
  .lead-modal { padding: 28px 20px; }
  .lead-modal h2 { font-size: 29px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .legal article { padding: 28px 20px; }
  .legal h1 { font-size: 34px; }
}

@media (max-width: 420px) {
  .brand-logo { width: 146px; }
  .main-nav { left: 13px; right: 13px; }
  .game-tab-visual { padding: 7px; border-radius: 15px; }
  .game-tab-meta { min-height: 48px; }
  .game-tab-meta strong { font-size: 14px; }
  .theme-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* MYDRALA 2026-08-03 – hlavný smer: škôlky, spolupráca a Facebook */
.hero-section + .games-section {
  padding-top: 72px;
}
.hero-actions .button {
  min-height: 52px;
}
.button.facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  color: #3159a7;
  border: 2px solid #c8d5ee;
  background: #fff;
  box-shadow: 0 8px 20px rgba(49, 89, 167, 0.08);
}
.button.facebook:hover {
  color: #21488f;
  border-color: #9eb6e0;
  transform: translateY(-1px);
}
.teacher-invitation .final-cta-inner {
  background: linear-gradient(120deg, #fffafd, #f1e8ff 62%, #eef8ff);
}
.teacher-invitation p strong {
  color: var(--navy);
}
.teacher-invitation-note {
  margin-top: -5px !important;
  font-weight: 800;
  color: #47336f !important;
}
@media (max-width: 780px) {
  .hero-section + .games-section { padding-top: 56px; }
  .hero-actions .button { width: min(100%, 410px); }
}


/* MYDRALA 2026-08-03 – human CTA language and mascot-led hero */
.hero-grid {
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  gap: 34px;
}
.hero-art {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(143, 92, 246, 0.18);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(48, 39, 85, 0.14);
}
.hero-art img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
  animation: none;
}
.hero-actions .button {
  min-width: 0;
}
.button.facebook {
  color: #5b35b7;
  border: 1px solid rgba(112, 69, 216, 0.30);
  background: linear-gradient(135deg, #ffffff, #f7f1ff);
  box-shadow: 0 10px 24px rgba(91, 53, 183, 0.09);
}
.button.facebook:hover {
  color: #46249d;
  border-color: rgba(112, 69, 216, 0.52);
  background: linear-gradient(135deg, #ffffff, #efe5ff);
  box-shadow: 0 13px 28px rgba(91, 53, 183, 0.14);
}
.teacher-invitation .eyebrow {
  letter-spacing: 0.12em;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { width: min(100%, 820px); margin: 8px auto 0; }
}
@media (max-width: 600px) {
  .hero-art { border-radius: 22px; }
  .button.facebook { padding-inline: 16px; }
}

/* MYDRALA 2026-08-03 – final human-language CTA refinement */
.header-cta,
.hero-actions .button,
.teacher-invitation .button {
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.header-cta {
  max-width: 250px;
  padding-inline: 16px;
  font-size: 13px;
}
.button.facebook {
  color: #1768c5;
  border-color: rgba(24, 119, 242, 0.34);
  background: linear-gradient(135deg, #ffffff, #f1f7ff);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.09);
}
.button.facebook:hover {
  color: #0f56a5;
  border-color: rgba(24, 119, 242, 0.58);
  background: linear-gradient(135deg, #ffffff, #e7f2ff);
  box-shadow: 0 13px 28px rgba(24, 119, 242, 0.14);
}
.hero-copy p {
  max-width: 650px;
}
.teacher-invitation-note {
  font-weight: 700;
}
@media (max-width: 1160px) {
  .header-cta { display: none; }
}
@media (max-width: 680px) {
  .hero-actions .button,
  .teacher-invitation .button {
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding-inline: 18px;
  }
}

/* Keep the agreed header CTA readable on wide screens. */
@media (min-width: 1161px) {
  .header-cta {
    min-width: 282px;
    max-width: none;
    font-size: 12.5px;
    white-space: nowrap;
  }
}
