/* ===== RESET ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

table {
    border-collapse: collapse;
}

table, td {
    border: none !important;
}

/* ===== HEADER ===== */
.header {
    background: url('/top.JPG') repeat-x;
    border-bottom: 1px solid #ccc;
}

/* языки */
.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 5px 20px;
}

/* основной блок */
.header-main {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

/* логотип */
.header-left img {
    height: 70px;
}

/* центр */
.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

/* справа */
.header-right {
    font-size: 13px;
    text-align: right;
}

/* языки */
.lang-box a {
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    margin-left: 5px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

/* ===== МЕНЮ ===== */

/* ===== КОНТЕНТ ===== */
.table_big {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

/* текст */
p {
    color: #444;
    line-height: 1.6;
}

h2 {
    font-size: 24px;
}

/* ===== КАРТИНКИ ===== */
img {
   
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: 0.3s;
}

img:hover {
    transform: scale(1.03);
}

/* ===== ССЫЛКИ ===== */
a {
    color: #2c6ed5;
}

a:hover {
    color: orange;
}

/* ===== МОБИЛКА ===== */
@media (max-width: 768px) {
    table, tr, td {
        display: block;
        width: 100% !important;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        text-align: center;
    }
}
/* ===== ГАЛЕРЕЯ (ОРИГИНАЛ) ===== */
/* защита галереи от других стилей */
.gallery-item img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;

  /* мягкая тень */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.gallery-item:hover {
  transform: translateY(-3px);

  /* сильнее при наведении */
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item img:hover {
  transform: scale(1.04);
  transition: 0.3s;
}

/* ===== LIGHTBOX (ОРИГИНАЛ) ===== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 85%;
  max-height: 85%;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* стрелки */
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* анимация */
#lightbox-img {
  max-width: 85%;
  max-height: 85%;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

#lightbox-img.show {
  opacity: 1;
  transform: scale(1);
}/* фон блока меню как header */
td.style19 {
    background: url('/top.JPG') repeat-x;
    padding: 10px;
}

/* пункты меню */
ul.MenuBarVertical > li > a {
    background: rgba(255,255,255,0.75);
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 8px 25px 8px 10px;
    transition: 0.2s;

    /* ТЕНЬ */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* hover */
ul.MenuBarVertical > li > a:hover {
    background: rgba(255,255,255,1);

    /* чуть сильнее при наведении */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* подменю */
ul.MenuBarVertical li ul {
    background: url('/top.JPG') repeat-x;
    border-radius: 8px;
    border: 1px solid #ccc;

    /* ТЕНЬ ПОДМЕНЮ */
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* пункты подменю */
ul.MenuBarVertical li ul li a {
    background: rgba(255,255,255,0.85);

    /* маленькая тень */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* hover */
ul.MenuBarVertical li ul li a:hover {
    background: #ffffff;
}

/* стрелка */
ul.MenuBarVertical a.MenuBarItemSubmenu::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
}
/* ===== ЛЕВОЕ МЕНЮ (ФИНАЛ) ===== */

/* фон блока меню */
td.style19 {
    background: url('/top.JPG') repeat-x;
    padding: 10px;
}

/* контейнер */
#menu {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 10px;
}

/* пункты меню */
ul.MenuBarVertical > li > a {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 10px 30px 10px 12px;
    transition: 0.25s;
    position: relative;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* hover эффект */
ul.MenuBarVertical > li > a:hover {
    background: #ffffff;
    transform: translateX(4px);
}

/* ===== СТРЕЛКА ===== */
ul.MenuBarVertical a.MenuBarItemSubmenu::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 16px;
}

/* ===== ПОДМЕНЮ ===== */
ul.MenuBarVertical li ul {
    background: url('/top.JPG') repeat-x;
    border-radius: 10px;
    border: 1px solid #ccc;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* пункты подменю */
ul.MenuBarVertical li ul li a {
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 3px;
}

/* hover подменю */
ul.MenuBarVertical li ul li a:hover {
    background: #ffffff;
}