/* Extracted verbatim from NewTour.Master inline <style> blocks.
   Keeps the tourist site look: #cssmenu light-blue bar, page width, mobile rules.
   Regenerate with scratchpad/extract_master_css.py if the master changes. */

/* ==== NewTour.Master inline style block 1 ==== */
/* =========================================================
           1. DESKTOP STYLES (PC)
           ========================================================= */
        body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        #cssmenu {
            background: #33aaff !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }

            #cssmenu > ul {
                display: inline-block !important;
                background: #33aaff !important;
            }
                /* Level 1 Menu Items */
                #cssmenu > ul > li > a {
                    color: #ffffff !important;
                    background-color: transparent !important;
                    margin: 0 !important;
                    border-right: 1px solid rgba(255,255,255,0.1);
                }
                /* Hover State */
                #cssmenu > ul > li:hover > a {
                    background: #0088cc !important;
                    color: #ffffff !important;
                }
            /* --- DROPDOWN MENU (PC) --- */
            #cssmenu ul ul {
                background: #004890 !important;
            }

                #cssmenu ul ul li {
                    border-bottom: 1px solid #2d99e6;
                }

                    #cssmenu ul ul li a {
                        color: #ffffff !important;
                        background: #004890 !important;
                        margin: 0 !important;
                        border: none !important;
                    }

                        #cssmenu ul ul li a:hover {
                            background: #33aaff !important;
                        }

        /* =========================================================
           CONTACT BAR STYLES (Global / Desktop)
           ========================================================= */
        .contact-bar {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 20px;
            width: 100%;
        }

        .contact-bar-item {
            margin: 0;
            display: flex;
            align-items: center;
        }
            /* LINK STYLES */
            .contact-bar-item a {
                display: inline-flex;
                align-items: center;
                text-decoration: none;
                color: #ffffff;
                font-weight: normal;
                font-size: 18px;
                line-height: 1;
            }

            .contact-bar-item img {
                margin-right: 8px;
                height: 24px;
                width: auto;
                display: block;
            }

        /* =========================================================
           УНИВЕРСАЛЬНЫЙ БАННЕР (Десктоп - строго внутри контейнера)
           ========================================================= */
        .mobile-hero-img {
            width: 100% !important;
            max-width: 100% !important;
            height: auto;
            display: block;
            border-radius: 0 !important;
            margin: 0 auto !important;
            position: static !important;
            transform: none !important;
        }

        /* =========================================================
           2. MOBILE STYLES (< 768px)
           ========================================================= */
        @media only screen and (max-width: 768px) {

            /* На мобильных вырываем картинку на 100vw экрана */
            .mobile-hero-img {
                width: 100vw !important;
                max-width: 100vw !important;
                height: 260px !important;
                object-fit: cover !important;
                object-position: center center !important;
                border-radius: 0 !important;
                margin: 0 0 20px 0 !important;
                position: relative !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
            }

            .maintab-container > table,
            .maintab-container > table > tbody,
            .maintab-container > table > tbody > tr,
            .maintab-container > table > tbody > tr > td {
                display: block !important;
                width: 100% !important;
                box-sizing: border-box;
            }

            .header-container h1 {
                font-size: 20px !important;
                margin: 0 !important;
                text-align: center !important;
            }

            .header-subtitle {
                font-size: 11px !important;
                text-align: center !important;
            }

            .header-logo-img {
                height: 80px !important;
                margin-right: 10px !important;
            }
            /* MOBILE CONTACT BAR */
            .contact-bar {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 12px !important;
                padding: 5px 0 !important;
                width: 100% !important;
            }

            .contact-bar-item {
                margin: 0 !important;
                display: block !important;
            }

                .contact-bar-item a {
                    color: #ffffff !important;
                    font-size: 16px;
                }
            /* --- MOBILE MENU --- */
            #cssmenu {
                background: #33aaff !important;
                width: 100% !important;
                height: auto !important;
                padding: 5px 0 !important;
            }

                #cssmenu ul {
                    display: flex !important;
                    flex-direction: row !important;
                    flex-wrap: wrap !important;
                    justify-content: center !important;
                    background: #33aaff !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    width: 100% !important;
                    position: static !important;
                }

                #cssmenu > ul > li {
                    display: inline-block !important;
                    float: none !important;
                    width: auto !important;
                    margin: 0 !important;
                    padding: 0 !important;
                }

                    #cssmenu > ul > li > a {
                        background-color: transparent !important;
                        color: #ffffff !important;
                        padding: 12px 15px !important;
                        font-size: 14px !important;
                        text-align: center !important;
                        width: auto !important;
                        text-transform: uppercase;
                        font-weight: bold !important;
                        display: block !important;
                        margin: 0 !important;
                        border: none !important;
                    }

                        #cssmenu > ul > li > a:hover {
                            background-color: #0088cc !important;
                        }
                /* --- MOBILE DROPDOWN --- */
                #cssmenu ul ul {
                    display: none !important;
                    opacity: 1 !important;
                    visibility: visible !important;
                    position: absolute !important;
                    left: 0 !important;
                    top: 100% !important;
                    z-index: 1000 !important;
                    width: 200px !important;
                    min-width: 200px !important;
                    background-color: #004890 !important;
                    box-shadow: 0px 4px 8px rgba(0,0,0,0.3) !important;
                    margin: 0 !important;
                    padding: 0 !important;
                }

                    #cssmenu ul ul li {
                        width: 100% !important;
                        display: block !important;
                        float: none !important;
                        border-bottom: 1px solid #2d99e6 !important;
                        background-color: #004890 !important;
                    }

                        #cssmenu ul ul li a {
                            background-color: transparent !important;
                            color: #fff !important;
                            padding: 12px 20px !important;
                            text-align: left !important;
                            width: 100% !important;
                            font-weight: normal !important;
                            text-transform: none !important;
                            margin: 0 !important;
                        }

                            #cssmenu ul ul li a:hover {
                                background-color: #33aaff !important;
                            }

                #cssmenu ul li:hover > ul {
                    display: block !important;
                }

            .main-content-area {
                padding: 0 !important;
            }

            img {
                max-width: 100%;
                height: auto;
            }
        }

/* ==== NewTour.Master inline style block 2 ==== */
/* Desktop only: inline nav at bottom of page */
        #tourSwipeNav {
            display: none;
        }
        #tourSwipeNav.hidden { display: none !important; }
        @media (min-width: 769px) {
            #tourSwipeNav {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 16px;
                padding: 16px 0 30px;
            }
            .tsn-btn {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                background: #003399;
                color: white;
                border: none;
                border-radius: 8px;
                padding: 10px 20px;
                font-size: 14px;
                font-weight: bold;
                cursor: pointer;
                text-decoration: none;
                transition: background 0.2s;
            }
            .tsn-btn:hover { background: #002266; }
            .tsn-btn.disabled { opacity: 0.3; pointer-events: none; }
            .tsn-center { font-size: 13px; color: #555; text-align: center; min-width: 120px; }
            .tsn-count { font-size: 11px; color: #999; display: block; }
        }
