/* ==================== ОБЩИЕ СТИЛИ ==================== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #8b7355;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

button, .btn {
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

/* ==================== HEADER ==================== */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    padding: 5px 10px;
    border: 1px solid var(--white);
    border-radius: 4px;
    font-size: 14px;
}

.language-switcher a.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #c09b2d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 15px 40px;
    font-size: 16px;
    border: 2px solid var(--white);
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== SPECIALTIES SECTION ==================== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.specialty-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.specialty-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.specialty-info {
    padding: 25px;
}

.specialty-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.specialty-info p {
    color: #666;
    margin-bottom: 15px;
}

.specialty-price {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== MENU SECTION ==================== */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border-radius: 25px;
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
}

.menu-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.menu-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.menu-item p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== RESERVATION SECTION ==================== */
.reservation-section {
    background-color: var(--light-bg);
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #c09b2d;
}

/* ==================== TAKEAWAY SECTION ==================== */
.cart-container {
    position: fixed;
    right: 20px;
    top: 100px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 999;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--secondary-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.social-links a:hover {
    background-color: #c09b2d;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: #4caf50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        display: none;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== КАСТОМНЫЕ СТИЛИ ДЛЯ ИНТЕГРАЦИИ ==================== */

/* Дополнительные стили для кнопок */
.button-sm {
    padding: 5px 15px !important;
    font-size: 13px !important;
}

.button-xs {
    padding: 3px 10px !important;
    font-size: 12px !important;
}

.button-block {
    display: block;
    width: 100%;
}

/* Стили для модальных окон */
.modal {
    transition: opacity 0.3s ease;
}

.modal.fade {
    opacity: 0;
}

.modal.in {
    opacity: 1;
}

/* Адаптивные изображения блюд */
.figure-main-menu img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Кастомные алерты */
.alert {
    animation: fadeIn 0.5s ease;
}

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

/* Стили для формы-контролов в контексте шаблона */
.form-label-outside {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.rd-mailform .form-group {
    margin-bottom: 20px;
}

/* Улучшение отступов для секций */
.section-first-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фиксированная позиция корзины на странице takeaway */
@media (min-width: 992px) {
    .cell-md-4 .sticky-cart {
        position: sticky;
        top: 120px;
    }
}

/* Стили для улучшения читаемости на мобильных */
@media (max-width: 767px) {
    /* RD Navbar Mobile Menu Styles */
    .rd-navbar-toggle {
      display: inline-block !important;
      position: relative;
      width: 48px;
      height: 48px;
      line-height: 48px;
      cursor: pointer;
      color: #fff;
      background-color: transparent;
      border: none;
    }

    .rd-navbar-toggle span {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: block;
      margin: 0 auto;
      transition: .3s all ease;
    }

    .rd-navbar-toggle span:after, .rd-navbar-toggle span:before {
      content: "";
      position: absolute;
      left: 0;
      top: -6px;
      transition: .3s all ease;
    }

    .rd-navbar-toggle span:after {
      top: 6px;
    }

    .rd-navbar-toggle span:after, .rd-navbar-toggle span:before, .rd-navbar-toggle span {
      width: 22px;
      height: 2px;
      background-color: #fff;
      backface-visibility: hidden;
      will-change: transform;
    }

    .rd-navbar-toggle span:before, .rd-navbar-toggle span:after {
      -webkit-transition-duration: 0.22s, 0.22s;
      transition-duration: 0.22s, 0.22s;
      -webkit-transition-delay: 0.22s, 0s;
      transition-delay: 0.22s, 0s;
      -webkit-transition-property: top, -webkit-transform;
      transition-property: top, transform;
    }

    .rd-navbar-toggle.active span {
      transition: background .22s 0s ease;
      background: transparent;
    }

    .rd-navbar-toggle.active span:before, .rd-navbar-toggle.active span:after {
      top: 0;
      -webkit-transition-delay: 0s, 0.22s;
      transition-delay: 0s, 0.22s;
    }

    .rd-navbar-toggle.active span:before {
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }

    .rd-navbar-toggle.active span:after {
      -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }
    
    /* Мобильная навигация - выдвижное меню */
    .rd-navbar-nav-wrap {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #000;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .rd-navbar-nav-wrap.active {
        left: 0;
    }
    
    .rd-navbar-nav-wrap .rd-navbar-nav {
        flex-direction: column;
        padding: 20px;
    }
    
    .rd-navbar-nav-wrap .rd-navbar-nav > li {
        width: 100%;
        margin: 0 0 10px 0;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }
    
    .rd-navbar-nav-wrap .rd-navbar-nav > li > a {
        display: block;
        padding: 15px 0;
        color: #000 !important;
        font-size: 16px;
        text-decoration: none;
    }
    
    .rd-navbar-nav-wrap__element {
        padding: 20px;
        border-bottom: 1px solid #333;
        margin-bottom: 20px;
    }
    
    .rd-navbar-nav-wrap__element .button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    /* Блокировка скролла при открытом меню */
    body.rd-navbar-mobile-open {
        overflow: hidden;
    }
    
    /* Оверлей для мобильного меню */
    .rd-navbar-nav-wrap::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .rd-navbar-nav-wrap.active::before {
        opacity: 1;
    }
    
    /* Остальные мобильные стили */
    .shell-limit {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .range-50 > .cell-md-6 {
        margin-bottom: 30px;
    }
    
    .section-xl,
    .section-lg,
    .section-md,
    .section-sm {
        padding: 40px 0;
    }
    
    /* Sticky cart mobile */
    #sticky-cart {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: auto !important;
        max-width: none !important;
        z-index: 1000 !important;
    }
    
    #sticky-cart h3 {
        font-size: 16px !important;
    }
    
    #sticky-cart #cart-items {
        max-height: 200px !important;
    }
    
    /* Мобильные стили для навигации */
    .categories-nav {
        padding: 10px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .category-link {
        font-size: 12px !important;
        padding: 6px 12px !important;
        margin: 3px !important;
    }
    
    /* Мобильные стили для товаров */
    .cell-sm-6 {
        margin-bottom: 20px !important;
    }
    
    .thumbnail-classic {
        margin-bottom: 15px !important;
    }
    
    .figure-main-menu img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Мобильные стили для заголовков */
    h2 {
        font-size: 28px !important;
    }
    
    .menu-inner {
        font-size: 14px !important;
    }
    
    .button-sm {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    /* Мобильные стили для заголовков страниц */
    .bg-gray-darker h1 {
        font-size: 32px !important;
        padding: 20px 0 !important;
    }
    
    /* Мобильные стили для секций */
    .section-lg {
        padding: 0px 0 !important;
    }
    
    /* Мобильные стили для range */
    .range-60 {
        margin: 0 -10px !important;
    }
    
    .range-60 > [class*="cell-"] {
        padding: 0 10px !important;
    }
}

/* ==================== СКРЫТИЕ ГОРИЗОНТАЛЬНОГО СКРОЛЛБАРА ==================== */
/* Скрываем горизонтальный скроллбар для навигации категорий */
.categories-nav {
    overflow-x: hidden;
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

.categories-nav::-webkit-scrollbar {
    display: none;  /* Chrome, Safari и Opera */
}

/* Скрываем горизонтальный скроллбар для всего body на страницах меню и takeaway */
body.menu-page,
body.takeaway-page {
    overflow-x: hidden;
}

/* Дополнительно для контейнеров с flex-wrap */
.categories-nav .shell > div {
    overflow-x: hidden;
}

/* Дополнительные стили для предотвращения горизонтального скролла */
.categories-nav .shell {
    overflow-x: hidden;
    width: 100%;
}

.categories-nav .shell > div {
    max-width: 100%;
    overflow-x: hidden;
}

/* Скрываем скроллбар для всех браузеров */
.categories-nav,
.categories-nav * {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar,
.categories-nav *::-webkit-scrollbar {
    display: none;
}

/* Адаптивные стили для навигации категорий */
@media (max-width: 768px) {
    .categories-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .categories-nav .shell > div {
        gap: 8px;
        padding: 0 10px;
    }
    
    .category-link {
        font-size: 12px !important;
        padding: 6px 12px !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .categories-nav .shell > div {
        gap: 5px;
        padding: 0 5px;
    }
    
    .category-link {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
}

/* ==================== СТИЛИ ДЛЯ ИЗОБРАЖЕНИЙ В МЕНЮ И TAKEAWAY ==================== */
/* Унифицированные размеры изображений на десктопе */
@media (min-width: 768px) {
    /* Стили для изображений в меню - правильные селекторы */
    .thumbnail-classic img,
    .figure-main-menu img,
    .menu-category img,
    .cell-sm-6 img,
    .cell-md-4 img,
    .range-60 img,
    .menu-item img,
    .dish-image,
    .product-image,
    .menu-image,
    .food-image {
        width: 370px !important;
        height: 279px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    /* Hover эффекты для изображений */
    .thumbnail-classic img:hover,
    .figure-main-menu img:hover,
    .menu-category img:hover,
    .cell-sm-6 img:hover,
    .cell-md-4 img:hover,
    .range-60 img:hover,
    .menu-item img:hover,
    .dish-image:hover,
    .product-image:hover,
    .menu-image:hover,
    .food-image:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    /* Контейнеры для изображений */
    .menu-item,
    .dish-item,
    .product-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Обертка для изображений */
    .image-wrapper {
        width: 370px;
        height: 279px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin: 0 auto 15px auto;
    }
    
    .image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transition: all 0.3s ease;
    }
    
    .image-wrapper:hover img {
        transform: scale(1.05);
    }
    
    /* Дополнительные селекторы для различных структур меню */
    .thumb img,
    .thumbnail img,
    .card img,
    .item img,
    .product img,
    .dish img,
    .food img,
    .menu img,
    .gallery img,
    .grid img,
    .list img,
    /* Универсальные селекторы для всех изображений в меню */
    .menu-category .cell-sm-6 img,
    .menu-category .cell-md-4 img,
    .menu-category .range-60 img,
    .menu-category .thumbnail-classic img,
    .menu-category .figure-main-menu img {
        width: 370px !important;
        height: 279px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    /* Hover эффекты для всех изображений */
    .thumb img:hover,
    .thumbnail img:hover,
    .card img:hover,
    .item img:hover,
    .product img:hover,
    .dish img:hover,
    .food img:hover,
    .menu img:hover,
    .gallery img:hover,
    .grid img:hover,
    .list img:hover,
    .menu-category .cell-sm-6 img:hover,
    .menu-category .cell-md-4 img:hover,
    .menu-category .range-60 img:hover,
    .menu-category .thumbnail-classic img:hover,
    .menu-category .figure-main-menu img:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    /* Дополнительный селектор для максимальной совместимости */
    .section-lg .shell .range-60 .cell-sm-6 .thumbnail-classic .figure-main-menu img {
        width: 370px !important;
        height: 279px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Универсальное правило для всех изображений в меню - принудительное */
  
}

/* Мобильные стили для изображений */
@media (max-width: 767px) {
    .menu-item img,
    .dish-image,
    .product-image,
    .menu-image,
    .food-image {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .image-wrapper {
        width: 100%;
        height: 200px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin: 0 auto 15px auto;
    }
}

/* ==================== LIGHTBOX ДЛЯ ИЗОБРАЖЕНИЙ МЕНЮ ==================== */
/* Предотвращение сдвига контента при открытии модального окна */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Модальное окно для увеличения изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.image-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.image-modal-container {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.image-modal-content {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #d4af37;
}

.image-modal-info {
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.85);
    padding: 25px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.3s ease;
}

.image-modal-caption {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.image-modal-price {
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.image-modal-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* Селектор количества */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 5px;
}

.quantity-btn {
    background: #d4af37;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity-btn:hover {
    background: #f0c14b;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    background: transparent;
    color: #fff;
    border: none;
    width: 60px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Кнопка "В корзину" */
.add-to-cart-btn {
    flex: 1;
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #f0c14b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 18px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .image-modal-container {
        max-width: 95%;
        padding: 10px;
    }
    
    .image-modal-content {
        max-height: 50vh;
    }
    
    .image-modal-info {
        padding: 20px;
        gap: 12px;
    }
    
    .image-modal-caption {
        font-size: 20px;
    }
    
    .image-modal-price {
        font-size: 24px;
    }
    
    .image-modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Стили для изображений с курсором pointer */
.menu-category img,
.section-lg img,
.range-60 img,
.thumbnail-classic img,
.figure-main-menu img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-category img:hover,
.section-lg img:hover,
.range-60 img:hover,
.thumbnail-classic img:hover,
.figure-main-menu img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ==================== СТИЛИ ДЛЯ КАРТЫ В КОНТАКТАХ ==================== */
#map {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#map:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Стили для информационного окна карты */
.gm-style .gm-style-iw {
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    border-radius: 8px !important;
}

#map {
    height: 500px !important;
}

/* Адаптивность карты */
@media (max-width: 768px) {
    #map {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    #map {
        height: 350px !important;
    }
}

/* ==================== ИСПРАВЛЕНИЕ НАЛОЖЕНИЯ МЕНЮ 992px-1200px ==================== */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Уменьшаем размеры элементов навигации */
    .rd-navbar-nav {
        font-size: 14px;
    }
    
    .rd-navbar-nav > li {
        margin: 0 8px;
    }
    
    .rd-navbar-nav > li > a {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Уменьшаем кнопку "Забронировать" */
    .rd-navbar-nav-wrap__element .button {
        padding: 8px 16px;
        font-size: 13px;
        min-width: auto;
    }
    
    /* Уменьшаем логотип */
    .rd-navbar-brand img {
        max-width: 180px;
        height: auto;
    }
    
    /* Уменьшаем отступы в навигации */
    .rd-navbar-nav-wrap {
        padding: 0 10px;
    }
    
    /* Специально для выпадающего меню языков */
    .rd-navbar-nav > li:last-child {
        position: relative;
    }
    
    .rd-navbar-dropdown {
        min-width: 120px;
        font-size: 13px;
    }
    
    .rd-navbar-dropdown li a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Дополнительное сжатие для очень узких экранов */
    @media (min-width: 992px) and (max-width: 1100px) {
        .rd-navbar-nav > li {
            margin: 0 4px;
        }
        
        .rd-navbar-nav > li > a {
            padding: 6px 8px;
            font-size: 13px;
        }
        
        .rd-navbar-nav-wrap__element .button {
            padding: 6px 12px;
            font-size: 12px;
        }
        
        .rd-navbar-brand img {
            max-width: 160px;
        }
    }
}

/* ==================== GALLERY STYLES ==================== */
.gallery-container {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f8f8f8;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay::before {
    content: '🔍';
    font-size: 24px;
    color: white;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }
}

/* Десктоп */
@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
        padding: 30px;
    }
}


