/* ════════════════════════════════════════════════════════════
   Interactive Media a.s. — sdílené styly podstránek
   (vychází z designu index.html)
   ════════════════════════════════════════════════════════════ */
:root {
  --bg:       #060f1d;
  --surface:  #0c1a2e;
  --navy:     #1b3764;
  --navy-mid: #264e8a;
  --gold:     #c8922a;
  --gold-lt:  #dfa83c;
  --cream:    #f0ede6;
  --cream-dm: #9fa5b0;
  --border:   rgba(240,237,230,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Syne', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grain ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(240,237,230,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.display { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ════ NAV ════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 3rem;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.4s ease;
}
#nav.scrolled {
  background-color: rgba(6,15,29,0.88);
  backdrop-filter: blur(16px);
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dm); text-decoration: none;
  position: relative; padding-bottom: 2px; transition: color 0.2s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }
.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--bg); background: var(--gold);
  padding: 0.6rem 1.25rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 16px rgba(200,146,42,0.3);
}
.nav-cta:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,146,42,0.4); }
.nav-cta:active { transform: translateY(0); }
.nav-cta:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--bg);
  background: var(--gold); padding: 1rem 2.25rem; cursor: pointer; border: none;
  box-shadow: 0 4px 24px rgba(200,146,42,0.3);
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-3px); box-shadow: 0 10px 36px rgba(200,146,42,0.45); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  border: 1px solid rgba(240,237,230,0.25); padding: 1rem 2.25rem; cursor: pointer;
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.btn-ghost:hover { border-color: rgba(240,237,230,0.6); background: rgba(240,237,230,0.04); transform: translateY(-3px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ════ SUB-PAGE HERO / HEADER ════ */
.subpage { padding-top: 0; }
.sub-hero {
  position: relative; overflow: hidden;
  padding: 12rem 3rem 4rem;
}
.sub-hero .blob {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.sub-hero .blob-1 {
  width: 55vw; height: 55vw; top: -25%; right: -12%;
  background: radial-gradient(circle, rgba(27,55,100,0.5) 0%, transparent 70%);
}
.sub-hero .blob-2 {
  width: 30vw; height: 30vw; bottom: -20%; left: -6%;
  background: radial-gradient(circle, rgba(200,146,42,0.1) 0%, transparent 70%);
}
.sub-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

.sub-eyebrow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 1rem;
}
.sub-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

.sub-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--cream); max-width: 16ch;
}
.sub-h1 em { font-style: italic; color: var(--gold-lt); }

/* ── breadcrumb ── */
.crumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--cream-dm);
  margin-bottom: 2.5rem;
}
.crumb a { color: var(--cream-dm); text-decoration: none; transition: color 0.2s ease; }
.crumb a:hover { color: var(--gold-lt); }
.crumb span.sep { opacity: 0.4; }
.crumb span.here { color: var(--cream); }

/* ════ ARTICLE / LEGAL CONTENT ════ */
.content { padding: 1rem 3rem 7rem; position: relative; }
.content-inner { max-width: 800px; margin: 0 auto; }

.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--cream); line-height: 1.2;
  margin: 3.5rem 0 1.25rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin: 2.5rem 0 1rem;
}
.prose p {
  font-size: 1rem; line-height: 1.8; color: var(--cream-dm); margin-bottom: 1.4rem;
}
.prose p strong, .prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.prose a:hover { color: var(--cream); }
.prose ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.prose li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem;
  font-size: 1rem; line-height: 1.7; color: var(--cream-dm);
}
.prose li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* boxed card (správce, kontakt) */
.info-card {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 2.25rem; margin: 1.5rem 0 2rem;
  background: linear-gradient(135deg, rgba(27,55,100,0.14), transparent);
}
.info-card p { margin-bottom: 0.4rem; }
.info-card p:last-child { margin-bottom: 0; }

/* ════ COOKIE SETTINGS ════ */
.cookie-cat {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.75rem 2rem; margin-bottom: 1.25rem;
  display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between;
  transition: border-color 0.3s ease;
}
.cookie-cat:hover { border-color: rgba(200,146,42,0.25); }
.cookie-cat-head { flex: 1; }
.cookie-cat-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  font-weight: 400; color: var(--cream); margin-bottom: 0.5rem;
}
.cookie-cat-desc { font-size: 0.92rem; line-height: 1.7; color: var(--cream-dm); }

/* toggle */
.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; margin-top: 4px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0; border-radius: 999px;
  background: rgba(240,237,230,0.12); border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.slider::before {
  content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: var(--cream-dm); border-radius: 50%; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background-color 0.3s ease;
}
.switch input:checked + .slider { background: rgba(200,146,42,0.3); border-color: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(24px); background: var(--gold-lt); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch input:disabled + .slider { opacity: 0.55; cursor: not-allowed; }
.switch input:disabled:checked + .slider { background: rgba(200,146,42,0.18); }

.cookie-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.save-note { font-size: 0.8rem; color: #4ade80; opacity: 0; transition: opacity 0.3s ease; }
.save-note.show { opacity: 1; }

/* ════ SITEMAP ════ */
.sitemap-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.sitemap-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}
.sitemap-row a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400;
  color: var(--cream); text-decoration: none; transition: color 0.25s ease;
  display: inline-flex; align-items: center; gap: 1rem;
}
.sitemap-row a:hover { color: var(--gold-lt); }
.sitemap-loc { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--cream-dm); opacity: 0.6; letter-spacing: 0.02em; }
.sitemap-icon {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--cream-dm);
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.sitemap-row:hover .sitemap-icon { border-color: var(--gold); color: var(--gold); transform: rotate(-45deg); }

.xml-note {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--cream-dm);
}
.xml-note a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 3px; }
.xml-note a:hover { color: var(--cream); }

/* ════ FOOTER ════ */
footer { padding: 4rem 3rem 2.5rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; color: var(--cream-dm); margin-top: 1.25rem; max-width: 240px; }
.footer-col-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.88rem; color: var(--cream-dm); text-decoration: none; transition: color 0.2s ease; background: none; border: none; cursor: pointer; text-align: left; padding: 0; font-family: inherit; }
.footer-links a:hover { color: var(--cream); }
.footer-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.footer-contact-item { font-size: 0.88rem; line-height: 1.65; color: var(--cream-dm); margin-bottom: 0.65rem; }
.footer-contact-item a { color: var(--cream-dm); text-decoration: none; transition: color 0.2s ease; }
.footer-contact-item a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.foot-txt { font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(240,237,230,0.28); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* ════ HAMBURGER + MOBILE MENU ════ */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px; -webkit-tap-highlight-color: transparent; }
.hamburger-line { display: block; width: 22px; height: 1.5px; background: var(--cream); transform-origin: center; transition: transform 0.38s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, width 0.3s ease; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.hamburger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

#mobile-menu { position: fixed; inset: 0; z-index: 190; background: rgba(6,15,29,0.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 6rem 2.5rem 4rem; pointer-events: none; opacity: 0; transform: translateY(-12px); transition: opacity 0.38s cubic-bezier(0.16,1,0.3,1), transform 0.38s cubic-bezier(0.16,1,0.3,1); }
#mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mob-link { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 10vw, 4rem); font-weight: 300; line-height: 1.15; color: var(--cream); text-decoration: none; display: block; padding: 0.25rem 0; opacity: 0; transform: translateX(-20px); transition: color 0.2s ease, opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1); }
#mobile-menu.open .mob-link { opacity: 1; transform: translateX(0); }
#mobile-menu.open .mob-link:nth-child(1) { transition-delay: 0.06s; }
#mobile-menu.open .mob-link:nth-child(2) { transition-delay: 0.11s; }
#mobile-menu.open .mob-link:nth-child(3) { transition-delay: 0.16s; }
#mobile-menu.open .mob-link:nth-child(4) { transition-delay: 0.21s; }
#mobile-menu.open .mob-link:nth-child(5) { transition-delay: 0.26s; }
.mob-link:hover { color: var(--gold-lt); }
.mob-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  #nav { padding: 1.5rem 1.75rem; }
  #nav.scrolled { padding: 1rem 1.75rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .sub-hero { padding: 9rem 1.75rem 3rem; }
  .content { padding: 1rem 1.75rem 5rem; }
  footer { padding: 3rem 1.75rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-cat { flex-direction: row; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
