/* =========================================================
   ОСНОВА
========================================================= */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-family: var(--font-family-base);
  font-size: 1.0625rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #1f1f1f;
  color: var(--color-text);
  background: #330066;
  /* #f4f6fb; */
  background: var(--color-body-bg);
}

/* =========================================================
   ЛИНКОВЕ И ФОКУС
========================================================= */
a {
  color: #004a99;
  color: var(--color-link);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

a:hover {
  color: #002f66;
  color: var(--color-link-hover);
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #ffcc00;
  outline: var(--focus-outline-width) solid var(--color-focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* =========================================================
   SKIP LINK
========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position:fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  padding: var(--padding-skip-y) var(--padding-skip-x);
  background: #ffeb3b;
  background: var(--color-skip-bg);
  color: #000000;
  color: var(--color-text-black);
  border: 2px solid #000000;
  border: var(--skip-border-width) solid var(--color-skip-border);
  z-index: 2147483647;
  text-decoration: none;
  font-weight: bold;
}


.assistive-jump-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.assistive-jump-link:focus {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  padding: var(--padding-skip-y) var(--padding-skip-x);
  background: #ffeb3b;
  background: var(--color-skip-bg);
  color: #000000;
  color: var(--color-text-black);
  border: 2px solid #000000;
  border: var(--skip-border-width) solid var(--color-skip-border);
  text-decoration: none;
  font-weight: bold;
}

/* =========================================================
   ТИПОГРАФИЯ
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-headings);
  font-weight: bold;
  color: #1a1a1a;
  color: var(--color-text-heading);
}

h1 {
  margin-top: 0;
  font-size: 2rem;
  font-size: var(--font-size-h1);
}

h2 {
  font-size: 1.625rem;
  font-size: var(--font-size-h2);
}

h3 {
  font-size: 1.375rem;
  font-size: var(--font-size-h3);
}

h4 {
  font-size: 1.1875rem;
  font-size: var(--font-size-h4);
}

h5 {
  font-size: 1rem;
  font-size: var(--font-size-h5);
}

h6 {
  font-size: 1rem;
  font-size: var(--font-size-h6);
}

p,
ul,
ol,
dl,
table,
blockquote {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: var(--space-xs);
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

/* =========================================================
   МЕДИЯ
========================================================= */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}


figure {
  margin: 0 0 var(--space-md);
}

figcaption {
  font-size: 0.9375rem;
  font-size: var(--font-size-caption);
  color: var(--color-text-black); 
  margin-top: var(--space-xs);
}

/* Центриране */
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Вляво */
.float-left {
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* Вдясно */
.float-right {
  float: right;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

/* Изчистване (ако ти трябва след float) */
.clear {
  clear: both;
}

.header-image {
  max-width: 100%;
}

.header-image img {
  width: 100%;       /* това е ключът */
  height: auto;      /* пази пропорцията */
  display: block;
}


.media-center {
  display: block;
  margin: 0 auto;
}

figure.center {
  text-align: center;
}



/* =========================================================
   ТАБЛИЦИ
========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  max-width: 100%;
}

th,
td {
  padding: 0.5rem 0.625rem;
  padding: var(--padding-table-cell-y) var(--padding-table-cell-x);
  border: 1px solid #cfd6e4;
  border: 1px solid var(--color-border-table);
  vertical-align: top;
  text-align: left;
}

th {
  background: #eef3ff;
  background: var(--color-table-head-bg);
  font-weight: bold;
}

/* =========================================================
   ФОРМИ
========================================================= */
input,
textarea,
select,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.link-highlight {
  color: #c00; /* червен */
  font-weight:bolder;
  text-decoration:underline;
  font-size: 1.2rem; /* малко по-голям текст */
  padding: 0.1em 0.2em;
  border-radius: 2px;
  transition: background-color 0.2s ease;
  text-shadow:1px 1px 0 #444;
}

.link-highlight:hover,
.link-highlight:focus {
  background-color: #ffcc00;
  color:red;
}


#main-content:focus {
  outline: none;
}
