@font-face {
  font-family: 'e-Ukraine';
  src: url('/static/registration/fonts/e-ukrainehead-regular_w.woff') format('woff2'),
       url('/static/registration/fonts/e-ukrainehead-regular_w.woff2') format('woff');
}

body {
  -webkit-text-size-adjust: none; /* отключает автоматическое увеличение шрифта на iPhone */
  font-family: 'e-Ukraine';
}

.head {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 6vh;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: #FFFFFF;
  background-image: url("/static/registration/images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  z-index: 10;
  border: 1px solid #E9967A;
  box-sizing: border-box;

  font-family: 'e-Ukraine', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.02em;

  padding: 5px 5vw;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.span_direct {
    color: #006994;
    font-family: 'e-Ukraine';
    font-size: 20px;
    margin-bottom: 10px;
}


@media (max-width: 480px) {
  .head {
    height: auto;;
    min-height: 8vh;
    letter-spacing: 0;
    padding: 5px 12px;
    border-width: 1px;
  }
}



@media (min-width: 481px) and (max-width: 768px) {
  .head {
    height: auto;;
    min-height: 7vh;
    letter-spacing: 0;
    padding: 5px 12px;
    border-width: 1px;
  }
}


@media (min-width: 769px) and (max-width: 1200px) {
  .head {
    height: auto;;
    min-height: 5vh;
    letter-spacing: 0;
    padding: 5px 12px;
    border-width: 1px;
  }
}


@media (min-width: 1201px) {
  .head {
    height: auto;;
    min-height: 4vh;
    letter-spacing: 0;
    padding: 5px 12px;
    border-width: 1px;
  }
}


.sidebar h2, .middlebar h2 {
    margin-top: 0;
    font-family: 'e-Ukraine';
    color: #2E56A7;
}

.table-div {

  height: 100vh;
}

.table-message
 {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
}

.image-container {
    position: relative;
    height: 50vh;
    background-image: url("/static/registration/images/course_hano.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    text-align: center;
    font-family: 'e-Ukraine';
    color: #6e1963;
    font-weight: bold;
    font-size: 34px;
}


.image-container::before {
    content: none;
    font-size: 28px;
}


.image-container > * {
    position: relative;
    font-size: 28px;
    z-index: 2;
}


.image-container > p:nth-of-type(1) {
    margin-top: 60px;

}


.image-container > p:nth-of-type(3) {
    margin-bottom: 60px;
}

.name_academy {
    color: #6e1963;
    font-size: 34px;
}


.text-container {
    position: relative;
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #6e1963;
    background: linear-gradient(to bottom, #f2f2f2, #dce8f1);
    border-radius: 9px;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.7), 0 0 40px rgba(255, 140, 0, 0.6);
    font-family: 'e-Ukraine';
    line-height: 1.6;
    text-align: center;
    font-size: 28px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

.text-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #F39C12, #34495E);
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    z-index: 1;
}



@media (max-width: 768px) {
    .image-container {
        height: auto;
        padding: 40px 10px;
        font-size: 28px;
    }

    .image-container > p:nth-of-type(1) {
        margin-top: 20px;
    }

    .image-container > p:nth-of-type(3) {
        margin-bottom: 20px;
    }

    .text-container {
        margin-top: 0;
    }
}


@media (max-width: 480px) {
    .image-container {
        font-size: 22px;
        padding: 30px 5px;
    }
}



.sidebar {
    top: 5vh;
    left: 0;
    width: 100%;
    background-color: #F0F0F0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100vw;
    box-sizing: border-box;
}


.sidebar ul {
    list-style-type: none;
    padding: 0;
    padding-bottom: 20px;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333333;
    font-family: 'e-Ukraine';
    font-size: 22px;
    line-height: 1.1;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a.active,
.middlebar ul li a.active{
    background-color: #99CCFF;
    color: #003366;
    font-weight: bold;
}


.sidebar ul li a:hover {
    background-color: #ddd;
}

.main-content {
    margin-left: 270px;
    padding: 20px;
}

.middlebar {
    width: 100%;
    height: auto;
    overflow-y: auto;
    background-color: #D8D8D8;
    color: #333333;
    font-size: 15px;
    padding: 20px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #E9967A;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100vw;
    box-sizing: border-box;
}

.middlebar h3 {
    margin-top: 0;
}

.middlebar ul {
    list-style-type: none;
    padding: 0;
    color: #2E3A87;
    padding-bottom: 30px;
}

.middlebar ul li {
    margin-bottom: 10px;
}

.middlebar ul li a {
    text-decoration: none;
    color: #333;
    font-family: 'e-Ukraine';
    line-height: 1.1;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 20px;
}


.middlebar ul li a:hover {
    background-color: #b0bec5;
    color: #ffffff;
}

.month-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px;
    width: 100%;
    max-width: 900px;
    overflow-x: hidden;
    background-image: url("/static/registration/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 100vw;
    box-sizing: border-box;
}

.month-list table {
    margin-top: 10px;
    table-layout: fixed;
    width: 100%;
    overflow-y: auto;
    display: block;
    border-collapse: separate;
    max-height: 90vh;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 100%;
    vertical-align: top;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-spacing: 0 !important;
}

}
.month-list tbody {
  display: block;
  width: 100%;
}

.month-list th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border: 1px solid #ccc;
    padding: 10px;
    color: #007bff;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    vertical-align: middle;
}

.month-list td {
    color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    display: block;
    width: 100%;
}


.month-list tr:hover td {
    color: #007bff;
    font-weight: bold;
    font-size: 18px;
}

.month-list tr {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.table-img-text {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-y: scroll;
    align-items: center;
    margin: 0;
    justify-content: center;
    background-image: url("/static/registration/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

.month-message h2,p {
    margin: 0;
    padding: 10;
    font-family: 'e-Ukraine';
    font-weight: bold;
    font-size: 24px;
    color: #2E56A7;
    text-align: center;
}


.month-message {
    width: 100%;
    height: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    text-align: center;
    padding: 0;
    margin: 0;
}


.month-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: linear-gradient(145deg, #6B5FCC, #5A4EAB);
  color: #FFFFFF;

  font-family: 'e-Ukraine', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 20px);

  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;

  padding: 10px 35px;
  width: 100%;
  max-width: 250px;
  height: auto;

  box-sizing: border-box;
  transition: all 0.3s ease;


  box-shadow:
    inset 0 5px 15px rgba(255, 255, 255, 0.4),
    0 5px 0 #4B3F91,
    0 10px 20px rgba(91, 78, 171, 0.4);
}


.month-item:hover:not(.disabled) {
  background: linear-gradient(145deg, #A3FFE5, #5A4EAB);
  transform: translateY(-3px);
  box-shadow:
    inset 0 6px 20px rgba(163, 255, 229, 0.3),
    0 7px 0 #6CD6D3,
    0 14px 30px rgba(163, 255, 229, 0.3);
}


.month-item:active:not(.disabled) {
  background: #4a3f91;
  transform: scale(0.95);
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.25);
}


.month-item.disabled {
  background: #C71585 !important;
  color: #FFFFFF !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
  text-decoration: none;
  transform: none !important;
  box-shadow: none !important;
}


.month-item.disabled:hover,
.month-item.disabled:active {
  background: #C71585 !important;
  color: #FFFFFF !important;
  transform: none !important;
  box-shadow: none !important;
}


@media (max-width: 768px) {
  .month-item {
    max-width: 90%;
    font-size: clamp(14px, 4vw, 18px);
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .month-item {
    padding: 10px 16px;
    font-size: 16px;
    box-shadow:
      inset 0 4px 10px rgba(255, 255, 255, 0.3),
      0 4px 10px rgba(91, 78, 171, 0.3);
  }
}


.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1px;
    width: 100%;
}

.button, .button_code_word, .button_error_registration {
    background: linear-gradient(145deg, #6B5FCC, #5A4EAB);
    color: #FFFFFF;
    font-family: 'e-Ukraine';
    font-size: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 14px 38px;
    width: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 30px 10px 30px 10px;
    box-shadow:
      inset 0 5px 15px rgba(255, 255, 255, 0.4),
      0 6px 0 #4B3F91,
      0 12px 22px rgba(91, 78, 171, 0.4);
    transition: all 0.3s ease;
}


.button:hover,
.button_code_word:hover,
.button_error_registration:hover{
  background: linear-gradient(145deg, #A3FFE5, #5A4EAB);
  color: #2B1C78;
  box-shadow:
    inset 0 6px 20px rgba(163, 255, 229, 0.3),
    0 8px 0 #6CD6D3,
    0 16px 30px rgba(163, 255, 229, 0.4);
  transform: translateY(-3px);
}

/* Нажатие */
.button:active,
.button_code_word:active,
.button_error_registration:active {
  background: #4a3f91;
  transform: scale(0.95);
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.2);
}

.button_code_word, .button_error_registration {
    width: 20%;
    align-items: center;
    display: inline-block;
    margin-top: 30px;
}


.table-buttons {
  text-align: center;
  margin-top: 25px;
}

.table-buttons .button {
  margin: 5px;
  padding: 10px 25px;
  border-radius: 30px;
  background: linear-gradient(145deg, #A4166A, #C93A87);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.table-buttons .button:hover {
  background: linear-gradient(145deg, #C93A87, #A4166A);
}


a.button {
    background-color: #28a745;
    color: white;
    font-family: 'e-Ukraine', sans-serif;
    text-decoration: none;
}

.button:active,
.button_code_word:active,
.button_error_registration:active,
.table-buttons .button:active,
a.button:active {
  background: linear-gradient(145deg, #A3FFE5, #5A4EAB);
  color: #2B1C78;
  transform: scale(0.96) translateY(1px);
  box-shadow:
    inset 0 5px 10px rgba(163, 255, 229, 0.3),
    0 4px 0 #6CD6D3,
    0 10px 20px rgba(163, 255, 229, 0.3);
  transition: all 0.15s ease;
}

.button, .button_code_word, .button_error_registration, .table-buttons .button, a.button {
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent; /* убирает серую подсветку при тапе */
}

.button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
}

.button:active:after {
  background: rgba(255,255,255,0.2);
}



element.style {
    display: none;
}


.error_check {
    background-color: #FF5722; /* оранжевый фон */
    color: #FFFFFF; /* белый текст */
    font-size: 26px;
}

.body_code_word,
.error_registration {
    font-family: 'e-Ukraine';
    background-color: #F5F6FA;
    color: #2E3A87;
    margin: 0;
    padding: 40px 20px;
    text-align: center;
}

/* Полоска сверху с градиентом и молекулярной сеткой */
.top-gradient-bar {
    width: 100%; /* Полоса растягивается на всю ширину */
    height: 2cm; /* Высота полоски 2 см */
    background-image: url("/static/registration/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Настройка текста внутри блока, если нужно добавить текст на полоске */
.top-gradient-bar p {
    color: #fff; /* Белый цвет текста для контраста */
    text-align: center;
    margin: 0; /* Убираем отступы */
    line-height: 2cm; /* Центрируем текст по вертикали внутри полоски */
}


.code_word_messege {
    font-size: 30px;
    font-weight: bold;
    color: #4B3F91; /* тёмный фиолетовый */
    margin-bottom: 20px;
    font-family: 'e-Ukraine', sans-serif;
}

.code_word_messege1 {
    font-size: 34px;
    line-height: 1.5;
    color: #333B7C;
    margin-bottom: 20px;
    font-family: 'e-Ukraine', sans-serif;
}

.code_word {
    display: inline-block;
    background-color: #EDEEFF;
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid #6B5FCC;
    font-size: 30px;
    font-weight: bold;
    color: #2E3A87;
    box-shadow: 0 4px 10px rgba(91, 78, 171, 0.2);
    margin-top: 10px;
    font-family: 'e-Ukraine', sans-serif;
}
.span_code_word {
    font-size: 40px;
    color: #FF6EC7;
}


.registration_table td {
    border: none;           /* Убираем границу у таблицы */
    padding: 8px; /* Отступы внутри ячеек таблицы */
}


/* таблица для вібора периода */
/* Стили для заголовков таблицы *//* === Основные настройки таблицы === */
.period-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  max-width: 100%;     /* можно менять — ширина самой карточки */
  margin: 0 auto;       /* ⬅ центрирование по горизонтали */
  border-radius: 12px;  /* чтобы выглядело как карточка */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  justify-content: center; /* по горизонтали */
  display: flex;  /* Используем flexbox для выравнивания */
  flex-direction: column;
}

/* Прячем заголовки таблицы */
.period-table thead {
  display: none;
}

/* Карточный стиль строк */
/* Карточный стиль строк */
.period-table tbody tr {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  justify-content: center; /* Центрируем содержимое по горизонтали */
  align-items: center; /* Центрируем элементы внутри */
}


.period-table tbody tr:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Ячейки */
.period-table td {
  border: none;
  padding: 5px 0;
  font-family: 'e-Ukraine', sans-serif;
  justify-content: center; /* по горизонтали */
}

/* Отдельные поля */
.period-table td[data-label="Період"] {
  font-weight: 700;
  font-size: 18px;
  color: #A4166A; /* малиновый акцент */
}

.period-table td[data-label="Опис"] {
  color: #555;
  font-size: 15px;
}

.period-table td[data-label="Години"] {
  font-weight: 600;
  color: #444;
}

.period-table td[data-label="Статус"] {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #999;
}









.error {
    color: red;
    font-size: 30px;
    text-align: center;
    font-weight: bold;
}


.arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #6e1963; /* Бордовий в тон названия цвет стрелки */
  /*#6600FF Синий цвет стрелки*/
  position: relative;
  top: -20px; /* Поднимаем стрелку вверх */
  margin: 0 auto; /* Центрируем стрелку */
  display: block; /* Чтобы применился margin: 0 auto */
  animation: bounce 1s infinite;
}

.arrow + * {
  margin-top: 1px; /*  отступ между стрелкой и следующим элементом */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Обертка для ссылки */
.email-link-wrapper {
  width: 100%;
  display: flex;
  justify-content: center; /* Центрирует саму круглую кнопку */
  align-items: center;
  margin-top: 20px; /* Отступ сверху по желанию */
  /*background-color: rgba(201, 162, 126, 0.2)*/
  /*background-color: #C9A27E;*/
      background-image: url("/static/registration/images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

.email-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
background-color: #b8855e;


  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.email-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
/* Эффект при наведении */
.email-link:hover {
  background-color: #0077cc; /* Синий фон при наведении */
  transform: scale(1.1); /* Немного увеличиваем иконку */
}

/* Фокусировка для доступности */
.email-link:focus {
  outline: 2px solid #0077cc;
}
.error-buttons {
    display: flex;
    flex-direction: column;   /* одна под другой */
    align-items: center;      /* выравнивание по центру */
    gap: 20px;                /* отступ между кнопками */
    margin-top: 20px;
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .button_code_word:hover,
  .button_error_registration:hover,
  .table-buttons .button:hover,
  a.button:hover {
    transform: none;
    box-shadow: none;
  }
}


