
/* Shared styles for all pages in /sveden */
.header { background:#111; color:#fff; position:relative; z-index:50; border-bottom:1px solid #303030; }
.header a { color:inherit; }
.topline { background:#111; }
.top-inner { width:min(1320px, calc(100% - 40px)); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:22px; }
.topline .top-inner { min-height:78px; }
.header .logo { display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff; }
.logo-symbol { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; background:#c7192d; color:#fff; font-weight:900; font-size:22px; border-radius:7px; }
.logo-text { font-size:16px; font-weight:900; letter-spacing:.7px; }
#accessibility-toggle {
  display:inline-flex; align-items:center; gap:9px;
  border:1px solid rgba(255,255,255,.25); background:#c7192d; color:#fff;
  border-radius:999px; padding:9px 17px; cursor:pointer; font:inherit;
  font-size:13px; font-weight:800; box-shadow:0 8px 28px rgba(0,0,0,.38);
  transition:background .2s, border-color .2s;
}
#accessibility-toggle:hover,#accessibility-toggle:focus-visible { background:#a90f23; border-color:#fff; }
#accessibility-toggle [aria-hidden="true"] { font-size:15px; line-height:1; }
.sveden-page,.page-content { width:min(1400px, calc(100% - 40px)); margin:0 auto; padding:34px 0 70px; color:#222; }
.breadcrumbs { color:#777; font-size:13px; line-height:1.6; margin:0 0 24px; }
.breadcrumbs a { color:#c7192d; text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; }
.sveden-heading,.sveden-main h1 { color:#161616; font-size:clamp(25px,3vw,34px); font-weight:850; line-height:1.2; margin:0 0 25px; }
.sveden-layout { display:grid; grid-template-columns:290px minmax(0,1fr); gap:30px; align-items:start; }
.sveden-sidebar { background:#f5f5f5; border:1px solid #e2e2e2; border-radius:10px; padding:18px 0; min-width:0; }
.sveden-sidebar h3 { color:#171717; font-size:16px; margin:0; padding:0 17px 14px; }
.sveden-menu { list-style:none; padding:0; margin:0; }
.sveden-menu li { margin:0; }
.sveden-menu a,.sveden-sidebar > a { display:block; color:#333; text-decoration:none; padding:10px 15px; border-left:4px solid transparent; font-size:13px; line-height:1.45; overflow-wrap:anywhere; transition:background .18s,color .18s; }
.sveden-menu a:hover,.sveden-sidebar > a:hover { background:#e9e9e9; color:#b7192b; }
.sveden-menu a.active,.sveden-sidebar > a.active { background:#c7192d; color:#fff; border-left-color:#161616; font-weight:700; }
.sveden-content,.sveden-main { min-width:0; color:#262626; }
.sveden-intro,.page-lead { color:#555; font-size:15px; line-height:1.75; margin:0 0 22px; }
.sveden-content p,.sveden-main p { line-height:1.7; }
.sveden-card,.info-card { background:#fff; border:1px solid #e4e4e4; border-radius:10px; padding:22px; margin:0 0 20px; box-shadow:0 5px 18px #00000008; color:#252525; }
.sveden-card h2,.info-card h2,.section-title { color:#191919; font-size:20px; line-height:1.35; margin:0 0 14px; }
.table-scroll,.table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; margin:14px 0; }
.info-table,.data-table { width:100%; border-collapse:collapse; background:#fff; color:#252525; font-size:14px; min-width:560px; }
.info-table th,.data-table th { background:#252525; color:#fff; text-align:left; padding:13px 15px; font-weight:700; border:1px solid #3b3b3b; }
.info-table td,.data-table td { padding:13px 15px; border:1px solid #e1e1e1; vertical-align:top; line-height:1.6; overflow-wrap:anywhere; }
.info-table tbody tr:nth-child(even) td,.data-table tbody tr:nth-child(even) td { background:#f6f6f6; }
.info-table a,.data-table a,.sveden-content a,.sveden-main a { color:#bd1d30; }
.placeholder,.muted { color:#777; font-style:italic; }
.sveden-note { margin-top:20px; padding:15px 18px; border-left:4px solid #c7192d; background:#f3f3f3; color:#555; font-size:14px; line-height:1.65; }
.document-list { display:grid; gap:10px; }
.document-link { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; background:#f5f5f5; border:1px solid #e4e4e4; border-radius:7px; color:#252525!important; text-decoration:none; }
.document-link:hover { border-color:#c7192d; background:#fff; }
.document-link b { flex:0 0 auto; background:#c7192d; color:#fff; border-radius:4px; padding:4px 8px; font-size:11px; }
.official-notice { display:flex; align-items:flex-start; gap:17px; padding:23px; background:#f5f5f5; border:1px solid #e2e2e2; border-left:5px solid #c7192d; border-radius:8px; color:#222; }
.official-notice h2 { margin:0 0 9px; font-size:19px; color:#181818; }
.official-notice p { margin:0; font-size:16px; line-height:1.7; }
.notice-icon { display:grid; place-items:center; flex:0 0 32px; height:32px; border-radius:50%; background:#c7192d; color:white; font-weight:800; }
.footer { background:#111; color:#eee; padding:42px max(20px, calc((100% - 1320px)/2)) 18px; }
.footer-main { display:grid; grid-template-columns:1.2fr 1fr 1.2fr; gap:35px; padding-bottom:28px; }
.footer-brand p,.footer-column p { color:#aaa; font-size:13px; line-height:1.6; }
.footer-column { display:flex; flex-direction:column; gap:10px; }
.footer-column h3 { color:#fff; font-size:15px; margin:0 0 5px; }
.footer-column a,.footer-bottom a { color:#ddd; text-decoration:none; font-size:13px; overflow-wrap:anywhere; }
.footer-column a:hover,.footer-bottom a:hover { color:#ff6574; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; border-top:1px solid #333; padding-top:15px; color:#999; font-size:12px; }
.footer-bottom p { margin:0; }
@media(max-width:900px) {
 .sveden-layout { grid-template-columns:1fr; gap:20px; }
 .sveden-sidebar { padding:14px 0; }
 .sveden-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .footer-main { grid-template-columns:1fr 1fr; }
}
@media(max-width:650px) {
 .top-inner { width:calc(100% - 28px); }
 .topline .top-inner { min-height:68px; flex-wrap:wrap; padding:10px 0; }
 #accessibility-toggle { font-size:12px; padding:7px 12px; }
 .logo-text { font-size:13px; }
 .logo-symbol { width:36px; height:36px; flex-basis:36px; }
 .sveden-page,.page-content { width:calc(100% - 28px); padding:24px 0 45px; }
 .sveden-menu { grid-template-columns:1fr; }
 .sveden-card,.info-card { padding:16px; }
 .footer-main { grid-template-columns:1fr; gap:22px; }
 .footer-bottom { align-items:flex-start; flex-direction:column; }
 .official-notice { padding:17px; }
}

.sveden-content h2,.sveden-main h2 { color:#191919; line-height:1.35; }
.sveden-content ul,.sveden-main ul { padding-left:22px; }
.sveden-content li,.sveden-main li { margin:0 0 8px; line-height:1.65; }
.sveden-content a,.sveden-main a { overflow-wrap:anywhere; }
a.is-unavailable { opacity:.65; cursor:not-allowed; pointer-events:none; }


/* === Accessibility and theme fixes === */
body.sveden-site {
  background: #f3f4f6 !important;
  color: #222 !important;
  min-height: 100vh;
}
body.sveden-site .sveden-page,
body.sveden-site .page-content {
  color: #242424 !important;
}
body.sveden-site .sveden-heading,
body.sveden-site .sveden-content,
body.sveden-site .sveden-content h1,
body.sveden-site .sveden-content h2,
body.sveden-site .sveden-content h3,
body.sveden-site .sveden-main,
body.sveden-site .sveden-main h1,
body.sveden-site .sveden-main h2,
body.sveden-site .sveden-main h3 {
  color: #202124 !important;
}
body.sveden-site .sveden-intro,
body.sveden-site .page-lead,
body.sveden-site .sveden-content p,
body.sveden-site .sveden-main p,
body.sveden-site .breadcrumbs {
  color: #555 !important;
}
body.sveden-site .sveden-content,
body.sveden-site .sveden-main {
  background: transparent;
}
body.sveden-site .sveden-sidebar {
  background: #fff !important;
  border-color: #d9dce1 !important;
  box-shadow: 0 5px 18px rgba(20,25,35,.06);
}
body.sveden-site .sveden-sidebar h3 { color: #202124 !important; }
body.sveden-site .sveden-menu a,
body.sveden-site .sveden-sidebar > a { color: #30343b !important; }
body.sveden-site .sveden-menu a.active,
body.sveden-site .sveden-sidebar > a.active { color: #fff !important; }
body.sveden-site .info-table,
body.sveden-site .data-table {
  color: #202124 !important;
  background: #fff !important;
}
body.sveden-site .info-table td,
body.sveden-site .data-table td { color: #202124 !important; }
body.sveden-site .placeholder,
body.sveden-site .muted { color: #666 !important; }
body.sveden-site .sveden-note,
body.sveden-site .documents-note {
  background: #fff !important;
  color: #454950 !important;
}
body.sveden-site .logo-image,
body.privacy-page .logo-image {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 7px;
}
body.sveden-site .logo-text {
  color: #fff !important;
  font-size: 15px;
  line-height: 1.2;
}
body.sveden-site .footer { color: #eee !important; }
@media (max-width: 650px) {
  body.sveden-site .logo-image,
  body.privacy-page .logo-image {
    width: 36px; height: 36px; flex-basis: 36px;
  }
}


/* Accessible environment information */
.sveden-notice {
    margin-top: 24px;
    padding: 18px 20px;
    color: #242424;
    background: #f3f3f3;
    border-left: 4px solid #c7192d;
    line-height: 1.65;
}
.sveden-notice strong {
    color: #151515;
}


/* ==========================================================
   РЕЖИМЫ «ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ» НА ВНУТРЕННИХ СТРАНИЦАХ
   (оформление самой панели задаётся в ../style.css)
   ========================================================== */

/* Увеличение шрифта: базовое правило (html 19px + zoom:1.15)
   задаётся в ../style.css — здесь только пропорциональный межстрочный интервал. */
body.access-font-large p,
body.access-font-large a,
body.access-font-large li { line-height: 1.8; }

/* Скрытие изображений — плавное, без прыжка вёрстки и битых иконок */
img, video, iframe { transition: opacity .35s ease, filter .35s ease, visibility .35s ease; }
body.access-hide-images img,
body.access-hide-images video,
body.access-hide-images iframe {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Светлая контрастность: чёрный текст на белом фоне */
body.access-contrast-light,
body.access-contrast-light :not(img):not(video):not(iframe):not(.accessibility-panel) {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

/* Высокая контрастность: белый текст на чёрном фоне */
body.access-contrast-dark,
body.access-contrast-dark :not(img):not(video):not(iframe):not(.accessibility-panel) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

/* Адаптация текста, карточек, таблиц и кнопок при режимах доступности */
body.access-font-large :is(h1,h2,h3,h4,h5,h6,p,a,span,li,strong,small,td,th,label,button,input,textarea,select),
body.access-contrast-dark :is(h1,h2,h3,h4,h5,h6,p,a,span,li,strong,small,td,th,label,button,input,textarea,select),
body.access-contrast-light :is(h1,h2,h3,h4,h5,h6,p,a,span,li,strong,small,td,th,label,button,input,textarea,select) {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.access-font-large :is(.sveden-card,.info-card,.official-notice,.document-link,.sveden-note,.sveden-menu a,#accessibility-toggle,.accessibility-panel-inner button),
body.access-contrast-dark :is(.sveden-card,.info-card,.official-notice,.document-link,.sveden-note,.sveden-menu a,#accessibility-toggle,.accessibility-panel-inner button),
body.access-contrast-light :is(.sveden-card,.info-card,.official-notice,.document-link,.sveden-note,.sveden-menu a,#accessibility-toggle,.accessibility-panel-inner button) {
    height: auto !important;
    min-height: fit-content;
    white-space: normal;
}

body.access-contrast-dark :is(.info-table,.data-table) th,
body.access-contrast-dark :is(.info-table,.data-table) td { border-color: #fff !important; color: #fff !important; }
body.access-contrast-light :is(.info-table,.data-table) th,
body.access-contrast-light :is(.info-table,.data-table) td { border-color: #000 !important; color: #000 !important; }
