/*
Theme Name: Tourism Theme
Theme URI: http://10.0.0.16
Author: Ваше имя
Author URI: http://10.0.0.16
Description: Оптимизированная тема для туристического сайта
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nabran.ru
*/

/* ========================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.1;
    color: #333;
    background: #78b8d4;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

form {
    padding: 0;
    margin: 0;
}

input, textarea, select {
    vertical-align: middle;
    font-family: verdana, arial, helvetica;
}

fieldset {
    border: 1px solid #6C7079;
    padding: 2px 5px;
}

legend {
    padding: 0 3px 2px;
}

label {
    cursor: pointer;
}

hr {
    border-top: 1px solid #6C7079;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-size: 10pt;
    font-family: arial, serif;
    margin: 0;
}

.clear {
    clear: both;
}


/* ========================================
   Новости
   ======================================== */

.news-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.news-item { margin-bottom: 40px; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.news-thumbnail img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; }
.news-title { font-size: 24px; margin: 0 0 10px; }
.news-meta { color: #666; font-size: 14px; margin-bottom: 10px; }
.news-excerpt { margin-bottom: 15px; line-height: 1.6; }
.read-more { color: #229ed9; font-weight: bold; text-decoration: none; }










/* ===== КОНТЕЙНЕР КАРТОЧКИ - ФИКСИРОВАННАЯ ВЫСОТА ===== */
.geodir-post .card,
.col.mb-4 .card {
    height: 200px !important; /* Увеличили чтобы влезло название */
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s 0s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;

    z-index: 1;
}

.geodir-post .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 30;
    transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s 0s;
}

/* ===== ВЕРХНЯЯ ЧАСТЬ (ФОТО) - 170PX ===== */
.geodir-post .card-img-top {
    height: 170px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    z-index: 2;
}

.geodir-post .card-img-top img,
.geodir-post .geodir-image-container img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

/* ===== CARD-BODY - СОДЕРЖИТ НАЗВАНИЕ И СКРЫТЫЙ КОНТЕНТ ===== */
.geodir-post .card-body {
    position: relative;
    padding: 8px 12px !important;
    background: white;
    z-index: 3;
}

/* ===== НАЗВАНИЕ - ВСЕГДА ВИДНО ПОД ЛОГОТИПОМ ===== */
.geodir-post .card-body .geodir-post-title {
    display: block !important;
    position: relative !important;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.geodir-post .card-body .geodir-post-title h3 {
    margin: 0 !important;
    font-size: 1.1rem !important;
}

.geodir-post .card-body .geodir-post-title h3 a {
    color: #333 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: block;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.geodir-post .card-body .geodir-post-title h3 a:hover {
    color: #0066cc !important;
}

/* ===== СКРЫВАЕМ ОСТАЛЬНОЙ КОНТЕНТ ИЗ CARD-BODY ===== */
.geodir-post .card-body > *:not(.geodir-post-title) {
    display: none !important;
}

/* ===== БЛОК С РЕЙТИНГОМ - ВЫЕЗЖАЕТ СВЕРХУ ===== */
.geodir-post .card-footer {
    position: absolute;
    bottom: 97%; /* Поднимаем НАД карточкой */
    left: 0;
    right: 0;
    backdrop-filter: blur(8px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, visibility 0.35s ease, padding 0.35s ease;
    z-index: 10;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}

.geodir-post .card:hover .card-footer {
    max-height: 150px;
    opacity: 1;
    visibility: visible;
    padding: 12px 15px;
    background: #ffffff;
}

/* ===== БЛОК С ОПИСАНИЕМ И МЕТА - ВЫЕЗЖАЕТ СНИЗУ ===== */
.geodir-post .gd-expand-bottom {
    position: absolute;
    top: 96%; /* Начинается ПОСЛЕ карточки */
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, visibility 0.35s ease, padding 0.35s ease;
    z-index: 15;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.geodir-post .card:hover .gd-expand-bottom {
    max-height: 500px;
    min-height: 130px;
    opacity: 1;
    visibility: visible;
    padding: 3px;
    overflow-y: auto;
}

/* Аватар автора - скрыт */
.geodir-post .gv-hide-3,
.geodir-post .col-4.text-center,
.geodir-post .card-body .row.justify-content-center {
    display: none !important;
}

/* ===== КОНТЕНТ В НИЖНЕМ БЛОКЕ ===== */

/* Описание - стильный скроллер */
.geodir-post .gd-expand-bottom .geodir-post-content-container {
    display: block !important;
    margin-bottom: 12px;
}

.geodir-post .gd-expand-bottom .post_content {
    max-height: 6em;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* Красивый скроллер для описания */
.geodir-post .gd-expand-bottom .post_content::-webkit-scrollbar {
    width: 8px;
}

.geodir-post .gd-expand-bottom .post_content::-webkit-scrollbar-track {
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
    border-radius: 10px;
    margin: 2px 0;
}

.geodir-post .gd-expand-bottom .post_content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.geodir-post .gd-expand-bottom .post_content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255,255,255,0.5);
}

.geodir-post .gd-expand-bottom .post_content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #5a3d8a 0%, #4a5fd9 100%);
}

/* Мета-поля */
.geodir-post .gd-expand-bottom .geodir-output-location {
    display: block !important;
}

.geodir-post .gd-expand-bottom .geodir_post_meta {
    display: flex !important;
    align-items: flex-start;
    padding: 6px 0 !important;
    margin: 0 !important;
    font-size: 0.75rem;
    color: #555;
    border: none !important;
}

.geodir-post .gd-expand-bottom .geodir_post_meta_icon {
    color: #0066cc;
    min-width: 24px;
    margin-right: 6px;
}

.geodir-post .gd-expand-bottom .geodir_post_meta_title {
    font-weight: 500;
    color: #333;
    margin-right: 4px;
}

/* ===== СКРОЛЛБАР ДЛЯ НИЖНЕГО БЛОКА ===== */
.geodir-post .gd-expand-bottom::-webkit-scrollbar {
    width: 6px;
}

.geodir-post .gd-expand-bottom::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.geodir-post .gd-expand-bottom::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.geodir-post .gd-expand-bottom::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* ===== ОТСТУП МЕЖДУ КАРТОЧКАМИ ===== */
.gd_listings_item,
.col.mb-4 {
    margin-bottom: 40px !important; /* Больше места для выезжающих блоков */
}


/* ===== ДОПОЛНИТЕЛЬНЫЕ ОПТИМИЗАЦИИ ===== */

/* Плавное появление текста */
.geodir-post .card:hover .card-footer > *,
.geodir-post .card:hover .gd-expand-bottom > * {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшение ссылок */
.geodir-post .card-footer a,
.geodir-post .gd-expand-bottom a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.geodir-post .card-footer a:hover,
.geodir-post .gd-expand-bottom a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Убираем конфликтующие стили Bootstrap */
.geodir-post .card.h-100 {
    height: 200px !important;
}

.geodir-post .card:hover.h-100 {
    height: 200px !important;
}




/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .geodir-post .card,
    .col.mb-4 .card {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        touch-action: manipulation; /* Улучшает отзывчивость на мобильных */
    }
    
    .geodir-post .card-img-top {
        height: 150px !important;
        cursor: pointer; /* Показываем что элемент кликабельный */
    }
    
    /* Убираем стандартный hover для мобилок */
    .geodir-post .card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .geodir-post .card:hover .card-footer,
    .geodir-post .card:hover .gd-expand-bottom {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0;
    }
    
    /* Класс для активной (раскрытой) карточки */
    .geodir-post .card.card-expanded {
        transform: translateY(-3px) !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
        z-index: 30 !important;
        position: relative;
    }
    
    .geodir-post .card.card-expanded .card-footer {
        max-height: 120px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 12px !important;
    }
    
    .geodir-post .card.card-expanded .gd-expand-bottom {
        max-height: 400px !important;
        min-height: 150px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 12px !important;
    }
    
    /* Скрываем дополнительную информацию по умолчанию */
    .geodir-post .card:active .card-footer,
    .geodir-post .card:active .gd-expand-bottom {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0;
    }
    
 
    
    /* Делаем так, чтобы при раскрытой карточке ссылка в заголовке была кликабельна сразу */
    .geodir-post .card.card-expanded .geodir-post-title a {
        pointer-events: auto;
    }
}









/* ========================================
   ОСНОВНАЯ СТРУКТУРА
   ======================================== */

#bgimg1, #bgimg2 {
    width: 100%;
    display: block;
    position: fixed;
    z-index: -2;
    left: 0;
}

#bgimg1 {
    height: 50%;
    top: 0;
}

#bgimg2 {
    height: 30%;
    bottom: 0;
}

#site_page {
    max-width: 1000px;
    height: auto;
    vertical-align: top;
    margin: 0 auto;
    clear: both;
}

#header {
    max-width: 1000px;
    height: auto;
    vertical-align: top;
}

/* ========================================
   ШАПКА САЙТА
   ======================================== */

#shapka {
    max-width: 1000px;
    height: 130px;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

#rkl {
    height: 130px;
    max-width: 873px;
    float: right;
    overflow: hidden;
    position: absolute;
    margin: 0 127px 0 0;
}

#rklk {
    height: 130px;
    float: left;
    margin: 10px 0 0 -10px;
    overflow: hidden;
}

#rklk::after {
    content: " ";
    display: inline-block;
    width: 350px;
}

#rkll {
    height: 130px;
    width: 20px;
    float: left;
    background: transparent url(/img/rkl/rkll.png) no-repeat left top;
}

#rklc {
    height: 130px;
    max-width: 873px;
    background: transparent url(/img/rkl/rklc.png) repeat-x top;
    margin: 0 29px 0 20px;
}

#rklr {
    height: 130px;
    width: 29px;
    float: right;
    background: transparent url(/img/rkl/rklr.png) no-repeat right top;
}

/* ========================================
   КОНТЕНТ И БЛОКИ
   ======================================== */

#cob {
    max-width: 1000px;
    vertical-align: top;
    padding: 3px 0;
}

#co {
    left: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
    padding: 9px;
    margin: 2px 0;
    border-radius: 0 9px 0 9px;
}

#bo {
    max-width: 1000px;
    height: auto;
    text-align: left;
    vertical-align: top;
    padding: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    border-radius: 0 9px 0 9px;
}

#bo img {
    max-width: 1000px;
    border: 1px solid #fff;
    float: left;
    margin: 1px;
}

/* Боковые блоки */
#bloki {
    width: 380px;
    vertical-align: top;
    float: left;
    padding: 0 0 5px 0;
    position: absolute;
    z-index: 9999;
}

#boxTable {
    width: 380px;
}

#boxContent {
    padding: 0 11px;
    text-align: left;
}

.boxTitle {
    padding: 7px 0 0 85px;
    text-align: left;
    font-weight: bold;
    font-size: 8pt;
    font-family: Arial, Sans-Serif;
    color: #FF0000;
}

.blocks {
    width: 380px;
    height: 29px;
    background-repeat: no-repeat;
    background-position: left top;
}

.block-top {
    background: transparent url("/img/design/block-top.png") no-repeat left top;
    width: 380px;
    height: 30px;
}

.block-bg {
    background: transparent url("/img/design/block-bg.png") repeat-y;
    backdrop-filter: blur(10px);
}

.block-bottom {
    background: transparent url("/img/design/block-bottom.png") no-repeat left top;
    width: 380px;
    height: 30px;
}

.block-bottom-end {
    background: transparent url("/img/design/block-bottom-end.png") no-repeat left top;
    width: 380px;
    height: 21px;
}




/* Основной контейнер — ширина до 250px */
#user-login-box {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок "Войти" */
.login-title {
    background: #4a6bff; /* красивый синий, можно поменять */
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Форма входа */
.login-form-wrap {
    padding: 20px 18px;
}

#custom-login-form {
    margin: 0;
}

#custom-login-form p {
    margin: 0 0 16px;
}

#custom-login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

#custom-login-form input[type="text"],
#custom-login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

#custom-login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #4a6bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#custom-login-form input[type="submit"]:hover {
    background: #3a5aff;
}

.lost-password {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

.lost-password a {
    color: #4a6bff;
    text-decoration: none;
}

/* После входа — аватар + меню */
.logged-in-user {
    padding: 20px 18px;
    text-align: center;
}

.user-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    border-radius: 50%;
    border: 3px solid #4a6bff;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.user-menu li {
    margin: 8px 0;
}

.user-menu a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.user-menu a:hover {
    background: #4a6bff;
    color: white;
}








/* ========================================
   ФУТЕР
   ======================================== */

#foo {
    max-width: 1000px;
    height: auto;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
    padding: 9px;
    border-radius: 0 9px 0 9px;
}

#fbo {
    max-width: 1000px;
    height: auto;
    text-align: left;
    padding: 0 5px;
    vertical-align: top;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    border-radius: 0 9px 0 9px;
}

/* ========================================
   GEODIRECTORY СТИЛИ
   ======================================== */

.geodir-cf-file-name {
    display: none;
}

.geodir-field-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.geodir-field-logo img.w-100 {
    width: 170px !important;
    height: 170px !important;
    display: inline-block;
    padding: 2px;
}

.geodir-post-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.geodir-post-content-container > div {
    flex: 1 1 calc(50% - 20px);
    padding: 10px;
    border-radius: 10px;
}

.geodir-post-content-container.bsui * {
    margin: 0;
    padding-bottom: 1px;
    padding-left: 0;
    height: auto;
    overflow: hidden;
}

/* Мини-карта и QR-код */
div.sdel-5e904230,
.mini-map-container,
.qr-code {
    position: relative;
    float: right;
    z-index: 20;
    padding-top: 10px;
}

.mini-map {
    background-size: cover;
    border: 4px solid #fff;
}

.show-map-button {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
}

/* ========================================
   ТАБЛИЦЫ И ФОРМЫ
   ======================================== */

.main-table {
    width: 100%;
}

.main-table,
.main-table th,
.main-table td {
    border: 1px solid #000 !important;
    padding: 8px !important;
    text-align: left !important;
}

.col-type {
    width: 70%;
    text-align: left;
    border: 1px solid #ccc;
}

.col-quantity,
.col-free,
.col-price {
    width: 10%;
    border: 1px solid #ccc;
}

.additional-fields {
    display: none;
    width: 100%;
    margin-top: 10px;
}

.total-label,
.total-value {
    font-weight: bold;
}

.total-value {
    text-align: left;
}

/* ========================================
   КОММЕНТАРИИ И ФОРМЫ
   ======================================== */

.comment-form.sticky {
    position: fixed;
    bottom: 0;
    left: 25%;
    right: 25%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.comment-form.sticky.visible {
    transform: translateY(0);
}

textarea {
    max-height: 40px;
    overflow-y: auto;
    transition: max-height 0.3s ease-in-out;
}

textarea:focus,
textarea.expanded {
    max-height: 250px;
}

#login-form {
    display: block;
    margin-top: 10px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ========================================
   UI ЭЛЕМЕНТЫ
   ======================================== */

.ui-autocomplete {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    background-color: #fff;
    z-index: 1000;
}

.geodir-tabs-content .tab-pane {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.geodir-tabs-content .tab-pane.active {
    opacity: 1;
}

/* Навигация */
span#navigation {
    float: left;
    height: 15px;
    width: 670px;
}

div#navigation {
    list-style: none;
}

div#navigation li {
    float: left;
    height: 15px;
    cursor: pointer;
    padding: 0 5px;
    border-radius: 8px 0 0 8px;
    color: #fff;
    background: #C9D4ED;
    border: 1px solid #6C7079;
}

div#navigation li:hover,
div#navigation li.selected {
    color: #8FFF94;
    background: #6C7079;
}

/* Кнопка "Наверх" */
#top-link {
    cursor: pointer;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    padding: 5px 0 0 5px;
    z-index: 9999;
}

#top-link a {
    display: block;
    width: 70px;
    text-align: center;
    background: #37C5E8;
    color: white;
    padding: 5px 0;
    text-decoration: none;
    border-radius: 6px;
}

#top-link:hover a {
    background: #1FBAE9;
}

#topicon,
#backicon {
    width: 0;
    height: 0;
    display: inline-block;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    margin-right: 5px;
}

#topicon {
    border-bottom: 7px solid #fff;
}

#backicon {
    border-top: 7px solid #fff;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

/* Планшеты (до 1024px) */
@media screen and (max-width: 1024px) {
    body {
        font-size: 18px;
    }
    
    #site_page {
        max-width: 100%;
        padding: 2px;
    }
    
    #rklk img {
        transform: scale(0.9);
        transform-origin: 0% 0%;
    }
    
    #rkl {
        margin: 0 100px 0 0;
    }
    
    .geodir-post-content-container > div {
        flex: 1 1 100%;
    }
}

/* Планшеты (до 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 1.1;
    }
    
    #shapka {
        height: auto;
        min-height: 100px;
    }
    
    #rkl,
    #rklk {
        position: relative;
        float: none;
        width: 100%;
        margin: 0;
        height: auto;
    }
    
    #bloki {
        width: 100%;
        position: relative;
        float: none;
    }
    
    #boxTable {
        width: 100%;
    }
    
    .comment-form.sticky {
        left: 5%;
        right: 5%;
    }
    
    span#navigation {
        width: 100%;
    }
    
    div#navigation li {
        font-size: 14px;
        padding: 0 3px;
    }
}

/* Смартфоны (до 600px) */
@media screen and (max-width: 600px) {
    #rklk img {
        transform: scale(0.6);
        transform-origin: 0% 0%;
    }
    
    #co,
    #bo,
    #foo,
    #fbo {
        padding: 5px;
    }
    
    .geodir-field-logo img.w-100 {
        width: 120px !important;
        height: 120px !important;
    }
    
    .main-table th,
    .main-table td {
        padding: 4px !important;
        font-size: 14px;
    }
}

/* Смартфоны (до 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    #rklk img {
        transform: scale(0.4);
        transform-origin: 0% 0%;
    }
    
    .comment-form.sticky {
        left: 0;
        right: 0;
        padding: 10px;
    }
    
    #top-link a {
        width: 50px;
        font-size: 12px;
        padding: 3px 0;
    }
    
    div#navigation li {
        font-size: 12px;
        padding: 0 2px;
    }
}

/* ========================================
   СКРЫТЫЕ ЭЛЕМЕНТЫ
   ======================================== */

.ui-tabs-hide,
.UhideBlockL,
.logotipka,
.slidetoggle,
.detali,
.laykni,
.nevidimka,
.veryhidden {
    display: none !important;
}

.veryhidden {
    position: absolute !important;
    left: -5555px !important;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ======================================== */

.udtb {
    text-align: left;
    padding: 1px;
}

.udtlb {
    clear: left;
    float: left;
    width: auto;
}

.copy {
    font-size: 7pt;
}

.menut {
    padding: 2px 3px 3px 15px;
}

.mframe,
.mframe1 {
    padding: 2px 0 30px 30px;
}

.mframe1 {
    padding: 2px 10px 30px 10px;
}

#contakts {
    overflow: hidden;
    width: 340px;
    height: 18px;
    text-align: left;
}

.contakts:hover {
    width: 350px;
    height: 35px;
    z-index: 0;
    text-align: left;
    position: absolute;
    background: #78b8d4;
}

.user_info {
    width: 520px;
    float: left;
}

.user_avatars {
    width: 190px;
    float: right;
}

.uMenuH li {
    float: left;
    margin: 0;
    padding: 0 0 0 10px;
}

.zagruzka {
    background: url('/favicon.gif') no-repeat;
}

.bannerTable {
    width: 468px;
    height: 60px;
}

/* ========================================
   РЕКЛАМНЫЕ БЛОКИ
   ======================================== */

#rkl1 {
    float: right;
    max-width: 1000px;
    height: 100px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #fff;
    padding: 9px;
    border-radius: 0 9px 0 9px;
}

#rkl1::after {
    content: " ";
    display: inline-block;
    max-width: 1000px;
}

#rklm1 {
    max-width: 1000px;
    height: 100px;
    text-align: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    border-radius: 0 9px 0 9px;
}

#rklm1 img {
    max-width: 1000px;
    max-height: 100px;
    text-align: left;
    border: 0;
    border-radius: 0 9px 0 9px;
}

/* Адаптивность для рекламных блоков */
@media screen and (max-width: 768px) {
    #rkl1,
    #rklm1 {
        width: 100%;
        max-width: 100%;
        float: none;
        height: auto;
        min-height: 80px;
    }
    
    #rklm1 img {
        max-width: 100%;
        height: auto;
    }
}