/* ===== 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: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 10px;

}

/* текст */
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);
}


/* фон ТОЛЬКО для контейнера */
td.style19 {
    
    background-size: cover;
    padding: 10px;
    border-radius: 12px;
}
td.style19 table,
td.style19 tr,
td.style19 td {
    background: transparent !important;
}
.logo {
    background: url('/top.JPG') repeat-x !important;
    padding: 10px;
}td.style19 {
    width: 289px;
    max-width: 289px;
}tr[bgcolor] {
    background: transparent !important;
}/* ===== ПРЕМИУМ БЛОК КОНТЕНТА ===== */
.table_big {
    background: rgba(255, 255, 255, 0.75); /* стекло эффект */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-radius: 16px;
    padding: 25px;

    /* мягкая дорогая тень */
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.05);

    border: 1px solid rgba(255,255,255,0.6);
}

/* заголовок */
.table_big h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #222;
}

/* текст */
.table_big p {
    color: #444;
    line-height: 1.7;
    font-size: 15px;
}

/* ===== КАРТИНКИ ===== */
.table_big img {
    border-radius: 12px;
    transition: all 0.3s ease;

    /* аккуратная тень */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* hover эффект */
.table_big img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .table_big {
        padding: 15px;
    }
}/* плавное появление */
.table_big {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* контейнер */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* карточка */
.gallery-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}.table_big img {
    transition: all 0.4s ease;
}

.table_big img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}a {
    transition: 0.3s;
}

a:hover {
    color: #ff7a00;
}body {
    background: linear-gradient(#f8fafc, #eef2f7);
}/* текст блока */
.table_big p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;

    margin-bottom: 18px;
}

/* первый абзац — акцент */
.table_big p:first-of-type {
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

/* отступ сверху между блоками */
.table_big h2 {
    margin-bottom: 20px;
}

/* лёгкое разделение */
.table_big p + p {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
}/* выделение важных слов */
.table_big strong {
    color: #000;
}

/* красивый отступ слева (как блог) */
.table_big {
    border-left: 4px solid #2d7df6;
}/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* карточка */
.feature {
    display: flex;
    gap: 15px;

    background: rgba(255,255,255,0.7);
    border-radius: 14px;
    padding: 15px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* иконка */
.feature .icon {
    font-size: 26px;
}

/* заголовок */
.feature h3 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

/* текст */
.feature p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
}
/* ===== СТАБИЛЬНЫЙ ФИКС КОНТАКТОВ (МОБИЛКА) ===== */
@media (max-width: 768px) {

    /* ячейка просто центрирует содержимое */
    td[width="217"] {
        width: 100% !important;
        text-align: center !important;
        vertical-align: top !important;
    }

    /* внутренняя таблица по центру и не тянется */
    td[width="217"] table.www3 {
        display: inline-table !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    /* САМА КАРТОЧКА — НЕ растягиваем! */
    .top-Color {
        display: inline-block !important;
        width: auto !important;
        max-width: 240px;   /* компактно, не больше меню */
        padding: 10px 12px;

        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);

        text-align: center;
    }

    /* компактный текст */
    .top-Color p {
        margin: 5px 0;
        font-size: 13px;
        line-height: 1.4;
    }

    /* убираем лишние отступы оберток */
    td[width="217"] div[align="right"] {
        text-align: center !important;
    }
}