/* MindCraft – hlavní styly (2026) */

:root {
  --ink: #0c0c0d;
  --ink-2: #17171a;
  --ink-3: #26262b;
  --paper: #f5f0e8;
  --paper-2: #ebe3d6;
  --white: #ffffff;
  --text: #1b1b1f;
  --muted: #5d5a55;
  --muted-dark: #a7a39c;
  --orange: #ff6a1a;
  --orange-ink: #c84a07;
  --cyan: #2cc6d8;
  --cyan-ink: #0b7f8d;
  --violet: #7a5af5;
  --line: rgba(12, 12, 13, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -8px rgba(0,0,0,.18);
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: .9rem;
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-lede { font-size: 1.1875rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background-color .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8340; }
.btn-ghost { border-color: var(--line-dark); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: #dcd8d1; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a.is-current { color: var(--white); }
.nav .nav-cta { background: var(--white); color: var(--ink); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--orange); color: var(--ink); }
.nav .nav-cta.is-current { color: var(--ink); background: var(--orange); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; color: var(--white); cursor: pointer; border-radius: 12px;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- Hero ---------- */
.hero { background: #000; color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 800; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .eyebrow { color: var(--cyan); }
.hero .lede { font-size: 1.25rem; color: #cfcac2; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art img { width: 100%; aspect-ratio: 1456/816; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); }
.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.stats div { min-width: 120px; }
.stats dt { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--white); }
.stats dd { margin: 6px 0 0; font-size: .9375rem; color: var(--muted-dark); max-width: 14em; line-height: 1.35; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 32px; }
  .hero-art { order: -1; }
}

/* ---------- Apps ---------- */
.apps { padding: 104px 0; background: var(--paper); }

.principles {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.principles li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm); padding: 18px;
  font-size: .9688rem; line-height: 1.45; color: var(--muted);
}
.principles strong { color: var(--text); }
.principles svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--orange-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip span { font-size: .8125rem; color: var(--muted); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.is-active span { color: var(--muted-dark); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.app-card[hidden] { display: none; }
.app-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; flex: 0 0 72px; box-shadow: 0 0 0 1px var(--line); background: var(--paper-2); }
.app-head h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.app-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .875rem; color: var(--muted); }
.tag { font-weight: 700; font-size: .75rem; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.tag-cj { background: #ffe6d6; color: #8a3200; }
.tag-mat { background: #dff4f7; color: #075963; }
.tag-zem { background: #e9e4ff; color: #46309c; }
.tag-lit { background: #e3f1e0; color: #2f5a27; }
.tag-hra { background: #1b1b1f; color: #ffffff; }
.app-desc { font-size: .9688rem; color: var(--muted); margin-bottom: 18px; flex: 1 0 auto; }
.shots {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -24px 20px; padding: 0 24px 6px; scroll-padding-inline: 24px; scrollbar-width: thin;
}
.shots img {
  height: 200px; width: auto; flex: 0 0 auto; border-radius: 10px;
  scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line); background: var(--paper);
}
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.app-small { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

.appstore {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: 7px 16px 7px 12px; border-radius: 10px; min-height: 48px;
  transition: background-color .15s, transform .15s;
}
.appstore:hover { background: var(--ink-3); transform: translateY(-1px); }
.appstore svg { width: 24px; height: 24px; fill: currentColor; }
.appstore span { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.05; letter-spacing: -0.01em; }
.appstore small { font-family: var(--font-body); font-weight: 500; font-size: .6875rem; letter-spacing: .02em; }

.apps-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 40px; align-items: stretch; }
.custom-app { background: var(--orange); color: var(--ink); border-radius: var(--radius); padding: 32px; }
.custom-app h3 { font-size: 1.625rem; }
.custom-app p { max-width: 36em; }
.apps-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.apps-links a {
  display: block; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--white); text-decoration: none; font-weight: 700;
}
.apps-links a:hover { color: var(--orange-ink); }
@media (max-width: 860px) { .apps-bottom { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--white); padding: 104px 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-text p:not(.eyebrow) { color: #3a3833; }
.about-art img { border-radius: var(--radius); }
.about-art { margin: 0; }
.partners { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partners li { font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-art { order: -1; } }

.services { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.services li { padding: 24px 20px 8px 0; }
.services li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.services h3 { font-size: 1.125rem; }
.services p { font-size: .9375rem; color: var(--muted); }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services li, .services li + li { padding: 20px 16px 4px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Services (Co děláme) ---------- */
.about-grid { margin-bottom: 64px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius);
  background: var(--ink); color: var(--white); text-decoration: none; border: 1px solid transparent;
  transition: transform .2s, border-color .2s;
}
.svc:hover { transform: translateY(-3px); border-color: var(--cyan); }
.svc svg { width: 36px; height: 36px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.5rem; margin: 0; }
.svc p { color: #cfcac2; margin: 0; flex: 1 0 auto; }
.svc-more { font-weight: 700; color: var(--orange); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--ink); color: var(--white); padding: 104px 0; }
.portfolio .eyebrow { color: var(--cyan); }
.portfolio .section-lede, .panel-intro { color: #bdb8b0; }
.panel-intro { max-width: 46em; margin-bottom: 24px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; padding: 6px; background: var(--ink-2); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: #cfcac2;
}
.tabs button:hover { color: var(--white); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); }
@media (max-width: 560px) { .tabs { border-radius: 16px; width: 100%; } .tabs button { flex: 1 1 40%; } }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.work {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ink-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); transition: transform .2s, border-color .2s;
}
.work:hover { transform: translateY(-3px); border-color: var(--cyan); }
.work-img { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-3); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-img--text { display: grid; place-items: center; padding: 16px; text-align: center;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,106,26,.35), transparent 55%), radial-gradient(120% 120% at 100% 100%, rgba(44,198,216,.3), transparent 55%), var(--ink-3); }
.work-img--text span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--white); }
.work-body { padding: 16px 18px 20px; font-size: .9375rem; color: #bdb8b0; line-height: 1.5; }
.work-body strong { display: block; color: var(--white); font-size: 1.0625rem; margin-bottom: 4px; }
.work:hover .work-body strong span { color: var(--cyan); }

.game-feature { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: center; margin-bottom: 28px; padding: 28px; background: var(--ink-2); border-radius: var(--radius); }
.game-feature p { color: #bdb8b0; }
.game-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-shots img { border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; }
.game-feature--mobile { background: radial-gradient(90% 120% at 100% 0%, rgba(122,90,245,.28), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(44,198,216,.18), transparent 60%), var(--ink-2); }
.game-feature h3 { font-size: 1.75rem; }
.game-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan) !important; margin-bottom: 8px; }
.game-feature .appstore { background: var(--white); color: var(--ink); }
.game-feature .appstore:hover { background: #e9e6e1; }
.game-shots--tall { grid-template-columns: repeat(4, 1fr); }
.game-shots--tall img { aspect-ratio: 3/4; }
@media (max-width: 560px) { .game-shots--tall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .game-feature { grid-template-columns: 1fr; } }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .videos { grid-template-columns: 1fr; } }
.yt {
  position: relative; aspect-ratio: 16/9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--orange); }
.yt .play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.inline-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.inline-links a { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-dark); text-decoration: none; font-weight: 600; }
.inline-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Education band ---------- */
.edu-band { background: var(--paper-2); padding: 72px 0; }
.edu-band-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.edu-band-text { flex: 999 1 560px; min-width: 0; }
.edu-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.125rem); margin-bottom: 14px; }
.edu-band-text p:last-child { color: #3a3833; max-width: 46em; margin: 0; }
.edu-band-text a { color: var(--orange-ink); font-weight: 600; }
.edu-band-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.edu-band-actions .btn { justify-content: center; }
@media (max-width: 700px) { .edu-band { padding: 56px 0; } .edu-band-actions { width: 100%; } }

/* ---------- Education ---------- */
.edu { background: var(--paper-2); padding: 104px 0; }
.edu-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.edu-art { margin: 0; }
.edu-art img { border-radius: var(--radius); }
.topics { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topics li { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; border-left: 4px solid var(--orange); }
@media (max-width: 960px) { .edu-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .topics { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); padding: 104px 0; }
.contact .eyebrow { color: var(--cyan); }
.contact .section-lede { color: #bdb8b0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-actions { display: grid; gap: 12px; margin: 28px 0; }
.contact-big {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.75rem);
  padding: 18px 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark);
  overflow-wrap: anywhere;
}
.contact-big:hover { border-color: var(--orange); }
.contact-big svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line-dark); color: #dcd8d1; }
.social a:hover { color: var(--ink); background: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.invoice { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 32px; }
.invoice img { border-radius: 12px; margin-bottom: 18px; }
.invoice dl { margin: 0; display: grid; gap: 14px; }
.invoice dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.invoice dt { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.invoice dd { margin: 0; font-weight: 600; }
.invoice .muted { font-weight: 400; font-size: .9375rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .invoice dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner p { margin: 0; }
.visits { opacity: .6; font-size: .8125rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner a { text-decoration: none; padding: 8px 0; }
.footer-inner a:hover { color: var(--white); }

@media (max-width: 700px) {
  .apps, .about, .portfolio, .edu, .contact { padding: 64px 0; }
  .svc { padding: 22px; }
  .app-card { padding: 20px; }
  .shots { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .shots img { height: 170px; }
  .custom-app, .invoice { padding: 24px; }
}
@media (max-width: 380px) {
  .app-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Animace ---------- */
@keyframes mc-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mc-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-text > * { animation: mc-up .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .3s; }
.hero-text > :nth-child(4) { animation-delay: .45s; }
.hero-text > :nth-child(5) { animation-delay: .6s; }
.hero-art { position: relative; animation: mc-in 1.2s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-art img { position: relative; z-index: 1; animation: mc-float 7s ease-in-out infinite; }
.hero h1 em {
  background: linear-gradient(90deg, var(--orange), #ffb27a, var(--orange));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mc-shine 6s linear infinite;
}
@keyframes mc-shine { to { background-position: -200% 0; } }

.svc-grid .svc.reveal:nth-child(3n+2) { transition-delay: .08s; }
.svc-grid .svc.reveal:nth-child(3n+3) { transition-delay: .16s; }
.app-grid .app-card.reveal:nth-child(3n+2) { transition-delay: .08s; }
.app-grid .app-card.reveal:nth-child(3n+3) { transition-delay: .16s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
