/* ==========================================
   1. ЗАГАЛЬНІ СТИЛІ ТА ШАПКА (HEADER)
   ========================================== */
.head-container {
  display: flex;
  flex-direction: row;        /* Гарантує, що блоки стоять В РЯДОК */
  width: 100%;
  height: 70px;
  background-color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.head-block {
  box-sizing: border-box;
  height: 70px;
}

/* Лівий блок (Логотип 300x70) */
.head-left {
  width: 300px;              /* Фіксуємо ширину блока */
  flex-shrink: 0;            /* Забороняємо Flexbox стискати цей блок */
}

.head-left img {
  width: 300px;
  height: 70px;
  display: block;
  border: 0;
}

/* Центральний блок (Баннер) */
.head-center {
  flex-grow: 1;              /* Займає весь вільний простір праворуч */
  background-color: #ffffff;
  background-image: url('/img/back-2026.png');
  background-repeat: no-repeat;
  background-position: right;
  display: flex;
  align-items: center;
  justify-content: center;
}

.head-center img {
  max-width: 468px;
  max-height: 60px;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   2. МОБІЛЬНА АДАПТИВНІСТЬ (МЕНШЕ 768px)
   ========================================== */
@media (max-width: 768px) {

  .head-center {
    display: none !important;
  }

  .head-left {
    flex: 1;
    }

  .head-left img {
    width: 100%;
    max-width: 300px;
    height: 70px;
    object-fit: cover;
    }

}



/* ==========================================
   ВЕРХНЯ ПАНЕЛЬ (ГАМБУРГЕР)
   ========================================== */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #fffcf8;
  box-sizing: border-box;
}

.top-bar-search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Кнопка Гамбургер (за замовчуванням схована на ПК) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  flex-shrink: 0;
  z-index: 10001;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анімація перетворення гамбургера на хрестик X */
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}


/* ==========================================
   3. ОСНОВНИЙ КОНТЕНТ ТА ДЕСКТОПНЕ МЕНЮ
   ========================================== */
.main-wrapper {
  display: flex;
  width: 100%;
  min-height: 80vh;
}

.sidebar-menu {
  width: 240px;
  flex-shrink: 0;
  background-color: #ffffff;
/*  background-image: url("/img/bg_02.jpg"); */
  border-right: 1px solid #808080;
  box-sizing: border-box;
}

/* Стилі для списку меню (меню33 та меню44) */
ul.menu33 {
  padding: 0;
  margin: 0;
  list-style: none;
/*  background-image: url("/img/bg_02.jpg");     */
/*  background-repeat: repeat;                   */
}

li.menu33 {
  list-style-type: none;
}

li.menu33 a {
  width: 100%;
  box-sizing: border-box;
  font: bold 14px Tahoma, Georgia, Verdana, Arial, sans-serif;
  color: #000000;
  display: block;
  padding: 6px 0 6px 8px;
  text-decoration: none;
  border-bottom: 1px dotted #666666;
}

li.menu33 a:hover {
  background: #dbffdb;
  color: #000000;
  border-bottom: 1px solid #000000;
}

li.menu44 {
  width: 100%;
  box-sizing: border-box;
  min-height: 30px;
  font: bold 14px Tahoma, Georgia, Verdana, Arial, sans-serif;
  color: #000000;
  background-color: #acd7ac;
  border-bottom: 1px dotted #666666;
  padding: 4px 2px;
}

li.menu44 img {
  vertical-align: middle;
  margin-right: 4px;
}

/* Контентна область */
.main-content-area {
  display: flex;
  flex-grow: 1;
  background-color: #fffcf8;
  min-width: 0;
}

.note_c {
  flex-grow: 1;
  min-width: 0;
/*  background: #ffffff url('/img/bg_01a.jpg');  */
  padding: 10px 15px;
  box-sizing: border-box;
}

.note_c .content {
  max-width: 100%;
  overflow-x: auto;
}

.content h1 {
  margin-top: 10px;
  font-size: 1.5em;
}

.content h1 img {
  vertical-align: middle;
  margin-right: 6px;
}

.site-footer {
  width: 100%;
  background-color: #ffffff;
  padding: 10px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  padding: 0;
  font-family: Tahoma, Georgia, Verdana, Arial, sans-serif;
  font-size: 14px;
}


/* ==========================================
   4. АДАПТИВНІ СТИЛІ ДЛЯ МОБІЛЬНИХ (менше 768px)
   ========================================== */
@media (max-width: 768px) {
  /* Приховуємо бокові картинки шапки */
  .header-container {
    justify-content: center;
    padding: 8px 0;
  }

  /* Панель з гамбургером і пошуком */
  .top-bar {
    padding: 8px 10px;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
  }

  /* Показуємо кнопка гамбургера */
  .hamburger-btn {
    display: flex !important;
  }

  .top-bar-search {
    max-width: 100%;
    flex-grow: 1;
  }

  /* Структура сторінки */
  .main-wrapper {
    flex-direction: column;
    position: relative;
  }

  .sidebar-menu {
    width: 100% !important;
    position: relative;
    border-right: none;
    background-image: none;
  }

  /* ВИПАДАЮЧЕ МОБІЛЬНЕ МЕНЮ */
  .main-nav {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    max-width: 90vw;
    z-index: 9999;
    background-color: #ffffff;
/*    background-image: url("/img/bg_02.jpg");
    background-repeat: repeat;  */
    border: 1px solid #808080;
    border-top: none;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);
    padding: 0;
    box-sizing: border-box;
  }

  /* Стан відкритого меню (активується через JS) */
  .main-nav.active {
    display: block !important;
  }

  /* Стилі елементів у мобільному меню */
  .main-nav ul.menu33 {
    width: 100% !important;
    background-color: transparent !important;
  }

  .main-nav li.menu33 a {
    width: 100% !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
  }

  .main-content-area {
    width: 100% !important;
  }

  .note_c {
    width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box;
  }
}








/* ##################### OLD begin #############################*/

/* ==========================================
   ПОСИЛАННЯ (A)
   ========================================== */
a {
  color: #0000FF;
  font: 14px Tahoma, Georgia, Verdana, Arial, sans-serif;
}

a:visited,
a:hover {
  color: #9392e7;
}

a:hover {
  text-decoration: none;
}

/* ==========================================
   СПЕЦІАЛЬНІ ЕЛЕМЕНТИ
   ========================================== */
span.up {
  font-size: 10px;
  vertical-align: super;
}

/* ==========================================
   ТАБЛИЦІ В КОНТЕНТІ
   ========================================== */
.content table {
  font: 1em Tahoma, sans-serif;
  text-align: left;
  border-collapse: collapse;
}

.content th,
.content td {
  padding: 4px;
  border: 1px solid gray;
}

.content th {
  font-weight: bold;
  background-color: #E5E5E5;
}

.content td {
  vertical-align: top;
  background-color: #FFFFCC;
}

/* ==========================================
   ЗАГОЛОВКИ ТА ТЕКСТ У КОНТЕНТІ
   ========================================== */
.content h1,
.content h2,
.content h3 {
  font-family: Georgia, Verdana, Arial, Tahoma, sans-serif;
}

.content h1 { font-size: 25px; }
.content h2 { font-size: 20px; }
.content h3 { font-size: 18px; }

.content h4 {
  font-family: Verdana, Arial, Tahoma, sans-serif;
  font-size: 16px;
}

.content p {
  font-family: Tahoma, Georgia, Verdana, Arial, sans-serif;
  font-size: 14px;
}

/* Адаптивність усіх зображень на сайті */
img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/****************** MAIN CONTENT *******************/
/****************** MAIN CONTENT *******************/
/****************** MAIN CONTENT *******************/
/****************** MAIN CONTENT *******************/
/****************** MAIN CONTENT *******************/

/* Контейнер для блоків */
.cards-container {
  display: flex;
  flex-direction: row;      /* Блоки йдуть в рядок: 1 | 2 */
  gap: 20px;                 /* Відступ між блоками */
  width: 100%;
  box-sizing: border-box;
}

/* Самі блоки */
.card-item {
  flex: 1;                   /* Обидва блоки будуть однакової ширини */
  background-color: #ffffff; /* Ваш колір чи фонова картинка */
/*  background-image: url("/img/bg_02.jpg");   */
  padding: 15px;
  border: 1px solid #cccccc;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .cards-container {
    flex-direction: column; /* Змінюємо напрямок: блоки падають один під другий (1 / 2) */
    gap: 15px;              /* Відступ між блоками по вертикалі */
  }

  .card-item {
    width: 100%;           /* Кожен блок займає всю ширину екрана */
  }
}

/********************** GOOGLE *************************/

/* GOOGLE search - прибирає відступи for PC над та під вікном пошуку (класи взято з Гугл-пошуку F12) */
.gsc-control-cse { padding: 0 !important; }
/* GOOGLE search - прибирає відступи for PC ліві та праві від вікна пошуку (класи взято з Гугл-пошуку F12) */
.gsc-control-wrapper-cse form.gsc-search-box { margin: 0 !important; }

/* Зовнішній контейнер для вирівнювання */
.ad-container {
  width: 100%;
  margin: 10px auto;
  text-align: center;
}

/* Базові стилі для самого рекламного блоку */
.my-responsive-ad {
  display: inline-block;
  width: 728px;  /* Стандартний великий банер для ПК */
  height: 90px;
}

/* Для планшетів та малих екранів ПК (до 992px) */
@media (max-width: 992px) {
  .my-responsive-ad {
    width: 468px;
    height: 60px;
  }
}

/* Для смартфонів (до 768px) */
@media (max-width: 768px) {
  .my-responsive-ad {
    width: 320px;  /* Стандартний мобільний банер */
    height: 100px; /* або 50px */
  }
}

/***************** Counter BEGIN */
.site-stats {
  color: #000000;
  font-family: Verdana, sans-serif;
  font-size: 10pt;
  text-align: center;
  margin-top: 15px;
}
.site-stats strong {
  color: #000000;
  font-weight: bold;
}
/***************** Counter END */


/* green square */
.green-box {
  width: 12px;
  height: 12px;
  background-color: #008000;
  display: inline-block;     /* дозволяє квадрату гармонійно виглядати поруч із текстом */
  margin-left: 4px;
  margin-top: 4px;
}

/* line */
.site-divider {
  border: none !important;
  height: 1px !important;
  background-color: #808080 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
  clear: both;
}
