/* aktivnijizak.cz
   Layout idea: sídliště at dusk. Navy sky, panel-house skyline, a yellow "line" that
   runs through the page like a metro line and connects schools (kroužky) and camp days (kempy). */
:root {
  --navy: #0a1b55;
  --ink: #071038;
  --blue: #1a4fe0;
  --sky: #e3ecff;
  --paper: #f5f7ff;
  --yellow: #ffc81a;
  --sun: #ff8a1f;
  --metro: #e2001a;
  --white: #fff;
  --muted: #56608a;
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: .98; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 9vw, 124px); }
h2 { font-size: clamp(40px, 5.6vw, 76px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.hl { color: var(--yellow); }
.kicker { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; transform: skewX(-20deg); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 16, 56, .88); backdrop-filter: blur(14px); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .1); }
.top__in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; }
.logo b { color: var(--yellow); font-weight: 800; }
.logo small { opacity: .6; font-weight: 600; font-size: 1em; }
.switch { margin-left: auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, .1);
  border-radius: 999px; padding: 4px; font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.switch a { position: relative; z-index: 1; padding: 7px 20px; text-decoration: none; text-align: center; border-radius: 999px; transition: color .25s; white-space: nowrap; }
.switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--yellow); transition: transform .45s cubic-bezier(.6, 1.6, .4, 1), opacity .3s; opacity: 0; }
body[data-web="krouzky"] .switch::before { opacity: 1; }
body[data-web="kempy"] .switch::before { opacity: 1; transform: translateX(100%); }
body[data-web="krouzky"] .switch a:first-child, body[data-web="kempy"] .switch a:last-child { color: var(--ink); }
.switch a:hover { color: var(--yellow); }
body[data-web="krouzky"] .switch a:first-child:hover, body[data-web="kempy"] .switch a:last-child:hover { color: var(--ink); }

.btn { --bg: var(--yellow); --fg: var(--ink); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer;
  font: 800 italic 21px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  box-shadow: 0 6px 0 rgba(7, 16, 56, .28); transition: transform .15s, box-shadow .15s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .65) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(7, 16, 56, .28); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(7, 16, 56, .28); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(4px); }
.btn--navy { --bg: var(--navy); --fg: var(--white); }
.btn--line { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 2px currentColor; }
.btn--line:hover, .btn--line:active { box-shadow: inset 0 0 0 2px currentColor; }
.btn--sm { padding: 10px 18px; font-size: 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: radial-gradient(120% 90% at 80% 0%, #2a5cf0 0%, var(--navy) 45%, var(--ink) 100%); overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__in { position: relative; padding: clamp(40px, 7vw, 86px) 0 clamp(150px, 17vw, 230px); }
.hero h1 span { display: block; }
.hero h1 .hl { transform: rotate(-2deg); transform-origin: left; }
.hero__lead { max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); margin-top: 30px; color: #d6e0ff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sky { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 15vw, 210px); z-index: -1; }
.sky .b { fill: #050b2b; }
.sky .b2 { fill: #0d2470; }
.sky .w { fill: #1c2f7a; transition: fill .8s; }
.sky .w.on { fill: var(--yellow); }
.sky .ground { fill: var(--paper); }
.sticker { position: absolute; display: grid; place-items: center; text-align: center; width: 150px; height: 150px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font: 900 italic 24px/1 var(--f-display); text-transform: uppercase; rotate: 12deg;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .25); animation: wob 5s ease-in-out infinite; }
.sticker small { display: block; font-size: 15px; letter-spacing: .08em; }
@keyframes wob { 50% { rotate: 6deg; translate: 0 -8px; } }

/* home doors */
.doors { display: flex; gap: 18px; margin-top: 40px; min-height: 340px; }
.door { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: 30px; overflow: hidden;
  text-decoration: none; color: var(--white); background: linear-gradient(160deg, #2b62ff, #0f2fa8); transition: flex-grow .55s cubic-bezier(.3, 1.3, .4, 1), transform .3s; }
.door--kempy { background: linear-gradient(160deg, #ffd84a, #ff9d1f); color: var(--ink); }
.door:hover, .door:focus-visible { flex-grow: 1.7; }
.door__art { position: absolute; right: -30px; top: -30px; width: 300px; height: 300px; opacity: .95; transition: transform .7s cubic-bezier(.3, 1.3, .4, 1); }
.door:hover .door__art { transform: rotate(-14deg) scale(1.12); }
.door__tag { font: 700 17px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.door h2 { font-size: clamp(46px, 6vw, 88px); margin: 8px 0 10px; }
.door p { max-width: 26em; }
.door__go { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font: 800 italic 22px/1 var(--f-display); text-transform: uppercase; }
.door__go .ico { transition: transform .25s; }
.door:hover .door__go .ico { transform: translateX(8px); }

/* kempy hero: daylight */
body[data-web="kempy"] .hero { background: linear-gradient(180deg, #1a4fe0 0%, #4f8bff 45%, #ffd25a 100%); }
body[data-web="kempy"] .sky .b { fill: #0a1b55; }
body[data-web="kempy"] .sky .b2 { fill: #1a3fb5; }
body[data-web="kempy"] .sky .w { fill: #2b4fc4; }
.sunball { position: absolute; right: 8%; top: 70px; width: clamp(130px, 18vw, 250px); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 35%, #fff3b0, var(--yellow) 55%, var(--sun)); box-shadow: 0 0 0 26px rgba(255, 216, 74, .22), 0 0 0 60px rgba(255, 216, 74, .12);
  animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 38px rgba(255, 216, 74, .2), 0 0 0 86px rgba(255, 216, 74, .08); } }

/* ---------- marquee ---------- */
.marq { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 4px solid var(--ink); rotate: -1.2deg; margin: -26px -10px 0; position: relative; z-index: 3; }
.marq__t { display: flex; width: max-content; animation: marq 28s linear infinite; }
.marq span { font: 900 italic 30px/1 var(--f-display); text-transform: uppercase; padding: 12px 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marq span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.marq .c { color: var(--metro); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec--navy { background: var(--navy); color: var(--white); }
.sec--sky { background: var(--sky); }
.sec__head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 54px); max-width: 780px; }
.sec__head p { font-size: 19px; color: var(--muted); max-width: 36em; }
.sec--navy .sec__head p { color: #c5d2ff; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { position: relative; background: var(--white); border-radius: var(--r); padding: 26px; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
  transition: transform .25s, box-shadow .25s; transform-style: preserve-3d; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--blue); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card__ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow); margin-bottom: 18px; rotate: -6deg; border: 2px solid var(--ink); }
.card__ico .ico { width: 32px; height: 32px; }
.card:nth-child(even) .card__ico { rotate: 5deg; background: var(--blue); color: var(--white); }

/* ---------- line of schools ---------- */
.line { position: relative; overflow-x: auto; padding: 46px 0 18px; scrollbar-width: thin; }
.line__track { position: relative; display: flex; min-width: 860px; }
.line__track::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: var(--yellow); }
.stop { flex: 1 1 0; display: grid; justify-items: center; gap: 12px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0 4px 6px; font: inherit; position: relative; }
.stop i { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); border: 7px solid var(--yellow); transition: transform .3s cubic-bezier(.5, 2, .5, 1), background .3s; }
.stop b { font: 800 italic 23px/1.05 var(--f-display); text-transform: uppercase; text-align: center; transition: color .2s; }
.stop:hover i { transform: scale(1.2); }
.stop[aria-selected="true"] i { background: var(--white); transform: scale(1.35); }
.stop[aria-selected="true"] b { color: var(--yellow); }
.line__ball { position: absolute; top: -34px; left: 0; width: 34px; height: 34px; margin-left: -17px; transition: left .7s cubic-bezier(.5, 1.4, .4, 1), rotate .7s; pointer-events: none; }
.line__ball svg { width: 100%; height: 100%; animation: hop .8s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-7px); } }
.board { margin-top: 26px; background: #050b2b; border-radius: 26px; padding: clamp(22px, 3vw, 38px); border: 2px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.board__name { font-size: clamp(44px, 6vw, 84px); color: var(--yellow); }
.board__sub { color: #9db0ee; margin-top: 8px; }
.board__rows { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.board__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); }
.board__row span { display: inline-flex; align-items: center; gap: 10px; color: #9db0ee; }
.board__row b { font: 800 26px/1 var(--f-display); letter-spacing: .03em; text-align: right; }
.board__row b.price { color: var(--yellow); font-size: 34px; }
.board__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.flip { animation: flip .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes flip { from { transform: rotateX(-80deg); opacity: 0; } }

/* sports strip */
.sports { display: flex; flex-wrap: wrap; gap: 12px; }
.sports li { list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  font: 800 italic 24px/1 var(--f-display); text-transform: uppercase; transition: transform .2s, background .2s; }
.sports li:nth-child(odd) { rotate: -2deg; }
.sports li:nth-child(even) { rotate: 1.5deg; }
.sports li:hover { transform: scale(1.08) rotate(3deg); background: var(--yellow); }
ul.sports { padding: 0; margin: 0; }

/* ---------- camps ---------- */
.camp { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.camp__top { position: relative; height: 170px; display: grid; place-items: center; background: linear-gradient(140deg, #2b62ff, #0f2fa8); color: var(--white); overflow: hidden; }
.camp:nth-child(2) .camp__top { background: linear-gradient(140deg, #ffd84a, #ff9d1f); color: var(--ink); }
.camp:nth-child(3) .camp__top { background: linear-gradient(140deg, #ff7a59, #e2001a); }
.camp__top .ico { width: 96px; height: 96px; stroke-width: 1.4; transition: transform .6s cubic-bezier(.3, 1.6, .4, 1); }
.camp:hover .camp__top .ico { transform: rotate(-12deg) scale(1.2); }
.camp__age { position: absolute; top: 14px; right: 14px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
  font: 800 italic 20px/1 var(--f-display); rotate: 4deg; }
.camp__body { padding: 24px 26px 26px; display: grid; gap: 10px; flex: 1; }
.camp__tag { color: var(--blue); font-weight: 700; }
.camp ul { margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.camp li { list-style: none; display: flex; gap: 8px; align-items: flex-start; }
.camp li .ico { color: var(--blue); margin-top: 3px; }
.camp .btn { justify-self: start; margin-top: 10px; }

.day { position: relative; padding-top: 70px; overflow-x: auto; }
.day__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); min-width: 780px; gap: 10px; }
.day__track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 29px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.day__fill { position: absolute; left: 10%; top: 29px; height: 6px; border-radius: 3px; background: var(--yellow); width: 0; transition: width 1s cubic-bezier(.5, 0, .2, 1); }
.day__sun { position: absolute; top: -52px; left: 10%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, var(--yellow) 60%, var(--sun));
  box-shadow: 0 0 0 10px rgba(255, 200, 26, .25); transition: left 1s cubic-bezier(.5, 0, .2, 1), top 1s; }
.day__stop { display: grid; justify-items: center; gap: 10px; text-align: center; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; position: relative; }
.day__stop i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 3px solid rgba(255, 255, 255, .35); transition: all .4s cubic-bezier(.5, 1.8, .5, 1); }
.day__stop i .ico { width: 28px; height: 28px; }
.day__stop.is-on i { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: scale(1.15); }
.day__stop b { font: 800 italic 26px/1 var(--f-display); text-transform: uppercase; }
.day__stop span { color: #c5d2ff; font-size: 15.5px; max-width: 13em; }

.terms { display: grid; gap: 12px; }
.term { display: grid; grid-template-columns: 1.1fr 1.4fr auto auto; gap: 18px; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 22px;
  transition: transform .2s, box-shadow .2s; font-variant-numeric: tabular-nums; }
.term:hover { transform: translateX(8px); box-shadow: -8px 0 0 var(--yellow); }
.term__date { font: 800 italic 30px/1 var(--f-display); }
.term__name b { display: block; }
.term__name span { color: var(--muted); font-size: 15px; }
.term__price { font: 800 30px/1 var(--f-display); white-space: nowrap; }

/* ---------- steps ---------- */
.steps { counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font: 900 italic 30px/1 var(--f-display); margin-bottom: 16px; border: 2px solid var(--ink); }

/* ---------- form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 28px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 10px 10px 0 var(--yellow); }
.form .full { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 700; font-size: 15px; }
.f input, .f select, .f textarea { font: inherit; padding: 13px 14px; border: 2px solid #c9d3f2; border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 79, 224, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form__note { font-size: 14.5px; color: var(--muted); }
.done { display: none; gap: 14px; }
.done.is-on { display: grid; }
.done pre { white-space: pre-wrap; background: var(--paper); border-radius: 12px; padding: 16px; font: 15px/1.5 var(--f-body); margin: 0; border: 2px dashed #c9d3f2; }
.done__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.two { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.ticks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; }
.ticks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.ticks .ico { background: var(--yellow); color: var(--ink); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 1px; stroke-width: 3; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c5d2ff; padding: 60px 0 28px; position: relative; overflow: hidden; }
.foot__big { font: 900 italic clamp(54px, 13vw, 190px)/.85 var(--f-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16); white-space: nowrap; margin-bottom: 36px; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot h4 { margin: 0 0 10px; color: var(--white); font: 800 italic 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.foot a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.foot a:hover { color: var(--yellow); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot__line { display: flex; align-items: center; gap: 0; margin: 40px 0 18px; font: 700 15px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--white); overflow-x: auto; }
.foot__line span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.foot__line span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--metro); background: var(--white); }
.foot__line span + span::before { margin-left: 8px; }
.foot__line em { flex: 1; min-width: 26px; height: 5px; background: var(--metro); margin: 0 8px; }
.foot small { opacity: .65; }

/* ---------- motion ---------- */
.js [data-r] { opacity: 0; transform: translateY(34px) rotate(-1deg); transition: opacity .7s, transform .7s cubic-bezier(.2, 1.2, .4, 1); transition-delay: var(--d, 0s); }
.js [data-r].in { opacity: 1; transform: none; }
.hero h1 span { animation: slam .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero h1 span:nth-child(2) { animation-delay: .12s; }
.hero h1 span:nth-child(3) { animation-delay: .24s; }
@keyframes slam { from { opacity: 0; transform: translateX(-60px) skewX(-14deg); } }

@media (max-width: 860px) {
  .doors { flex-direction: column; }
  .door { min-height: 260px; }
  .board, .two, .form { grid-template-columns: 1fr; }
  .term { grid-template-columns: 1fr auto; }
  .term__name { grid-column: 1 / -1; order: -1; }
  .sticker { display: none; }
  .logo small { display: none; }
  .top .btn { display: none; }
  .switch a { padding: 7px 14px; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; }
}
