/* =========================================================
   DTGT — Učtovníctvo DTGT
   Statická kópia pôvodného webu
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --ink:       #0f1a2b;
  --ink-soft:  #1f2d42;
  --muted:     #5a6577;
  --line:      #d9d2c4;
  --cream:     #f4ede1;
  --cream-2:   #ebe2d2;
  --paper:     #fbf7ef;
  --accent:    #a8331f;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-sans:    'Manrope', system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--f-sans); }

p { max-width: 72ch; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 225, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.brand .dot { color: var(--accent); }
.brand .sub {
  font-family: var(--f-sans);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: .93rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: .3rem 0;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: .45rem .75rem;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- page heading ---------- */
.page-head {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.page-head .crumb {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.page-head h1 { max-width: 20ch; }

/* ---------- section ---------- */
.section {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.prose h3 {
  margin: 2.5rem 0 .75rem;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 500;
}
.prose h3:first-child { margin-top: 0; }

.prose p + h3 { margin-top: 2.2rem; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split-grid + .split-grid { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 820px) {
  .split-grid { grid-template-columns: 1fr; gap: 1rem; }
  .split-grid + .split-grid { margin-top: 2.5rem; }
}

.prose ol, .prose ul {
  margin: .75rem 0 1.25rem;
  padding-left: 0;
  counter-reset: item;
}
.prose ol li,
.prose ul li {
  position: relative;
  padding: .5rem 0 .5rem 2.2rem;
  border-bottom: 1px solid rgba(217, 210, 196, .6);
  font-size: .97rem;
  color: var(--ink-soft);
}
.prose ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0; top: .55rem;
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent);
  font-size: .88rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: .6rem; top: 1.05rem;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- detail tabs (scrollspy) ---------- */
.detail-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 64px;
  z-index: 20;
}
.detail-nav .inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
}
.detail-nav a {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .2s ease;
}
.detail-nav a:hover { border-color: var(--ink); }
.detail-nav a.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.detail-block {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.detail-block:last-child { border-bottom: none; }
@media (max-width: 820px) { .detail-block { grid-template-columns: 1fr; } }

.detail-block .side .tag {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent);
  font-size: .95rem;
  margin-bottom: .5rem;
  display: block;
}
.detail-block .side h2 { margin-bottom: 0; }

/* ---------- contact / gdpr grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.info-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  gap: 1rem;
}
.kv:last-child { border-bottom: none; }
.kv .k {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .15rem;
}
.kv a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.kv a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- downloads list ---------- */
.dl-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1rem;
}
.dl-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--paper);
  font-size: .94rem;
  gap: 1rem;
  transition: background .2s ease;
}
.dl-list a:hover { background: var(--cream-2); color: var(--accent); }
.dl-list a .ext {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: .85rem;
  color: var(--muted);
}
.footer .inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }

/* ---------- gdpr styles ---------- */
.gdpr-body h4 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin: 2rem 0 .75rem;
}
.gdpr-body h4:first-child { margin-top: 0; }
.gdpr-body p {
  color: var(--ink-soft);
  font-size: .97rem;
  max-width: 78ch;
}
.gdpr-body .effective {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}

::selection { background: var(--accent); color: var(--cream); }
