@font-face {
  font-family: "Noto Serif Display";
  src: url("assets/noto-serif-display.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcfaf6;
  --white: #fffcf8;
  --sand: #f4eee6;
  --ink: #2d2023;
  --muted: #5f5352;
  --wine: #4e2934;
  --deep: #311b22;
  --accent: #77434d;
  --champagne: #e9c8a3;
  --line: #ded3c6;
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--sans); color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #936137; outline-offset: 4px; }
::selection { background: #ead2b9; color: #311b22; }
section[id], main[id] { scroll-margin-top: 1.25rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.28rem; height: 1.28rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(75rem, calc(100% - 6rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 7rem); }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3.5rem, 6.15vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.15vw, 3.7rem); }
h3, h4 { margin: 0; line-height: 1.35; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-weight: 700; font-size: .875rem; letter-spacing: .115em; text-transform: uppercase; line-height: 1.45; }
.section-intro > p:not(.eyebrow), .power-grid > div:first-child > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); max-width: 41ch; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.25rem; padding: .72rem 1.35rem; border: 1px solid transparent; border-radius: .42rem; font-weight: 650; font-size: .94rem; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color 160ms, color 160ms, border-color 160ms; }
.button-outline { border-color: #b08d86; color: var(--wine); background: transparent; }
.button-outline:hover { background: #efe3dc; border-color: var(--wine); }
.button-light { background: #f4e4d0; color: var(--deep); }
.button-light:hover { background: #fff0dc; }
.button-ghost { border-color: #d5bdad; color: #fff8ee; background: #301a2280; }
.button-ghost:hover { background: #5a343e; }
.text-link { display: inline-block; margin-top: 1.25rem; color: var(--accent); font-weight: 650; text-underline-offset: .24em; }
.text-link:hover { color: var(--deep); }
.skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 5; padding: .5rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner { min-height: 5.6rem; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2vw, 1.75rem); }
.brand { display: inline-flex; align-items: center; gap: .83rem; flex: none; text-decoration: none; }
.brand-logo { position: relative; display: block; width: 2.75rem; height: 3.75rem; flex: none; overflow: hidden; }
.brand-logo img { position: absolute; inset: 50% auto auto 50%; width: 6.5rem; height: auto; transform: translate(-49%, -45.5%); }
.brand-name { display: block; font: 1.8rem/.95 var(--serif); letter-spacing: -.06em; }
.brand-subtitle { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; font-weight: 550; line-height: 1.25; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.7rem, 2vw, 1.9rem); flex-wrap: wrap; }
.main-nav a { padding-block: .65rem; font-size: .95rem; text-decoration: none; font-weight: 550; color: #49393c; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.header-contact { min-height: 2.75rem; padding-inline: 1.2rem; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.75rem;
  padding-inline: .68rem;
  border: 1px solid #b08d86;
  border-radius: .42rem;
  color: var(--wine);
  font-size: .9rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.language-picker summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  margin: -.16rem .08rem 0 .05rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.language-picker[open] summary, .language-picker summary:hover { background: #f0e5dd; }
.language-code { display: none; }
.language-menu {
  position: absolute;
  z-index: 4;
  inset: calc(100% + .4rem) 0 auto auto;
  min-width: 10rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
  box-shadow: 0 .5rem 1.5rem #301a2324;
}
.language-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border-radius: .3rem;
  text-decoration: none;
}
.language-menu a:hover { background: var(--sand); }
.language-menu a[aria-current="page"] { background: #f0e3dc; color: var(--wine); font-weight: 650; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(31.5rem, 41vw, 39rem);
  background-color: var(--deep);
  background-image: linear-gradient(90deg, #301a23 0%, #321b24f2 22%, #351d27d4 39%, #321c2660 64%, #2e1b2014 100%), linear-gradient(0deg, #311c2466, transparent 48%), url("assets/beograd.webp");
  background-position: center, center, 57% 46%;
  background-size: cover;
  color: #fff9ef;
}
.hero-inner { padding-block: 4.5rem 6.35rem; }
.hero-title-second { display: block; max-inline-size: 46rem; margin-top: .16em; font-size: .68em; }
.hero-kicker { display: flex; align-items: center; gap: .85rem; color: #f0ccaa; margin-bottom: 1.25rem; }
.hero-kicker::before { content: ""; width: 1.8rem; border-top: 1px solid #d0a77e; }
.hero-intro { max-width: 47ch; margin-top: 1.3rem; color: #f7ebe4; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }

.topic-wrap { position: relative; margin-top: -2.45rem; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border: 1px solid #e8dcd1; border-radius: .65rem; box-shadow: 0 .65rem 2rem #3d19240e; overflow: hidden; }
.topics a { display: flex; align-items: center; gap: .9rem; min-height: 6rem; padding: 1.05rem clamp(.85rem, 2.6vw, 2rem); text-decoration: none; transition: background-color 160ms; }
.topics a + a { border-left: 1px solid #e8dcd1; }
.topics a:hover { background: #f7eee5; }
.topics a:focus-visible { outline-offset: -4px; }
.topic-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .4rem; flex: none; background: #f0e3dc; color: var(--wine); }
.topics strong, .topics small { display: block; }
.topics strong { font-size: 1rem; line-height: 1.35; }
.topics small { margin-top: .25rem; color: var(--muted); font-size: .86rem; line-height: 1.4; }

.procedure, .power-grid, .foreign-section, .docs-grid, .faq-section, .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.6rem clamp(2.5rem, 7vw, 7rem); align-items: start; }
.procedure { padding-top: clamp(3.75rem, 6.4vw, 6.5rem); }
.note {
  max-width: 33rem;
  margin-top: 1.7rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid #d9b9b6;
  border-inline-start: 4px solid var(--wine);
  border-radius: .55rem;
  background: #f5e9e4;
}
.note h3 { color: var(--wine); font: 700 clamp(1.45rem, 3vw, 1.85rem)/1.2 var(--serif); letter-spacing: -.025em; scroll-margin-top: 1.25rem; }
.note p { margin-top: .7rem; }
.note .note-representation { color: var(--wine); font-weight: 650; }
.steps { list-style: none; padding: 0; margin: .25rem 0 0; }
.steps li { position: relative; padding: .2rem 0 1.34rem 3.5rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.25rem; bottom: 0; border-left: 1px solid #d4bcb0; }
.step-number { position: absolute; inset: .05rem auto auto 0; display: grid; place-items: center; width: 2.27rem; height: 2.27rem; border-radius: 50%; border: 1px solid #d0b8af; color: var(--wine); font-size: .875rem; font-weight: 650; }
.steps p { margin-top: .4rem; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }

.power-section { background: var(--sand); border-block: 1px solid #e9ded0; }
.power-card { background: var(--white); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1.35rem, 3vw, 2.2rem); }
.check-list { list-style: none; padding: 0; margin: .9rem 0 0; }
.check-list li { position: relative; padding: .72rem 0 .72rem 1.65rem; color: var(--muted); }
.check-list li + li { border-top: 1px solid #eee4dc; }
.check-list li::before { content: ""; position: absolute; left: .11rem; top: 1.28rem; width: .67rem; height: .37rem; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.statement-block { grid-column: 1 / -1; padding-top: 1.55rem; border-top: 1px solid #d8c9bd; }
.statement-block > h3 { font: 1.72rem/1.2 var(--serif); letter-spacing: -.025em; }
.statement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem 1.5rem; margin-top: 1.1rem; }
.statement-grid > div { padding: .85rem 0 .4rem; border-top: 1px solid #d8c9bd; }
.statement-grid p, .statement-note { margin-top: .45rem; color: var(--muted); }
.statement-note { margin-top: 1.15rem; font-size: .94rem; }

.foreign-options { border: 1px solid var(--line); border-radius: .65rem; background: var(--white); padding: 1.35rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; background: var(--sand); border-radius: .5rem; padding: .35rem; }
.tabs button { flex: 1 1 9rem; min-height: 2.9rem; border: 1px solid transparent; border-radius: .35rem; padding: .45rem .55rem; background: transparent; color: var(--wine); font-size: .9rem; font-weight: 650; line-height: 1.3; }
.tabs button:not([aria-selected="true"]):hover { background: #eadbd2; }
.tabs button[aria-selected="true"] { background: var(--wine); color: #fff9f1; }
.tab-content { padding: 1.15rem .15rem .1rem; }
.tab-content p { margin-top: .55rem; color: var(--muted); }

.documents-section { background: #f2ebe5; border-block: 1px solid #e9ded0; }
.print-button { margin-top: 1.35rem; }
.document-card { border: 1px solid var(--line); border-radius: .65rem; background: var(--white); padding: .5rem 1.25rem; }
.documents { list-style: none; margin: 0; padding: 0; }
.documents li + li { border-top: 1px solid #eae0d7; }
.documents label { display: flex; gap: .9rem; padding: .85rem .15rem; cursor: pointer; }
.documents label:hover strong { color: var(--accent); }
.documents input { appearance: auto; accent-color: var(--wine); width: 1.1rem; height: 1.1rem; flex: none; margin: .24rem 0 0; }
.documents strong, .documents small { display: block; }
.documents small { margin-top: .13rem; color: var(--muted); font-size: .91rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary, .sources summary { position: relative; padding: 1rem 2rem 1rem 0; cursor: pointer; list-style: none; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.faq summary::after, .sources summary::after { position: absolute; top: .81rem; right: .15rem; content: "+" / ""; font-size: 1.28rem; line-height: 1.6; color: var(--accent); }
.faq details[open] summary::after, .sources[open] summary::after { content: "−" / ""; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 1.4rem 1.15rem 0; }

.contact-section { background: var(--deep); color: #fff7eb; }
.contact-section .eyebrow { color: var(--champagne); }
.contact-section h2 + p { margin-top: 1.15rem; color: #efdfd8; max-width: 47ch; }
.contact-card { padding: clamp(1.35rem, 3vw, 2.1rem); border: 1px solid #927279; border-radius: .65rem; background: #452a32; }
.contact-card h3 { font: 1.9rem/1.18 var(--serif); letter-spacing: -.025em; }
.contact-card address { font-style: normal; margin-top: 1rem; }
.contact-card address p { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.contact-card address .icon { color: #e0bc9a; }
.contact-card address a { text-underline-offset: .2em; }
.contact-card address a:hover { color: #eec99c; }
.contact-card address .contact-map { display: inline-flex; align-items: center; gap: .75rem; }
.contact-note { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid #80606a; color: #f0ded8; font-size: .92rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr minmax(16rem, 24rem); align-items: start; gap: 1.4rem 3rem; padding-block: 2.15rem; }
.footer-inner p { margin-top: .7rem; color: var(--muted); max-width: 54ch; font-size: .89rem; }
.sources { font-size: .93rem; }
.sources summary { padding-block: .5rem; }
.sources summary::after { top: .23rem; }
.sources ul { margin: .2rem 0 0; padding-left: 1.15rem; }
.sources a { color: var(--accent); text-underline-offset: .16em; }

@media (max-width: 65rem) {
  .container { width: calc(100% - 4rem); }
  .hero { background-position: center, center, 61% 45%; }
}
@media (max-width: 53rem) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .66rem .65rem; padding-top: .85rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .05rem .65rem; border-top: 1px solid #eaded3; padding-block: .13rem .08rem; }
  .main-nav a { min-height: 2.75rem; font-size: .88rem; }
  .header-actions { grid-row: 1; grid-column: 2; }
}
@media (max-width: 47rem) {
  .container { width: calc(100% - 2.5rem); }
  .header-contact { padding-inline: .7rem; }
  .language-label { display: none; }
  .language-code { display: inline; }
  .hero { min-height: 31rem; background-image: linear-gradient(90deg, #301a23f5 0%, #321b24e8 23%, #351d27c5 55%, #321c2670 100%), linear-gradient(0deg, #311c2480, transparent 60%), url("assets/beograd.webp"); background-position: center, center, 65% center; }
  .hero-inner { padding-block: 4.05rem 5.25rem; }
  h1 { font-size: clamp(2.65rem, 8vw + .3rem, 4.1rem); }
  .hero-kicker { font-size: .78rem; gap: .58rem; }
  .hero-kicker::before { width: 1.1rem; }
  .topics { grid-template-columns: 1fr; }
  .topics a { min-height: 4.9rem; padding: .85rem 1rem; }
  .topics a + a { border-left: 0; border-top: 1px solid #e8dcd1; }
  .procedure, .power-grid, .foreign-section, .docs-grid, .faq-section, .contact-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .statement-grid { grid-template-columns: minmax(0, 1fr); }
  h1, h2, h3, h4 { hyphens: auto; }
  .section-intro > p:not(.eyebrow), .power-grid > div:first-child > p:not(.eyebrow) { max-width: 100%; }
}
@media (max-width: 23rem) {
  .header-inner .brand { gap: .45rem; }
  .header-inner .brand-logo { width: 2.35rem; }
  .header-inner .brand-subtitle { font-size: .70rem; }
  .header-actions { gap: .35rem; }
  .header-contact, .language-picker summary { padding-inline: .5rem; }
  .language-picker summary::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  body, .documents-section { background: white; color: black; }
  .site-header, .site-footer, .skip, main > :not(#dokumenta), .print-button { display: none !important; }
  .container { width: 100%; }
  .documents-section { padding: 0; border: 0; }
  .docs-grid { display: block; }
  .document-card { margin-top: 1rem; break-inside: avoid; }
  .eyebrow, .section-intro > p:not(.eyebrow), .documents small { color: #333; }
}
