:root {
  --nr-dark: #2f3947;
  --nr-dark-2: #394557;
  --nr-accent: #1db5ea;
  --nr-accent-2: #8fd8f3;
  --nr-bg: #edf3fb;
  --nr-text: #2b3645;
  --nr-white: #ffffff;
  --nr-border: rgba(255, 255, 255, 0.25);
  --nr-shadow: 0 10px 28px rgba(28, 46, 76, 0.14);
  --nr-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--nr-text);
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0) 18%
    ),
    radial-gradient(
      circle at 50% 36%,
      rgba(108, 144, 198, 0.2),
      rgba(108, 144, 198, 0) 34%
    ),
    linear-gradient(180deg, #9eb2cf 0%, #8ea6c8 32%, #dfe9f6 100%);
  line-height: 1.6;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nr-dark);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--nr-accent);
  border-radius: 4px;
  position: relative;
  transform: rotate(0deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--nr-accent);
}

.brand-mark::before {
  width: 22px;
  height: 3px;
  left: 7px;
  top: 18px;
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 3px;
  height: 18px;
  right: 8px;
  top: 8px;
  transform: rotate(45deg);
}

.brand-text {
  line-height: 1;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.site-nav li {
  position: relative;
}

.site-nav a,
.site-nav .separator {
  display: inline-block;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 10px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current > a,
.site-nav .active > a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--nr-accent-2);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0) 15%
    ),
    radial-gradient(
      circle at 50% 40%,
      rgba(123, 148, 190, 0.32),
      rgba(123, 148, 190, 0) 28%
    ),
    linear-gradient(180deg, rgba(165, 184, 213, 0.88), rgba(123, 151, 193, 0.8));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.hero::before {
  width: 680px;
  height: 680px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  opacity: 0.42;
}

.hero::after {
  width: 860px;
  height: 860px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  border-width: 2px;
  opacity: 0.32;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-weight: 800;
}

.breadcrumbs-wrap {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.breadcrumbs-wrap .container {
  padding: 10px 0;
}

.site-main {
  padding: 36px 0 54px;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.content-main {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  padding: 28px;
  min-height: 320px;
}

.content-main img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.content-main h1,
.content-main h2,
.content-main h3 {
  color: #243346;
  line-height: 1.2;
  margin-top: 0;
}

.content-main a {
  color: #118fc0;
  text-decoration: none;
}

.content-main a:hover {
  text-decoration: underline;
}

.content-main .btn,
.content-main .uk-button,
.content-main button,
.content-main input[type="submit"],
.content-main .readmore a {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  background-image: linear-gradient(
    180deg,
    rgba(132, 192, 223, 0.72),
    rgba(78, 132, 192, 0.72)
  );
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.content-main th,
.content-main td {
  padding: 12px;
  border: 1px solid #d9e4f2;
  text-align: left;
}

.content-sidebar > * {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.site-footer {
  background: var(--nr-dark);
  color: rgba(255, 255, 255, 0.86);
  margin-top: 28px;
}

.footer-inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--nr-accent-2);
}

.article-info {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.page-header {
  margin-bottom: 22px;
}

.item-page > *:last-child {
  margin-bottom: 0;
}

/* Menu depth */
.site-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  display: none;
  background: var(--nr-dark-2);
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--nr-shadow);
  z-index: 1001;
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul {
  display: block;
}

.site-nav li ul li {
  width: 100%;
}

.site-nav li ul a {
  display: block;
  width: 100%;
}

/* Page-specific hero shades */
.page-kontakty .hero {
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0) 16%
    ),
    radial-gradient(
      circle at 50% 38%,
      rgba(114, 155, 194, 0.26),
      rgba(114, 155, 194, 0) 31%
    ),
    linear-gradient(180deg, #a4b8d2 0%, #8fa7c7 40%, #dfe8f5 100%);
}

.page-overeni-najemnika .hero {
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0) 16%
    ),
    radial-gradient(
      circle at 50% 42%,
      rgba(100, 146, 196, 0.3),
      rgba(100, 146, 196, 0) 30%
    ),
    linear-gradient(180deg, #9bb2d3 0%, #7f9fc9 40%, #d6e4f6 100%);
}

.page-statni-registry .hero {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0) 14%
    ),
    radial-gradient(
      circle at 50% 38%,
      rgba(118, 146, 182, 0.26),
      rgba(118, 146, 182, 0) 29%
    ),
    linear-gradient(180deg, #9fb3cf 0%, #88a0bf 42%, #dbe6f2 100%);
}

.page-nebankovni-registr .hero {
  background:
    radial-gradient(
      circle at 50% 22%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 15%
    ),
    radial-gradient(
      circle at 50% 40%,
      rgba(110, 144, 188, 0.28),
      rgba(110, 144, 188, 0) 30%
    ),
    linear-gradient(180deg, #a7bad4 0%, #89a7cc 40%, #deebf7 100%);
}

/* Articles content helpers */
.nr-section {
  margin: 0 0 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.nr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.nr-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(39, 70, 112, 0.08);
}

.nr-card h3 {
  margin-top: 0;
}

@media (max-width: 991px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 86px;
    background: var(--nr-dark);
    padding: 12px 16px 18px;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav li {
    display: block;
  }

  .site-nav a,
  .site-nav .separator {
    display: block;
    padding: 12px 10px;
  }

  .site-nav li ul {
    position: static;
    display: block;
    min-width: 0;
    background: transparent;
    padding: 0 0 0 14px;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 74px;
  }

  .site-nav {
    top: 74px;
  }

  .brand {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 60px 0 64px;
  }

  .content-main {
    padding: 18px;
  }

  .nr-grid {
    grid-template-columns: 1fr;
  }
}
