/* RS ALPHA visual system for radoslavsvitac.sk */
:root {
  --background: 220 16% 4% !important;
  --foreground: 44 33% 94% !important;
  --card: 220 16% 7% !important;
  --card-foreground: 44 33% 94% !important;
  --popover: 220 16% 7% !important;
  --popover-foreground: 44 33% 94% !important;
  --primary: 220 16% 4% !important;
  --primary-foreground: 44 33% 94% !important;
  --secondary: 220 16% 11% !important;
  --secondary-foreground: 44 33% 94% !important;
  --muted: 220 16% 11% !important;
  --muted-foreground: 43 9% 69% !important;
  --accent: 38 32% 59% !important;
  --accent-foreground: 220 16% 4% !important;
  --border: 43 9% 22% !important;
  --input: 43 9% 25% !important;
  --ring: 38 32% 59% !important;
  --navy: 220 16% 4% !important;
  --navy-light: 220 16% 11% !important;
  --gold: 38 32% 59% !important;
  --gold-light: 39 60% 73% !important;
}

html,
body {
  background: #08090b !important;
  color: #f4f1e9 !important;
}

body {
  background-image:
    radial-gradient(circle at 78% 12%, rgba(199, 164, 103, 0.035), transparent 28%),
    linear-gradient(180deg, #08090b 0%, #0a0c0f 100%) !important;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-primary,
.text-foreground,
.text-card-foreground,
.text-secondary-foreground {
  color: #f4f1e9 !important;
}

.bg-background,
.bg-primary {
  background-color: #08090b !important;
}

.bg-card,
.bg-card\/95 {
  background-color: rgba(13, 15, 18, 0.96) !important;
}

.bg-secondary,
.bg-muted {
  background-color: #171a20 !important;
}

.text-muted-foreground,
.text-foreground\/70,
.text-foreground\/80,
.text-primary-foreground\/70,
.text-primary-foreground\/80,
.text-primary-foreground\/50 {
  color: #b8b4aa !important;
}

.text-accent {
  color: #c7a467 !important;
}

.bg-accent {
  background: linear-gradient(135deg, #c7a467 0%, #d8ba80 100%) !important;
  color: #08090b !important;
}

.bg-accent\/10 {
  background-color: rgba(199, 164, 103, 0.1) !important;
}

.border,
.border-b,
.border-t,
.border-y,
.border-border,
.border-input {
  border-color: rgba(199, 164, 103, 0.15) !important;
}

.border-destructive {
  border-color: #c7a467 !important;
}

.text-destructive {
  color: #c7a467 !important;
}

.hover\:bg-destructive\/10:hover,
.hover\:bg-secondary:hover,
.hover\:bg-muted:hover {
  background-color: rgba(199, 164, 103, 0.1) !important;
}

header.fixed {
  background:
    radial-gradient(circle at 14% 0%, rgba(167, 126, 58, 0.1), transparent 36%),
    repeating-linear-gradient(0deg, rgba(26, 24, 20, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(248, 245, 238, 0.98), rgba(235, 229, 217, 0.98)) !important;
  border-bottom-color: rgba(98, 72, 30, 0.2) !important;
  box-shadow: 0 10px 30px rgba(16, 14, 11, 0.14);
}

header.fixed nav > a:first-child {
  color: #151510 !important;
  letter-spacing: 0.04em;
}

header.fixed nav ul a {
  color: #39352f !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

header.fixed nav ul a:hover,
header.fixed nav ul a.text-accent {
  color: #6f4e18 !important;
  background: rgba(151, 109, 39, 0.1) !important;
}

header.fixed button:not([role="checkbox"]) {
  color: #231f18 !important;
}

main > header,
main section,
footer {
  border-color: rgba(199, 164, 103, 0.1) !important;
}

main > header {
  background:
    radial-gradient(circle at 85% 20%, rgba(199, 164, 103, 0.08), transparent 32%),
    #08090b !important;
}

main section {
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.96), rgba(11, 13, 16, 0.98)) !important;
  box-shadow: inset 0 1px rgba(199, 164, 103, 0.045);
}

main section:nth-of-type(even) {
  background:
    radial-gradient(circle at 12% 15%, rgba(199, 164, 103, 0.035), transparent 30%),
    linear-gradient(180deg, #0b0d10, #0d0f12) !important;
}

a {
  text-decoration: none !important;
  transition:
    color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

header.fixed nav ul a,
header.fixed nav > a,
a.inline-flex,
a.block,
button {
  background-image: none;
  text-decoration: none !important;
}

main p a:not(.inline-flex),
main li a:not(.inline-flex),
footer a,
form label a {
  background-image: linear-gradient(90deg, rgba(199, 164, 103, 0.72), rgba(227, 198, 143, 0.72));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
}

main p a:not(.inline-flex):hover,
main li a:not(.inline-flex):hover,
footer a:hover,
form label a:hover {
  color: #e3c68f !important;
  background-size: 100% 1px;
}

.transition,
.transition-colors,
.transition-all {
  transition-duration: 280ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

a.inline-flex,
button.inline-flex,
form button[type="submit"] {
  text-decoration: none !important;
  transition:
    color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

a.inline-flex:hover,
button.inline-flex:hover,
form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(199, 164, 103, 0.12);
}

/* Replace the imported magenta button border throughout the public site. */
button:not([role="checkbox"]) {
  border-color: rgba(158, 121, 61, 0.42) !important;
}

header.fixed button:not([role="checkbox"]),
section[aria-label="Zoznam kníh"] button:not([role="checkbox"]) {
  border: 0 !important;
}

/* Filled gold actions inherited a magenta theme border on several pages. */
button.bg-accent:not([role="checkbox"]) {
  border: 0 !important;
}

header.fixed button:not([role="checkbox"]):focus-visible,
section[aria-label="Zoznam kníh"] button:not([role="checkbox"]):focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(199, 164, 103, 0.48) !important;
}

.bg-muted-foreground {
  background: rgba(199, 164, 103, 0.09) !important;
  border: 1px solid rgba(199, 164, 103, 0.34) !important;
  color: #f4f1e9 !important;
}

.bg-muted-foreground:hover {
  background: rgba(199, 164, 103, 0.16) !important;
  border-color: rgba(227, 198, 143, 0.58) !important;
  color: #e3c68f !important;
}

a.block.bg-card,
.bg-card.border {
  background: linear-gradient(145deg, rgba(17, 19, 23, 0.96), rgba(11, 13, 16, 0.98)) !important;
  border-color: rgba(199, 164, 103, 0.14) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
}

a.block.bg-card:hover,
.bg-card.border:hover {
  border-color: rgba(199, 164, 103, 0.38) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

section[aria-label="Zoznam kníh"] .rsv-publication-media {
  position: relative;
  height: clamp(12rem, 22vw, 15rem) !important;
  overflow: hidden;
  background: #0b0d10 !important;
}

section[aria-label="Zoznam kníh"] .rsv-publication-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.001);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

section[aria-label="Zoznam kníh"] .bg-card:hover .rsv-publication-image {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.035);
}

main h1 {
  font-size: clamp(2.75rem, 6vw, 5rem) !important;
  line-height: 0.94 !important;
}

main h2 {
  line-height: 1.05 !important;
}

input,
textarea,
select {
  background: rgba(16, 18, 22, 0.82) !important;
  border-color: rgba(199, 164, 103, 0.22) !important;
  color: #f4f1e9 !important;
  transition: border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease !important;
}

input::placeholder,
textarea::placeholder {
  color: #807d75 !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #c7a467 !important;
  box-shadow: 0 0 0 2px rgba(199, 164, 103, 0.18) !important;
}

form button[role="checkbox"] {
  border-color: #c7a467 !important;
  color: #08090b !important;
}

form button[role="checkbox"][aria-checked="true"] {
  background: #c7a467 !important;
}

/* Keep the imported Radix checkbox compact and render exactly one indicator. */
#kontakt-form button#gdpr[role="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-grid !important;
  place-items: center !important;
  position: relative !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  flex: 0 0 18px !important;
  border: 1.5px solid #9e793d !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  color: #111216 !important;
  cursor: pointer;
  overflow: hidden;
}

#kontakt-form button#gdpr[role="checkbox"]::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.7);
}

#kontakt-form button#gdpr[role="checkbox"][aria-checked="true"] {
  background: #c7a467 !important;
}

#kontakt-form button#gdpr[role="checkbox"][aria-checked="true"]::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

/* Radix adds this for native form submission; the global input theme made it visible. */
#kontakt-form input[type="checkbox"][aria-hidden="true"] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e3c68f !important;
  outline-offset: 3px;
}

.rsv-form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.45;
}

.rsv-form-status--progress,
.rsv-form-status--success,
.rsv-form-status--error {
  display: block;
}

.rsv-form-status--progress {
  color: #e3c68f;
  border-color: rgba(199, 164, 103, 0.28);
  background: rgba(199, 164, 103, 0.08);
}

.rsv-form-status--success {
  color: #f4f1e9;
  border-color: rgba(199, 164, 103, 0.55);
  background: rgba(199, 164, 103, 0.13);
}

.rsv-form-status--error {
  color: #f1b5ad;
  border-color: rgba(221, 93, 77, 0.45);
  background: rgba(221, 93, 77, 0.1);
}

@media (max-width: 767px) {
  header nav.mobile-open ul {
    background:
      repeating-linear-gradient(0deg, rgba(26, 24, 20, 0.018) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, #f4f0e7, #e9e2d5) !important;
    border-bottom-color: rgba(98, 72, 30, 0.2) !important;
    box-shadow: 0 18px 35px rgba(16, 14, 11, 0.14);
  }

  main h1 {
    font-size: clamp(2.45rem, 13vw, 4rem) !important;
  }
}

/*
 * RS ALPHA uses a deliberate dark-to-paper rhythm. Keep hero, statistics,
 * implementation and CTA areas dark; render the principal content panels on
 * the same warm paper used by rsalphagroup.sk.
 */
main > section.bg-background,
main > section.bg-card:not([aria-label="Štatistiky"]) {
  background:
    radial-gradient(circle at 88% 8%, rgba(199, 164, 103, 0.12), transparent 26%),
    linear-gradient(180deg, #f4f1ea 0%, #f1eee7 58%, #ece8df 100%) !important;
  color: #111216 !important;
  border-color: rgba(17, 18, 22, 0.13) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -1px rgba(17, 18, 22, 0.06);
}

main > section.bg-card:not([aria-label="Štatistiky"]) {
  background:
    radial-gradient(circle at 10% 12%, rgba(199, 164, 103, 0.09), transparent 24%),
    linear-gradient(180deg, #ece8df 0%, #f4f1ea 100%) !important;
}

/* Keep the dark implementation card legible inside its paper-light section. */
body #content main > section#implementacia.bg-background .bg-primary {
  background: linear-gradient(145deg, #111318, #08090b) !important;
  color: #f4f1e9 !important;
  border: 1px solid rgba(199, 164, 103, 0.24);
}

body #content main > section#implementacia.bg-background .bg-primary h3 {
  color: #f4f1e9 !important;
}

body #content main > section#implementacia.bg-background .bg-primary .text-primary-foreground\/70 {
  color: #c9c4ba !important;
}

body #content main > section#implementacia.bg-background .bg-primary .text-accent {
  color: #e3c68f !important;
}

/* Training benefit tiles stay dark, so their labels need a light gold contrast. */
main > section[aria-label="Výhody školení"] .bg-background {
  background: linear-gradient(145deg, #111318, #08090b) !important;
  border-color: rgba(158, 121, 61, 0.35) !important;
}

main > section[aria-label="Výhody školení"] .bg-background .text-primary {
  color: #e3c68f !important;
}

main > section.bg-background h1,
main > section.bg-background h2,
main > section.bg-background h3,
main > section.bg-background h4,
main > section.bg-background h5,
main > section.bg-background h6,
main > section.bg-background .text-primary,
main > section.bg-background .text-foreground,
main > section.bg-background .text-card-foreground,
main > section.bg-background .text-secondary-foreground,
main > section.bg-card:not([aria-label="Štatistiky"]) h1,
main > section.bg-card:not([aria-label="Štatistiky"]) h2,
main > section.bg-card:not([aria-label="Štatistiky"]) h3,
main > section.bg-card:not([aria-label="Štatistiky"]) h4,
main > section.bg-card:not([aria-label="Štatistiky"]) h5,
main > section.bg-card:not([aria-label="Štatistiky"]) h6,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-primary,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-foreground,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-card-foreground,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-secondary-foreground {
  color: #111216 !important;
}

main > section.bg-background .text-muted-foreground,
main > section.bg-background .text-foreground\/70,
main > section.bg-background .text-foreground\/80,
main > section.bg-background .text-primary-foreground\/70,
main > section.bg-background .text-primary-foreground\/80,
main > section.bg-background .text-primary-foreground\/50,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-muted-foreground,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-foreground\/70,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-foreground\/80,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-primary-foreground\/70,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-primary-foreground\/80,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-primary-foreground\/50 {
  color: #5f5b54 !important;
}

main > section.bg-background .text-accent,
main > section.bg-card:not([aria-label="Štatistiky"]) .text-accent {
  color: #76551f !important;
}

main > section.bg-background .bg-card,
main > section.bg-card:not([aria-label="Štatistiky"]) .bg-card,
main > section.bg-background a.block.bg-card,
main > section.bg-card:not([aria-label="Štatistiky"]) a.block.bg-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(244, 240, 231, 0.82)) !important;
  color: #111216 !important;
  border-color: rgba(17, 18, 22, 0.14) !important;
  box-shadow: 0 18px 44px rgba(25, 22, 17, 0.06);
}

main > section.bg-background a.block.bg-card:hover,
main > section.bg-card:not([aria-label="Štatistiky"]) a.block.bg-card:hover {
  border-color: rgba(142, 105, 46, 0.42) !important;
  box-shadow: 0 22px 48px rgba(25, 22, 17, 0.1);
}

main > section.bg-background .border,
main > section.bg-background .border-b,
main > section.bg-background .border-t,
main > section.bg-background .border-y,
main > section.bg-background .border-border,
main > section.bg-card:not([aria-label="Štatistiky"]) .border,
main > section.bg-card:not([aria-label="Štatistiky"]) .border-b,
main > section.bg-card:not([aria-label="Štatistiky"]) .border-t,
main > section.bg-card:not([aria-label="Štatistiky"]) .border-y,
main > section.bg-card:not([aria-label="Štatistiky"]) .border-border {
  border-color: rgba(17, 18, 22, 0.14) !important;
}

main > section.bg-background input,
main > section.bg-background textarea,
main > section.bg-background select,
main > section.bg-card:not([aria-label="Štatistiky"]) input,
main > section.bg-card:not([aria-label="Štatistiky"]) textarea,
main > section.bg-card:not([aria-label="Štatistiky"]) select {
  background: rgba(255, 255, 255, 0.68) !important;
  color: #111216 !important;
  border-color: #7b756c !important;
}

main > section.bg-background input:focus,
main > section.bg-background textarea:focus,
main > section.bg-background select:focus,
main > section.bg-card:not([aria-label="Štatistiky"]) input:focus,
main > section.bg-card:not([aria-label="Štatistiky"]) textarea:focus,
main > section.bg-card:not([aria-label="Štatistiky"]) select:focus {
  border-color: #76551f !important;
  box-shadow: 0 0 0 3px rgba(118, 85, 31, 0.22) !important;
}

main > section.bg-background a:focus-visible,
main > section.bg-background button:focus-visible,
main > section.bg-background input:focus-visible,
main > section.bg-background textarea:focus-visible,
main > section.bg-card:not([aria-label="Štatistiky"]) a:focus-visible,
main > section.bg-card:not([aria-label="Štatistiky"]) button:focus-visible,
main > section.bg-card:not([aria-label="Štatistiky"]) input:focus-visible,
main > section.bg-card:not([aria-label="Štatistiky"]) textarea:focus-visible {
  outline-color: #76551f !important;
}

main > section.bg-background input::placeholder,
main > section.bg-background textarea::placeholder,
main > section.bg-card:not([aria-label="Štatistiky"]) input::placeholder,
main > section.bg-card:not([aria-label="Štatistiky"]) textarea::placeholder {
  color: #77726a !important;
}

main > section.bg-background form button[role="checkbox"],
main > section.bg-card:not([aria-label="Štatistiky"]) form button[role="checkbox"] {
  border-color: #9e793d !important;
}

main > section.bg-background a:not(.bg-accent):hover,
main > section.bg-card:not([aria-label="Štatistiky"]) a:not(.bg-accent):hover {
  color: #5f3f0f !important;
}

main > section.bg-background .rsv-form-status--progress,
main > section.bg-card:not([aria-label="Štatistiky"]) .rsv-form-status--progress {
  color: #66480f;
  border-color: #9a7636;
  background: #f0e3c5;
}

main > section.bg-background .rsv-form-status--success,
main > section.bg-card:not([aria-label="Štatistiky"]) .rsv-form-status--success {
  color: #245b3a;
  border-color: #4f7d5e;
  background: #e4eee6;
}

main > section.bg-background .rsv-form-status--error,
main > section.bg-card:not([aria-label="Štatistiky"]) .rsv-form-status--error {
  color: #8a3028;
  border-color: #aa5c54;
  background: #f5e2df;
}

main > section[aria-label="Štatistiky"] {
  background:
    linear-gradient(90deg, #0a0c0f 0%, #101216 50%, #0a0c0f 100%) !important;
  color: #f4f1e9 !important;
  border-color: rgba(199, 164, 103, 0.12) !important;
}

/* Subtle supplied artwork in the dark parts; the dark veil keeps it near 20%. */
main > header,
main > section.bg-primary {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.88), rgba(8, 9, 11, 0.79) 58%, rgba(8, 9, 11, 0.9)),
    url("./textures/alpha-digital-flow.jpg") center / cover no-repeat,
    #08090b !important;
}

main > section[aria-label="Štatistiky"],
main > section.bg-muted\/30 {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.86), rgba(12, 14, 17, 0.81), rgba(9, 10, 12, 0.9)),
    url("./textures/alpha-digital-grid.jpg") center / cover no-repeat,
    #0a0c0f !important;
}

footer {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.91), rgba(8, 9, 11, 0.84), rgba(8, 9, 11, 0.93)),
    url("./textures/alpha-digital-flow.jpg") 78% center / cover no-repeat,
    #08090b !important;
}

/* Supplied RS mark replaces the previous wordmark and Alpha Group footer logo. */
header.fixed nav > a:first-child {
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  overflow: hidden;
  border: 1px solid rgba(118, 85, 31, 0.24);
  border-radius: 4px;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: #08090b url("./branding/rs-logo-shaded.png") center / cover no-repeat !important;
  box-shadow: none !important;
}

footer h3:first-of-type {
  display: block !important;
  width: 76px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 103, 0.24);
  border-radius: 4px;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: #08090b url("./branding/rs-logo-shaded.png") center / cover no-repeat !important;
  box-shadow: none !important;
}

footer h3:first-of-type img {
  display: none !important;
}

@media (max-width: 767px) {
  main > header,
  main > section.bg-primary {
    background-position: center, 58% center, center !important;
  }

  main > section[aria-label="Štatistiky"],
  main > section.bg-muted\/30 {
    background-position: center, 72% center, center !important;
  }
}

/* Independent publication reader on /knihy. */
html.rsv-reader-open,
html.rsv-reader-open body {
  overflow: hidden !important;
}

.rsv-reader[hidden] {
  display: none !important;
}

.rsv-reader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f4f1e9;
  background:
    radial-gradient(900px 560px at 84% 8%, rgba(64, 76, 92, 0.34), transparent 60%),
    radial-gradient(1000px 620px at 14% 0%, rgba(199, 164, 103, 0.16), transparent 58%),
    linear-gradient(180deg, #07080a, #0c0f13 48%, #080a0d);
  isolation: isolate;
}

.rsv-reader,
.rsv-reader * {
  box-sizing: border-box;
}

.rsv-reader__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 76%);
}

.rsv-reader__header {
  min-height: 62px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(199, 164, 103, 0.18);
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(16px);
}

.rsv-reader__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rsv-reader__brand > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: linear-gradient(135deg, #e3c68f, #a78042 58%, #364454);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
}

.rsv-reader__brand strong {
  overflow: hidden;
  color: #f4f1e9;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsv-reader button {
  min-height: 38px;
  border: 1px solid rgba(227, 198, 143, 0.26);
  border-radius: 999px;
  color: #f4f1e9;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.rsv-reader button:hover:not(:disabled) {
  border-color: rgba(227, 198, 143, 0.62);
  color: #f2d69f;
  background: rgba(199, 164, 103, 0.12);
  transform: translateY(-1px);
}

.rsv-reader button:focus-visible {
  outline: 2px solid #e3c68f !important;
  outline-offset: 3px;
}

.rsv-reader button:disabled {
  opacity: 0.34;
  cursor: default;
}

.rsv-reader__close {
  padding: 8px 14px;
}

.rsv-reader__close span {
  margin-left: 5px;
  font-size: 1.15rem;
  font-weight: 400;
  vertical-align: -0.05em;
}

.rsv-reader__progress {
  height: 3px;
  flex: 0 0 3px;
  background: rgba(255, 255, 255, 0.07);
}

.rsv-reader__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #c7a467, #e6cb96 58%, #728294);
  box-shadow: 0 0 18px rgba(199, 164, 103, 0.42);
  transition: width 220ms ease;
}

.rsv-reader__stage {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3.4vh, 34px) 18px 100px;
  scrollbar-color: rgba(199, 164, 103, 0.55) rgba(255, 255, 255, 0.05);
}

.rsv-reader__slide {
  width: min(1100px, 96vw);
  min-height: calc(100dvh - 205px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #111216;
  background:
    radial-gradient(850px 420px at 11% 0%, rgba(199, 164, 103, 0.15), transparent 60%),
    radial-gradient(700px 440px at 92% 8%, rgba(57, 70, 85, 0.1), transparent 58%),
    linear-gradient(180deg, #f5f2eb, #ece8df);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.34);
}

.rsv-reader__slide-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid rgba(17, 18, 22, 0.14);
}

.rsv-reader__kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  color: #76551f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rsv-reader__kicker::before {
  width: 34px;
  height: 1px;
  flex: 0 0 34px;
  content: "";
  background: linear-gradient(90deg, #b98d48, rgba(185, 141, 72, 0.12));
}

.rsv-reader .rsv-reader__slide h2 {
  margin: 0;
  color: #111216 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 4.4vw, 3.8rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.045em;
  line-height: 0.98 !important;
}

.rsv-reader__subtitle {
  max-width: 72ch;
  margin: 16px 0 0;
  color: #5f5b54;
  font-size: 0.96rem;
  line-height: 1.62;
}

.rsv-reader__slide-header aside {
  display: grid;
  min-width: 190px;
  gap: 3px;
  color: #6c675e;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: right;
}

.rsv-reader__slide-header aside strong {
  color: #76551f;
}

.rsv-reader__slide-header aside small {
  margin-top: 6px;
  color: #888278;
  font-size: 0.68rem;
}

.rsv-reader__content {
  display: grid;
  gap: 17px;
  padding: clamp(22px, 3.3vw, 38px) clamp(24px, 4vw, 42px);
}

.rsv-reader__columns,
.rsv-reader__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rsv-reader__panel,
.rsv-reader__stat {
  padding: 19px;
  border: 1px solid rgba(17, 18, 22, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 30px rgba(25, 22, 17, 0.035);
}

.rsv-reader .rsv-reader__panel h3 {
  margin: 0 0 13px;
  color: #76551f !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.72rem;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rsv-reader__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #272722;
  font-size: 0.92rem;
  line-height: 1.58;
  list-style: none;
}

.rsv-reader__list:not(.rsv-reader__list--ordered) li {
  position: relative;
  padding-left: 20px;
}

.rsv-reader__list:not(.rsv-reader__list--ordered) li::before {
  position: absolute;
  top: 0.57em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 30% 25%, #fff, #c7a467 52%, #8c642a);
  box-shadow: 0 3px 10px rgba(142, 100, 42, 0.23);
}

.rsv-reader__list--ordered {
  padding-left: 25px;
  list-style: decimal;
}

.rsv-reader__list--ordered li {
  padding-left: 4px;
}

.rsv-reader__list--ordered li::marker {
  color: #76551f;
  font-weight: 800;
}

.rsv-reader blockquote {
  margin: 0;
  padding: 16px 19px;
  border: 0;
  border-left: 3px solid #b98d48;
  border-radius: 0 3px 3px 0;
  color: #2a2925;
  background: linear-gradient(90deg, rgba(199, 164, 103, 0.17), rgba(58, 71, 85, 0.06));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.62;
}

.rsv-reader__stat {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: center;
}

.rsv-reader__stat strong {
  color: #76551f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.rsv-reader__stat span,
.rsv-reader__paragraphs p {
  margin: 0;
  color: #47443f;
  font-size: 0.9rem;
  line-height: 1.62;
}

.rsv-reader__paragraphs {
  display: grid;
  gap: 13px;
}

.rsv-reader__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(17, 18, 22, 0.14);
  border-radius: 3px;
}

.rsv-reader table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #272722;
  font-size: 0.84rem;
  line-height: 1.5;
}

.rsv-reader th,
.rsv-reader td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(17, 18, 22, 0.12);
  text-align: left;
  vertical-align: top;
}

.rsv-reader th {
  color: #f4f1e9;
  background: #15181c;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rsv-reader tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.44);
}

.rsv-reader__slide > footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(24px, 4vw, 42px);
  border-top: 1px solid rgba(17, 18, 22, 0.14);
  color: #676159;
  font-size: 0.7rem;
  line-height: 1.45;
}

.rsv-reader__slide > footer strong {
  color: #76551f;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsv-reader__slide > footer span {
  text-align: right;
}

.rsv-reader__navigation {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(470px, calc(100vw - 28px));
  padding: 9px;
  border: 1px solid rgba(227, 198, 143, 0.2);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.rsv-reader__navigation button {
  padding: 9px 13px;
}

.rsv-reader__next {
  justify-self: stretch;
}

.rsv-reader__counter {
  min-width: 52px;
  color: #bbb6ad;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 720px) {
  .rsv-reader__header {
    min-height: 56px;
    gap: 10px;
    padding: 8px 12px;
  }

  .rsv-reader__brand {
    gap: 8px;
  }

  .rsv-reader__brand > span {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .rsv-reader__brand strong {
    font-size: 0.75rem;
  }

  .rsv-reader__close {
    min-height: 34px !important;
    padding: 7px 10px !important;
  }

  .rsv-reader__stage {
    padding: 12px 9px 86px;
  }

  .rsv-reader__slide {
    width: 100%;
    min-height: calc(100dvh - 160px);
  }

  .rsv-reader__slide-header {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 22px 18px;
  }

  .rsv-reader .rsv-reader__slide h2 {
    font-size: clamp(1.75rem, 9.2vw, 2.7rem) !important;
  }

  .rsv-reader__slide-header aside {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px 12px;
    text-align: left;
  }

  .rsv-reader__slide-header aside small {
    width: 100%;
    margin-top: 2px;
  }

  .rsv-reader__content {
    padding: 19px 16px;
  }

  .rsv-reader__columns,
  .rsv-reader__stats {
    grid-template-columns: 1fr;
  }

  .rsv-reader__panel,
  .rsv-reader__stat {
    padding: 16px;
  }

  .rsv-reader__slide > footer {
    display: grid;
    gap: 5px;
    padding: 13px 16px;
  }

  .rsv-reader__slide > footer span {
    text-align: left;
  }

  .rsv-reader__navigation {
    bottom: 10px;
    gap: 5px;
    width: calc(100vw - 18px);
    padding: 6px;
  }

  .rsv-reader__navigation button {
    min-height: 36px;
    overflow: hidden;
    padding: 8px 7px;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  .rsv-reader__counter {
    min-width: 42px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsv-reader *,
  .rsv-reader *::before,
  .rsv-reader *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final contrast override for the three benefit labels on /skolenia. */
body #content main > section[aria-label="Výhody školení"] div.bg-background > p.text-primary {
  color: #e3c68f !important;
}
