/* ===========================================================
   ZUŠ Rakúsy — Variant 2 „Koncertná elegancia"
   Tmavo-uhľová paleta, mosadzný akcent, serif nadpisy.
   =========================================================== */

:root {
  --ink: #12100e;          /* takmer čierna, teplá */
  --ink-2: #1a1714;        /* uhľová */
  --ink-3: #221e19;        /* karta */
  --ink-4: #2c2620;        /* hover/linka */
  --cream: #f5f1e8;        /* krémová */
  --cream-dim: #d9d2c4;    /* tlmený text */
  --muted: #9a9082;        /* sekundárny text */
  --gold: #c9a227;         /* mosadz */
  --gold-2: #d4af6a;       /* svetlejšie zlato */
  --line: rgba(212,175,106,.18);
  --line-soft: rgba(245,241,232,.10);
  --maxw: 1200px;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Eyebrow — malý zlatý nadpis nad sekciou */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 38px; height: 1px; background: var(--gold); opacity: .7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ""; width: 38px; height: 1px; background: var(--gold); opacity: .7;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--cream); }
.section-title em { color: var(--gold-2); font-style: italic; }
.section-lead { color: var(--cream-dim); font-size: 1.08rem; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: all .28s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1408; border-color: var(--gold);
}
.btn-gold:hover { box-shadow: 0 10px 34px rgba(201,162,39,.32); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--cream); border-color: rgba(245,241,232,.28);
}
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: var(--vswitch-h, 46px);
  left: 0; right: 0;
  z-index: 1000;
  background: rgba(18,16,14,.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(18,16,14,.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; transition: height .3s;
}
.site-header.scrolled .header-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: 0 0 0 4px rgba(201,162,39,.06);
}
.brand-text b {
  display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 600;
  color: var(--cream); letter-spacing: .01em; line-height: 1.05;
}
.brand-text span {
  display: block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-2); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 15px; font-size: 13.5px; font-weight: 500;
  letter-spacing: .04em; color: var(--cream-dim); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .28s;
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; padding: 11px 20px; }

/* Burger (mobile, vpravo) */
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; border-radius: 4px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 20px; height: 1.6px; background: var(--cream); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Drawer + backdrop */
.backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,8,6,.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: -100%; bottom: 0; z-index: 1200;
  width: min(86vw, 360px);
  background: var(--ink-2); border-left: 1px solid var(--line);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: right .42s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
  overflow-y: auto;
}
.drawer.open { right: 0; pointer-events: auto; box-shadow: -30px 0 60px rgba(0,0,0,.5); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer-head .brand-text b { font-size: 1.05rem; }
.drawer-close {
  width: 40px; height: 40px; border: 1px solid var(--line); background: transparent;
  color: var(--cream); border-radius: 4px; cursor: pointer; font-size: 22px; line-height: 1;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 15px 4px; font-family: var(--display); font-size: 1.35rem;
  color: var(--cream-dim); border-bottom: 1px solid var(--line-soft); transition: color .2s, padding .2s;
}
.drawer nav a:hover { color: var(--gold-2); padding-left: 10px; }
.drawer .btn { margin-top: 26px; justify-content: center; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(201,162,39,.10), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(212,175,106,.06), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,241,232,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,241,232,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -.01em; color: var(--cream);
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-sub {
  margin: 30px 0 0; max-width: 620px;
  font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--cream-dim); line-height: 1.75;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 34px; margin-top: 64px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-meta div b {
  display: block; font-family: var(--display); font-size: 2.1rem; color: var(--gold-2); line-height: 1;
}
.hero-meta div span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ===========================================================
   O ŠKOLE
   =========================================================== */
.about { background: var(--ink-2); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-body p { color: var(--cream-dim); margin: 0 0 18px; }
.about-body p strong { color: var(--cream); font-weight: 600; }
.about-quote {
  margin-top: 30px; padding: 24px 28px; border-left: 2px solid var(--gold);
  background: rgba(201,162,39,.05);
  font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--cream); line-height: 1.4;
}
.stats { display: grid; gap: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px;
  background: linear-gradient(180deg, rgba(245,241,232,.02), transparent);
}
.stat b { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--cream-dim); font-size: .95rem; }

/* ===========================================================
   ODBORY
   =========================================================== */
.fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.field-card {
  position: relative; padding: 36px 28px 32px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--ink-3);
  transition: transform .35s, border-color .35s, background .35s;
  overflow: hidden;
}
.field-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
  background: linear-gradient(180deg, var(--gold-2), transparent);
  transform: scaleY(0); transform-origin: top; transition: transform .4s;
}
.field-card:hover { transform: translateY(-6px); border-color: rgba(212,175,106,.4); background: var(--ink-4); }
.field-card:hover::before { transform: scaleY(1); }
.field-num {
  font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--gold);
  display: block; margin-bottom: 22px;
}
.field-icon { width: 44px; height: 44px; color: var(--gold-2); margin-bottom: 20px; }
.field-card h3 { font-size: 1.5rem; color: var(--cream); margin-bottom: 6px; }
.field-card .abbr { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.field-card p { color: var(--cream-dim); font-size: .96rem; margin: 16px 0 0; }

/* ===========================================================
   OZNAMY
   =========================================================== */
.news { background: var(--ink-2); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 4px; padding: 30px 28px;
  background: var(--ink-3); transition: transform .3s, border-color .3s;
}
.news-card:hover { transform: translateY(-5px); border-color: rgba(212,175,106,.38); }
.news-date {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 16px;
}
.news-date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.news-card h3 { font-size: 1.32rem; color: var(--cream); line-height: 1.22; }
.news-card p { color: var(--cream-dim); font-size: .94rem; margin: 14px 0 0; }

/* ===========================================================
   GALÉRIA
   =========================================================== */
.gallery-grid {
  columns: 4; column-gap: 16px;
}
.gallery-item {
  position: relative; margin: 0 0 16px; break-inside: avoid; cursor: pointer;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line-soft);
}
.gallery-item img { width: 100%; height: auto; transition: transform .6s ease, filter .4s; filter: grayscale(.18) brightness(.92); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,16,14,.72));
  opacity: 0; transition: opacity .35s;
}
.gallery-item .gicon {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 36px; height: 36px; border: 1px solid var(--gold-2); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-2);
  opacity: 0; transform: translateY(8px); transition: .35s;
}
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gicon { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,7,6,.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw; max-height: 82vh; border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6); border: 1px solid var(--line);
  transition: opacity .2s, transform .25s; touch-action: pan-y;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(18,16,14,.6); color: var(--cream); font-size: 24px; cursor: pointer;
  display: grid; place-items: center; transition: .2s; z-index: 2;
}
.lb-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.lb-prev { left: 4vw; }
.lb-next { right: 4vw; }
.lb-close {
  position: absolute; top: 26px; right: 28px; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--cream); font-size: 24px; cursor: pointer; z-index: 2; transition: .2s;
}
.lb-close:hover { border-color: var(--gold-2); color: var(--gold-2); }
.lb-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 13px; letter-spacing: .18em; color: var(--cream-dim); z-index: 2;
}

/* ===========================================================
   ZAMESTNANCI
   =========================================================== */
.staff { background: var(--ink-2); }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.staff-card {
  background: var(--ink-2); padding: 30px 28px; transition: background .3s;
}
.staff-card:hover { background: var(--ink-3); }
.staff-card .ini {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem;
  color: var(--gold-2); margin-bottom: 18px;
}
.staff-card b { display: block; font-family: var(--display); font-size: 1.22rem; color: var(--cream); font-weight: 600; }
.staff-card span { display: block; color: var(--cream-dim); font-size: .9rem; margin-top: 6px; }

/* ===========================================================
   RADA ŠKOLY
   =========================================================== */
.board-list { display: grid; gap: 0; max-width: 920px; margin: 0 auto; }
.board-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.board-row:first-child { border-top: 1px solid var(--line); }
.board-row .bi {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--gold-2); font-family: var(--display); font-size: 1rem;
}
.board-row b { font-family: var(--display); font-size: 1.28rem; color: var(--cream); font-weight: 600; }
.board-row span { color: var(--cream-dim); font-size: .94rem; }
.board-row .role-tag {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* ===========================================================
   KONTAKT
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { display: grid; gap: 4px; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-item .ci {
  width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-2);
}
.contact-item .ct b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item .ct a, .contact-item .ct span { color: var(--cream); font-size: 1.02rem; }
.contact-item .ct a:hover { color: var(--gold-2); }
.contact-item .ct small { display: block; color: var(--cream-dim); font-size: .9rem; }
.contact-aside {
  border: 1px solid var(--line); border-radius: 4px; padding: 38px 34px;
  background: linear-gradient(180deg, rgba(201,162,39,.05), transparent);
}
.contact-aside h3 { font-size: 1.7rem; color: var(--cream); margin-bottom: 14px; }
.contact-aside p { color: var(--cream-dim); margin: 0 0 26px; }
.contact-aside .btn { width: 100%; justify-content: center; margin-bottom: 14px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 20px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-col span { color: var(--cream-dim); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 70px; padding: 26px 0; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom span, .footer-bottom a { color: var(--muted); font-size: .85rem; }
.footer-bottom a:hover { color: var(--gold-2); }
.footer-made { color: var(--muted); font-size: .82rem; }
.footer-made a { color: var(--gold-2); }

/* ===========================================================
   REVEAL ANIMÁCIE
   =========================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1040px) {
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 3; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .gallery-grid { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: auto 1fr; }
  .board-row .role-tag { grid-column: 2; justify-self: start; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-btn { width: 46px; height: 46px; }
  .hero-meta { gap: 24px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.3rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
