/* ==========================================
   1. ЗАГАЛЬНІ СТИЛІ ТА ШАПКА (HEADER)
   ========================================== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
}

.header-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-left,
.header-right {
  width: 300px;
  flex-shrink: 0;
}

.header-center {
  flex-grow: 1;
}

.header-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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;
}


/* ==========================================
   2. ВЕРХНЯ ПАНЕЛЬ (ПОШУК ТА ГАМБУРГЕР)
   ========================================== */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background-color: #ffffff;
  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: #FFFFCC;
  color: #000000;
  border-bottom: 1px solid #000000;
}

li.menu22 {
  list-style-type: none;
}

li.menu22 a {
  width: 100%;
  box-sizing: border-box;
  font: 14px Tahoma, Georgia, Verdana, Arial, sans-serif;
  color: #000000;
  display: block;
  padding: 6px 0 6px 20px;
  text-decoration: none;
  border-bottom: 1px dotted #666666;
}

li.menu22 a:hover {
  background: #FFFFCC;
  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: #FF0000;
  background-color: #E5DBA0;
  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: #E5DBA0;
  min-width: 0;
}

.note_left,
.note_right {
  width: 60px !important;
  min-width: 60px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
}

.note_left {
  border-left: 1px solid #808080;
  background: #FFFFFF url('/img/vyshyvanka_02.gif') repeat-y;
}

.note_right {
  border-right: 1px solid #808080;
  background: #FFFFFF url('/img/vyshyvanka_03.gif') repeat-y;
}

.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: #ffffcc;
  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;
  }

  .header-left,
  .header-right {
    display: none !important;
  }

  .header-center {
    width: 100%;
    text-align: center;
  }

  .header-center img {
    max-width: 85%;
    height: auto;
    margin: 0 auto;
  }

  /* Панель з гамбургером і пошуком */
  .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;
  }

  /* Приховуємо вишиванки з боків */
  .note_left,
  .note_right {
    display: none !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 */

.ad-container {
  width: 100%;
  margin: 15px 0;      /* Відступи зверху та знизу */
  text-align: center;  /* Центрування банера */
  overflow: hidden;    /* Запобігає виходу банера за межі екрана */
}