:root {
  font-size: clamp(10px, 1.111111vw, 21.333px);
  --purple: #8f279e;
  --yellow: #ffbf00;
  --band: #efede8;
  --ink: #111;
  --paper: #fdfdfd;
  --body: "Jost", "Futura Bk BT", "Century Gothic", Arial, sans-serif;
  --bold: "Futura PT", "Futura Md BT", "Jost", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: .94rem/1.8 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-family: var(--bold); font-weight: 700; }
h1, h2 { font-size: 2.35rem; line-height: 1.25; letter-spacing: -.025em; }
p { color: #626060; }
.wrap { width: 82%; max-width: 1575px; margin-inline: auto; }
.header-width { width: 87%; max-width: 1680px; margin-inline: auto; }
.top { background: var(--paper); color: #929294; font-size: .7rem; }
.top .header-width { height: 2.5rem; position: relative; display: flex; align-items: center; justify-content: center; }
.contact-strip { display: flex; align-items: center; gap: 2.5rem; }
.socials { display: inline-flex; gap: .6rem; vertical-align: middle; }
.socials b { display: inline-grid; place-items: center; width: .95rem; height: .95rem; border-radius: 50%; background: currentColor; font: 700 .67rem/1 Arial,sans-serif; position: relative; }
.top .socials { position: absolute; right: 0; }
.socials b { background: #96979a; color: white; }
.nav-bg { background: #ededed; position: relative; z-index: 2; }
.nav-row { height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .8rem; flex: none; line-height: 1.08; font-size: .77rem; }
.logo img { width: 3.8rem; height: 4.3rem; object-fit: contain; }
nav { display: flex; align-items: center; gap: 2.9rem; font-size: .84rem; margin-left: auto; white-space: nowrap; }
.news-nav { color: var(--purple); }
.dropdown { position: relative; }
.dropdown summary { cursor: pointer; list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ''; display: inline-block; width: .43rem; height: .43rem; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin: 0 0 .2em .4em; }
.dropdown[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.dropdown > div { position: absolute; top: calc(100% + .65rem); left: -.8rem; min-width: 100%; padding: .5rem 0; background: var(--paper); }
.dropdown a { display: block; padding: .35rem .8rem; }
.dropdown a:hover { background: #f1e6f2; }
.nav-actions { display: flex; align-items: center; gap: 1.3rem; margin-left: 3.1rem; }
.btn { display: inline-grid; place-items: center; min-height: 2.55rem; min-width: 14.5rem; padding: .2rem .75rem; font-size: .78rem; text-transform: uppercase; text-align: center; line-height: 1.3; }
.nav-actions .btn { min-width: 8.4rem; min-height: 1.6rem; font-size: .58rem; letter-spacing: .16em; }
.purple { background: #812995; color: white; }
.yellow { background: var(--yellow); color: #15110a; }
.outline { border: 1px solid; }
.search-icon { position: relative; width: 1.4rem; height: 1.4rem; margin-left: 2rem; color: var(--purple); }
.search-icon::before { content: ''; position: absolute; inset: 0 .18rem .18rem 0; border: 1px solid; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: .51rem; height: 1px; background: currentColor; bottom: .16rem; right: -.12rem; transform: rotate(48deg); }
.menu-toggle { display: none; }
.hero { height: 36.1rem; position: relative; isolation: isolate; color: white; background: #251345; }
.hero-photo { position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; opacity: 0; filter: saturate(.78); }
.hero-photo.visible { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#65002163,#29214452 64%,#14161d70); }
.hero-photo[data-image="banner-hudba"] { background-position: center 26%; }
.hero-photo[data-image="banner-vytvarno"] { background-position: center 46%; }
.hero-photo[data-image="banner-divadlo"] { background-position: center 47%; }
.hero.alternate::after { background: linear-gradient(90deg,#260929e8,#26092920 90%); }
.hero-inner { width: 83%; max-width: 1595px; height: 100%; margin: auto; display: flex; flex-direction: column; justify-content: space-between; }
.hero-copy { padding-top: 7.9rem; }
.eyebrow { text-transform: uppercase; font-size: 1rem; letter-spacing: .115em; color: inherit; line-height: 1.35; }
.hero h1 { font-size: 4.02rem; line-height: 1.12; margin: .95rem 0 2.5rem; color: white; }
.hero-buttons { display: flex; gap: 1.7rem; }
.hero-buttons .btn { border: 1px solid white; }
.hero-buttons .btn:first-child { background: #a53b9d; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; margin-bottom: 4.2rem; margin-right: -2.7rem; }
.slides { display: flex; align-items: center; }
.slides button { text-transform: uppercase; letter-spacing: .14em; position: relative; font-size: .94rem; padding: 0 1.5rem .4rem; }
.slides button:first-child { padding-left: .6rem; }
.slides button + button::before { content: ''; width: 1px; height: .9em; background: #ffffff80; position: absolute; top: .38em; left: 0; }
.slides button[data-slide]::after { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; height: 1px; background: #ffffff55; }
.slides button:first-child::after { left: .6rem; }
.slides button[aria-pressed="true"]::after { background: white; }
.slides .pause { padding-inline: .85rem; opacity: .8; }
.hero-bottom > a { text-align: center; font: 2rem/1 var(--body); }
.hero-bottom small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; margin-top: .4rem; }
.home-news { padding: 2.9rem 0 4.6rem; }
.section-intro { padding-inline: 3.7rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.section-intro .eyebrow, .practical .eyebrow, .school .eyebrow, .enroll .eyebrow { margin-bottom: .65rem; }
.home-news .section-intro { margin-bottom: 2.95rem; }
.home-news .section-intro > div + div { padding-left: 2.1rem; }
.all-news { display: inline-flex; align-items: center; gap: 1rem; margin-top: .95rem; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .08em; }
.all-news u { text-underline-offset: .1em; }
.all-news span { display: inline-block; font: 2rem/1 Arial,sans-serif; transform: scaleX(1.6); transform-origin: left; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 3.15rem; row-gap: 1.25rem; }
.home-news .cards { transform: translateX(.75rem); }
.card-photo { display: block; width: 100%; aspect-ratio: 1; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-head { display: flex; gap: 1.1rem; align-items: center; margin-top: .78rem; line-height: 1.36; font-size: 1.13rem; font-weight: 700; }
.card time { display: grid; place-items: center; flex: 0 0 3.4rem; height: 4.45rem; background: #c5c5c5; line-height: 1; padding: .25rem 0; color: #101010; }
.card time b { font-size: 1.85rem; font-family: var(--bold); }
.card h3 { font-size: inherit; }
.card .status { color: #888; }
.card.future .status { color: var(--purple); }
.card.future time { background: var(--yellow); }
.card-copy { margin-top: .82rem; font-size: .81rem; line-height: 1.46; min-height: 3.55rem; }
.read { display: inline-flex; gap: .85rem; align-items: center; text-transform: uppercase; font-size: .68rem; margin-top: .49rem; }
.read span { font: 1.5rem/1 Arial,sans-serif; }
.band { background: var(--band); }
.practical { padding: 4.85rem 0 4.55rem; }
.practical-layout { display: grid; grid-template-columns: 40% 60%; align-items: center; padding: 0 3.7rem; }
.practical h2 + p { margin-top: 1.1rem; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 1.8rem; }
.tiles button { width: 11.35rem; min-height: 5.45rem; background: var(--paper); text-align: left; padding: .65rem .8rem .4rem; display: grid; align-content: space-between; }
.tiles svg { margin-left: .45rem; width: 2.45rem; height: 2.45rem; }
.tiles span { display: flex; justify-content: space-between; align-items: center; gap: .25rem; font-weight: 700; font-size: .87rem; white-space: nowrap; }
.tiles i { color: #e3a500; font: 1.65rem/1 Arial,sans-serif; }
.school { display: grid; grid-template-columns: 60% 1fr; align-items: center; gap: 4.4rem; padding: 5.4rem 0 5.1rem; }
.school h2 + p, .enroll h2 + p { margin-top: .8rem; }
.school .btn { margin-top: 1.75rem; }
.subjects { padding: 4.8rem 0 6.15rem; }
.subjects .section-intro { margin-bottom: 4.5rem; }
.subjects .section-intro .eyebrow { margin-bottom: .08rem; }
.subject-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.6rem; }
.subject-grid a { height: 23.1rem; display: flex; align-items: end; color: white; padding: 1.4rem 1.5rem; }
.subject-grid a::after { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg,#0005,transparent 55%),linear-gradient(#ffffff22,#ffffff22),var(--photo) center/cover; background-color: var(--color); background-blend-mode: multiply,normal,luminosity; }
.subject-grid strong, .prep strong { text-transform: uppercase; letter-spacing: .11em; font-size: 1.12rem; line-height: 1.25; }
.subject-grid span { display: block; font-size: 1.75rem; }
.prep { min-height: 7.3rem; margin-top: 1.55rem; display: flex; align-items: center; gap: 1.7rem; padding: .5rem 1.5rem; color: white; background: linear-gradient(90deg,#a658a6 20%,#973d926b 100%),url('assets/priprava.webp') right center/auto 100% no-repeat #ac68ac; }
.prep span { font-size: 1.7rem; }
.prep small { font-size: .99rem; line-height: 1.25; }
.enroll { display: grid; grid-template-columns: 53% 47%; align-items: center; padding: 2.1rem 0 .85rem 4.15rem; min-height: 29.3rem; }
.enroll-actions { display: flex; gap: 1.6rem; margin-top: 1.3rem; }
.enroll img { width: 100%; }
.footer-main { background: #403e3e; color: #fff; min-height: 16.6rem; padding: 1.25rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 26% 18% 17% 24.5% 14.5%; padding-left: 3rem; }
.footer-grid .logo { margin-bottom: .15rem; }
.footer-grid .logo img { border-radius: 24%; }
.footer-welcome { margin-left: 4.4rem; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.footer-welcome .socials { margin-top: 1rem; }
.footer-grid section { padding-top: .45rem; font-size: .69rem; color: #e5e4e4; line-height: 2.2; }
.footer-grid section h2 { margin-bottom: .7rem; text-transform: uppercase; font: .86rem/1.7 var(--body); color: white; }
.footer-grid section a, .footer-grid section span { display: block; }
.footer-grid section a:hover { text-decoration: underline; }
.copyright { text-align: center; background: #d1cecc; font-size: .82rem; min-height: 2.6rem; display: grid; place-items: center; }
.overview { padding: 2.95rem 0 4rem; }
.overview h1 { text-align: center; margin-bottom: 2.35rem; }
.categories, .periods { display: flex; align-items: center; }
.categories { justify-content: center; gap: 2.8rem; border-bottom: 1px solid #494444; min-height: 2.65rem; }
.categories button, .periods button { text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; line-height: 1.2; white-space: nowrap; }
.categories button { position: relative; padding: .55rem 0; }
.categories button[aria-pressed="true"] { color: var(--purple); font-weight: 700; }
.categories button[aria-pressed="true"]::after { content: ''; position: absolute; height: 1px; background: currentColor; inset: auto 0 .28rem; }
.overview-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.9rem .55rem 1.57rem 0; }
.periods { gap: 1.2rem; margin-left: -1.25rem; }
.periods button { padding: .52rem 1.25rem; border-radius: 2rem; }
.periods button[aria-pressed="true"] { background: #d6d4d4; }
.views { display: flex; gap: .35rem; }
.views a { width: 3.8rem; height: 2.45rem; display: grid; place-items: center; border: 1px solid #d7d7d7; border-radius: 2rem; color: #383e40; }
.views a[aria-current="page"] { background: #ededed; border-color: #ededed; }
.views svg { width: 1.55rem; height: 1.55rem; }
.search-results { display: flex; gap: 1rem; margin-bottom: 1rem; }
.search-results a { text-decoration: underline; }
.empty { min-height: 15rem; padding-top: 3rem; text-align: center; }
[data-page="calendar"] .overview { padding-bottom: 5.15rem; }
.calendar { margin: 1.9rem .8rem 0 .55rem; }
.calendar-heading { display: flex; justify-content: center; gap: 1.4rem; align-items: center; margin-bottom: 1.55rem; }
.calendar-heading h2 { font: 700 1.63rem/1.3 var(--body); min-width: 12rem; text-align: center; }
.calendar-heading button { font: 1.9rem/1 Arial,sans-serif; width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.calendar-heading button:hover { background: #ece9ec; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .4rem; }
.weekdays span { text-align: center; text-transform: uppercase; color: #5e6266; font-size: 1.16rem; line-height: 1.55; }
.day { min-height: 4.72rem; background: #f0efee; padding: .28rem .35rem .35rem; font: 700 1.18rem/1.55 var(--body); }
.day.has-event { background: #ffed9b; }
.day.old-event { background: #dad8d8; }
.calendar-event { display: block; text-align: left; width: 100%; margin-top: .15rem; padding: .27rem .42rem; border-radius: .44rem; color: white; background: #a32093; font: 700 1.02rem/1.45 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event:not(.future) { background: #686567; }
dialog { max-width: min(43rem,92vw); max-height: 88vh; padding: 2.5rem; border: 0; color: var(--ink); background: var(--paper); font-size: max(.95rem,14px); }
dialog::backdrop { background: #160f1bbb; }
dialog h2 { margin: .4rem 0 .65rem; }
.close { position: absolute; top: .35rem; right: .55rem; font: 1.7rem/1 Arial,sans-serif; width: 1.8rem; height: 1.8rem; }
.detail-image { width: 100%; max-height: 46vh; object-fit: contain; object-position: left; margin-bottom: 1rem; }
.sample { margin-top: .7rem; font-size: .85em; }
.search-form { display: grid; gap: .5rem; }
.search-form input { border: 1px solid #aaa; padding: .35rem .6rem; }
.detail-copy { margin-top: .7rem; }
.demo-label { white-space: nowrap; }
.overview { position: relative; }
.overview-demo { position: absolute; right: 0; top: .55rem; color: #686565; font-size: .7rem; }
.card-photo, .image-crop { overflow: hidden; }
.subject-grid a { position: relative; isolation: isolate; overflow: hidden; }
.subject-grid a::before, .prep::before { content: ''; position: absolute; inset: 0; background: var(--color, #8f279e); opacity: 0; z-index: -1; }
.prep { position: relative; isolation: isolate; }
nav > a, nav summary { position: relative; }
nav > a::before, nav summary::before { content: ''; position: absolute; inset: auto 0 -.18em; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: left; }
nav > a:focus-visible::before, nav summary:focus-visible::before, .dropdown[open] summary::before { transform: scaleX(1); }
.subject-grid a:focus-visible::before, .prep:focus-visible::before { opacity: .3; }
.calendar-event:focus-visible { background: #792370; outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .btn, nav > a::before, nav summary::before, .dropdown a,
  .subject-grid a::before, .prep::before, .subject-grid strong, .prep strong,
  .all-news span, .read span, .tiles i, .subject-grid span, .prep span,
  .periods button, .categories button, .views a, .calendar-heading button,
  .day, .calendar-event { transition: background-color 300ms ease-out, color 300ms ease-out, opacity 300ms ease-out, transform 300ms ease-out; }
  .card-photo img, .image-crop img, .subject-grid a::after { transition: transform 560ms ease-out; }
  .hero-photo { transition: opacity 620ms ease-out; }
  .hero::after { background: linear-gradient(90deg,#65002163,#29214452 64%,#14161d70); }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#260929d9,#26092920 90%); opacity: 0; transition: opacity 620ms ease-out; }
  .hero.alternate::before { opacity: 1; }
  .dropdown[open] > div { animation: menu-in 280ms ease-out; }
  main > section:not(.hero) { transition: opacity 340ms ease-out, transform 340ms ease-out; }
  .reveal-pending:not(:focus-within):not(:target) { opacity: 0; transform: translateY(12px); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (hover: hover) {
  .yellow:hover { background: var(--purple); color: #fff; }
  .purple:hover { background: #6c1e7a; }
  .outline:hover { background: #eee9ef; }
  .hero-buttons .btn:hover { background: #a53b9d; }
  nav > a:hover::before, nav summary:hover::before { transform: scaleX(1); }
  .subject-grid a:hover::before, .prep:hover::before { opacity: .3; }
  .day.has-event:hover { background: #ffe280; }
  .day.old-event:hover { background: #d0c8ce; }
  .calendar-event:hover { background: #792370; }
  .periods button:not([aria-pressed="true"]):hover, .views a:hover { background: #f0eaf0; }
  .categories button:hover { color: var(--purple); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .yellow:hover { transform: translateY(-3px); }
  .all-news:hover span { transform: translateX(7px) scaleX(1.6); }
  .read:hover span, .tiles button:hover i, .subject-grid a:hover span, .prep:hover span { transform: translateX(7px); }
  .card-photo:hover img, .image-crop:hover img, .subject-grid a:hover::after { transform: scale(1.07); }
  .subject-grid a:hover strong, .prep:hover strong { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
@media (min-width: 1921px) {
  .hero { height: min(47vw, 55rem); }
}
@media (max-width: 850px) {
  .header-width, .wrap { width: 88%; }
  nav { gap: 1.4rem; }
  .nav-actions { margin-left: 0; gap: .8rem; }
  .search-icon { margin-left: .55rem; }
  .section-intro, .practical-layout { padding-inline: 0; }
  .enroll { padding-left: 0; }
  .home-news .section-intro > div + div { padding: 0; }
  .desktop { display: none; }
}
@media (max-width: 680px) {
  :root { font-size: 13px; }
  .header-width, .wrap, .hero-inner { width: 90%; }
  .top { display: none; }
  .nav-row { min-height: 4.3rem; height: auto; gap: .75rem; flex-wrap: wrap; padding-block: .5rem; }
  .logo img { width: 2.85rem; height: 3.2rem; }
  .menu-toggle { display: block; margin-left: auto; font-size: 1rem; }
  .nav-actions .btn { display: none; }
  nav { display: none; order: 4; width: 100%; margin-left: 0; padding: .4rem 0; font-size: 1rem; }
  nav.open { display: grid; gap: .55rem; }
  .dropdown > div { position: static; margin-top: .25rem; }
  .hero { height: 27rem; }
  .hero-photo { background-position: 56% center; }
  .hero-photo[data-image="banner-hudba"] { background-position: 23% center; }
  .hero-photo[data-image="banner-vytvarno"] { background-position: 72% center; }
  .hero-photo[data-image="banner-divadlo"] { background-position: 65% center; }
  .hero-copy { padding-top: 4.15rem; }
  .hero h1 { font-size: clamp(2.15rem,8vw,3.3rem); margin-bottom: 1.6rem; }
  .hero-buttons { gap: .65rem; }
  .hero-buttons .btn, .enroll-actions .btn { min-width: 0; padding-inline: .75rem; }
  .hero-bottom { margin: 0 0 1.65rem; }
  .hero-bottom > a { display: none; }
  .slides button { padding-inline: .6rem; font-size: .76rem; }
  .slides button[data-slide]::after { left: .6rem; right: .6rem; }
  h1, h2 { font-size: 1.9rem; }
  .section-intro, .practical-layout, .school, .enroll { grid-template-columns: 1fr; gap: 1rem; }
  .home-news, .practical, .school, .subjects, .enroll, .overview { padding-block: 2.4rem; }
  .home-news .section-intro, .subjects .section-intro { margin-bottom: 1.6rem; }
  .home-news .cards { transform: none; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem 1rem; }
  .card-copy { min-height: 0; }
  .card-head { gap: .55rem; font-size: .94rem; }
  .card time { flex-basis: 2.6rem; height: 3.5rem; }
  .card time b { font-size: 1.4rem; }
  .tiles { gap: .6rem; justify-content: start; }
  .tiles button { width: calc(50% - .35rem); }
  .school img, .enroll img { max-height: 19rem; margin-inline: auto; }
  .subject-grid { grid-template-columns: repeat(2,1fr); gap: .7rem; }
  .subject-grid a { height: 15rem; padding: .75rem; }
  .subject-grid strong, .prep strong { font-size: .9rem; }
  .prep { gap: .6rem; padding-inline: .75rem; }
  .prep small { font-size: .77rem; }
  .footer-grid { display: flex; flex-wrap: wrap; gap: .8rem 1.45rem; padding-left: 0; }
  .footer-grid section { font-size: .82rem; }
  .overview h1 { margin-bottom: 1.35rem; }
  .categories { justify-content: space-between; gap: .35rem; }
  .categories button, .periods button { font-size: clamp(.64rem,2.4vw,.82rem); letter-spacing: .03em; }
  .overview-tools { padding: .85rem 0; gap: .3rem; }
  .periods { margin: 0; gap: .25rem; }
  .periods button { padding: .4rem .48rem; }
  .views a { width: 2.1rem; height: 1.8rem; }
  .views svg { width: 1.1rem; height: 1.1rem; }
  .calendar { margin: 1rem 0 0; }
  .calendar-heading { margin-bottom: .6rem; }
  .calendar-heading h2 { font-size: 1.15rem; min-width: 8rem; }
  .weekdays, .days { gap: .18rem; }
  .weekdays span, .day { font-size: .84rem; }
  .day { min-height: 3.6rem; padding: .18rem; }
  .calendar-event { font-size: .67rem; padding: .14rem .2rem; white-space: normal; overflow-wrap: anywhere; }
  [data-page="calendar"] .overview { padding-bottom: 2.5rem; }
}
