/* =====================================================================
   EDUnino - novy design stranek predmetu (navrh 22. 10. 2026)
   Stranky index2, zak-student2, rodic2, ucitel2. Bez Bootstrapu.
   Barvy predmetu se nastavi na <body class="s-cj"> (s-cj, s-ma, s-aj, s-nj); zbytek je spolecny.
   ===================================================================== */
:root {
  --ink: #1f2430; --muted: #5d6475; --line: #e6e9f0; --bg: #ffffff; --soft: #f5f7fb;
  --radius: 20px; --shadow: 0 12px 32px -14px rgba(16, 38, 82, .28);
  --c: #4CAF50; --cl: #E8F5E9; --cd: #1B5E20; --cm: #388E3C;
}
.s-cj { --c: #4CAF50; --cl: #E8F5E9; --cd: #1B5E20; --cm: #388E3C; }
.s-ma { --c: #2196F3; --cl: #E3F2FD; --cd: #0D47A1; --cm: #1976D2; }
.s-aj { --c: #F44336; --cl: #FFEBEE; --cd: #B71C1C; --cm: #D32F2F; }
.s-nj { --c: #FF9800; --cl: #FFF3E0; --cd: #E65100; --cm: #F57C00; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cm); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cm); margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
section { padding: clamp(52px, 7vw, 92px) 0; }
.alt { background: var(--soft); }
.tint { background: var(--cl); }

/* tlacitka */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c); color: #fff; box-shadow: 0 8px 20px -10px var(--c); }
.btn-primary:hover { background: var(--cm); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hlavicka */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.nav .logo img { height: 40px; width: auto; }
.tabs { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 4px; list-style: none; background: var(--soft); border-radius: 999px; }
.tabs a { display: block; padding: 7px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.tabs a:hover { color: var(--cd); }
.tabs a[aria-current="page"] { background: var(--c); color: #fff; }
.nav .btn { padding: 9px 18px; font-size: .9rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* uvod */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(52px, 7vw, 88px); background:
  radial-gradient(700px 360px at 90% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
  radial-gradient(600px 320px at 0% 100%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), var(--soft); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 16px; }
.hero h1 em { font-style: normal; color: var(--c); }
.hero .pic { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero .pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero .pic.full img { aspect-ratio: auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.ticks li::before { content: "✓"; color: var(--c); font-weight: 800; margin-right: 6px; }

/* obchody s aplikacemi */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stores a { display: block; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 46px; width: auto; }

/* dva sloupce text + obrazek */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .media img { margin: 0 auto; max-height: 460px; width: auto; }
.split .media.photo img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }

/* seznamy s fajfkou */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--cl); color: var(--cd); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.checks li b { color: var(--ink); }

/* karty */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--cl); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .checks { margin-top: 6px; flex: 1; }
.card .more { margin-top: 18px; font-weight: 600; color: var(--cd); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card.role { border-top: 6px solid var(--c); transition: transform .2s, box-shadow .2s; }
.card.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* cisla */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.stat { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--c); letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* kroky */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 30px 24px 24px; border: 1px dashed #cfd6e4; border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* reference */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.quote { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.quote p { margin: 0; color: var(--ink); font-size: .96rem; flex: 1; }
.quote p::before { content: "„"; color: var(--c); font-weight: 800; font-size: 1.4rem; line-height: 0; margin-right: 2px; }
.quote p::after { content: "“"; color: var(--c); font-weight: 800; }
.who { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--cl); color: var(--cd); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.who small { display: block; font-weight: 400; color: var(--muted); }

/* tabulka vysledku */
.results { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: clamp(14px, 3vw, 28px); margin-top: 32px; box-shadow: 0 2px 0 var(--line); overflow-x: auto; }
.share { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.share a { text-decoration: none; font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; background: var(--cl); color: var(--cd); }
.share a:hover { background: var(--c); color: #fff; }

/* vyzva */
.band { background: linear-gradient(120deg, var(--cd), var(--c) 70%); color: #fff; border-radius: 28px; padding: clamp(30px, 5vw, 54px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.band h2 { color: #fff; }
.band p { margin: 10px 0 0; opacity: .92; }
.band .btn-primary { background: #fff; color: var(--cd); box-shadow: none; }

/* dalsi aplikace */
.apps-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.apps-row a { width: 84px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.apps-row a:hover { transform: translateY(-4px); }

/* paticka */
footer { background: #0f1729; color: #c9d1e3; padding: 56px 0 28px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: #c9d1e3; text-decoration: none; font-size: .92rem; }
footer a:hover { color: #fff; }
.foot-logo { background: #fff; border-radius: 12px; padding: 8px 14px; display: inline-block; }
.foot-logo img { height: 34px; width: auto; }
.social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.social a { font-size: .82rem; border: 1px solid #2b3550; padding: 5px 12px; border-radius: 999px; }
.copy { border-top: 1px solid #222c45; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #8b95ad; }

@media (max-width: 960px) {
  .hero-in, .split, .band { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .cards, .cards.four, .quotes, .steps { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .tabs { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; border-radius: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .tabs.open { display: flex; }
  .burger { display: block; }
  .nav .btn { display: none; }
}
@media (max-width: 620px) {
  .cards, .cards.two, .cards.four, .quotes, .steps, .stats, .foot { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .stores img { height: 40px; }
}

/* horni banner a stazeni aplikace podle systemu (25. 10. 2026) */
#banner { background: linear-gradient(90deg, var(--cd), var(--cm)); color: #fff; overflow: hidden; max-height: 160px; transition: max-height .45s ease, opacity .45s ease; }
#banner.hide { max-height: 0; opacity: 0; }
.edn-nobanner #banner { display: none; }
.banner-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 24px; font-size: .95rem; text-align: center; }
.banner-btn { display: inline-flex; align-items: center; background: rgba(255, 255, 255, .18); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .15s, transform .15s; }
.banner-btn:hover { background: rgba(255, 255, 255, .3); transform: translateY(-1px); }
#banner .x { background: transparent; border: 0; color: #fff; opacity: .8; cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 0 4px; }
#banner .x:hover { opacity: 1; }
.dl { margin-top: 22px; max-width: 560px; }
.dl [hidden] { display: none !important; }
.os-box { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); color: var(--ink); }
.os-icon { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.os-main { flex: 1 1 auto; min-width: 0; text-align: center; }
.os-line { margin: 0 0 10px; font-size: 1rem; }
.os-line b { color: var(--cd); }
.os-box .btn { width: 100%; justify-content: center; }
.os-fallback { margin: 0; font-size: .9rem; color: var(--muted); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c); }
.dl-card a { display: block; }
.dl-card a img { width: 100%; height: auto; }
.dl-card .qr { display: block; width: 100%; max-width: 132px; height: auto; margin: 10px auto 0; image-rendering: pixelated; }
.dl-cap { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.band .dl-cap { color: rgba(255, 255, 255, .85); }
.band .dl { margin-top: 0; }
@media (max-width: 620px) {
  .os-box { flex-direction: column; gap: 10px; }
  .os-icon { width: 60px; height: 60px; border-radius: 15px; }
  .dl-card .qr, .dl-cap { display: none; }
  .dl-card { padding: 8px; }
  .banner-in { font-size: .88rem; padding: 8px 14px; }
}
