/* ==========================================================================
   Movie Room — shared site styles.
   Section 1: styles moved from the inline <style> of edits/public/index.html
   Section 2: inner pages (legacy Adobe Muse markup) — fixes and missing styles
   ========================================================================== */

/* ---------- 1. Base, header, slider (from edits/public/index.html) ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    background: #000;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   ОСНОВНАЯ ОБЛАСТЬ
========================================================= */

.page {
    width: 100%;
    min-height: 100vh;
    background: #000;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   ШАПКА
========================================================= */

.header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Логотип сделан текстом, чтобы страница не зависела
   от отдельного файла u6057-6.png */
.logo {
    flex: 0 0 auto;
    width: 180px;
    color: #fff;
    text-align: center;
    line-height: 1;
    user-select: none;
}

.logo-main {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-sub {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #aaa;
}

/* =========================================================
   НАВИГАЦИЯ
========================================================= */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 38px);
    flex: 1;
}

.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 42px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 1px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav a:hover {
    color: #ddd;
}

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

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

.socials {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* =========================================================
   МОБИЛЬНАЯ КНОПКА
========================================================= */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 8px;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

.menu-toggle.active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* =========================================================
   ГЛАВНЫЙ СЛАЙДЕР
========================================================= */

.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 0 50px;
    background: #000;
}

.slider {
    position: relative;
    width: min(100%, 1100px);
    height: clamp(360px, 52vw, 590px);
    margin: 0 auto;
    overflow: hidden;
    background: #090909;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease,
        transform 4s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Небольшое затемнение изображения */
.slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.05) 60%,
            rgba(0, 0, 0, 0.25)
        );
}

/* =========================================================
   СТРЕЛКИ
========================================================= */

.slider-button {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.slider-button:hover {
    background: rgba(0,0,0,0.7);
    border-color: #fff;
}

.slider-button.prev {
    left: 22px;
}

.slider-button.next {
    right: 22px;
}

.slider-button::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.slider-button.prev::before {
    left: 21px;
    transform: translateY(-50%) rotate(-135deg);
}

.slider-button.next::before {
    right: 21px;
    transform: translateY(-50%) rotate(45deg);
}

/* =========================================================
   ТОЧКИ СЛАЙДЕРА
========================================================= */

.slider-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* =========================================================
   ПОДПИСЬ
========================================================= */

.hero-bottom {
    padding-top: 18px;
    text-align: center;
    color: #999;
    font-size: 13px;
    letter-spacing: 1px;
}

/* =========================================================
   АДАПТИВ
========================================================= */

@media (max-width: 1000px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .header-inner {
        gap: 20px;
    }

    .logo {
        width: 160px;
    }

    .logo-main {
        font-size: 22px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 14px;
    }

    .socials {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 28px);
    }

    .header-inner {
        min-height: 78px;
        justify-content: space-between;
    }

    .logo {
        width: auto;
        text-align: left;
    }

    .logo-main {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .menu-toggle {
        display: block;
        z-index: 120;
    }

    .nav {
        position: absolute;
        z-index: 110;
        top: 78px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: 0;
        overflow: hidden;

        background: rgba(0,0,0,0.98);
        border-bottom: 1px solid rgba(255,255,255,0.1);

        transition: max-height 0.35s ease;
    }

    .nav.open {
        max-height: 400px;
    }

    .nav a {
        height: auto;
        padding: 16px 24px;
        border-top: 1px solid rgba(255,255,255,0.07);
        justify-content: center;
        font-size: 15px;
    }

    .nav a::after {
        display: none;
    }

    .hero {
        padding-top: 14px;
        padding-bottom: 25px;
    }

    .slider {
        height: clamp(280px, 68vw, 450px);
    }

    .slider-button {
        width: 42px;
        height: 42px;
    }

    .slider-button.prev {
        left: 10px;
    }

    .slider-button.next {
        right: 10px;
    }

    .slider-button.prev::before {
        left: 17px;
    }

    .slider-button.next::before {
        right: 17px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 20px);
    }

    .hero {
        padding-top: 10px;
    }

    .slider {
        width: 100%;
        height: 62vw;
        min-height: 245px;
        max-height: 330px;
    }

    .slider-button {
        width: 38px;
        height: 38px;
    }

    .slider-button.prev::before {
        left: 15px;
    }

    .slider-button.next::before {
        right: 15px;
    }

    .slider-dots {
        bottom: 12px;
        gap: 6px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }
}

/* ---------- 2. Inner pages (legacy Adobe Muse markup) ----------
   The per-page Muse stylesheets (rooms.css, menu.css, ...) are not part of the
   static copy, so the absolute Muse layout is flattened into a simple dark text
   layout that matches the home page. The new header is injected into every page;
   the old Muse navigation is marked with .legacy-nav. */

html.html { background: #000 !important; min-width: 0 !important; }
html.html body { background: #000 !important; color: #fff; min-width: 0 !important; }

body > #page {
    position: relative !important;
    width: min(1180px, calc(100% - 40px)) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 40px 0 72px !important;
    background: none !important;
    border: 0 !important;
    color: #e6e6e6;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* flatten Muse absolute positioning */
#page *, #page *::before, #page *::after {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
#page .clearfix::after, #page .verticalspacer { display: none !important; }
#page .colelem, #page .grpelem { display: block; }

/* old navigation, logo and social icons (replaced by the shared header) */
.legacy-nav,
#page [id^="accordionu"],
#page img[alt^="MOVIE ROOM"],
#page img[src*="/u16561-6"], #page img[src*="/u6057-"], #page img[src*="/u16078-6"], #page img[src*="/u16173-6"],
#page .clip_frame:has(img[src*="instagram"]), #page .clip_frame:has(img[src*="facebook"]),
#page .clip_frame:has(img[src*="whatsapp"]), #page .clip_frame:has(img[src*="pngaaacom"]),
#page .clip_frame:has(img[src*="phone-receiver"]), #page .clip_frame:has(img[src*="telephone-symbol"]),
#page a:has(> img[src*="instagram"]), #page a:has(> img[src*="facebook"]), #page a:has(> img[src*="whatsapp"]) {
    display: none !important;
}

/* Muse widgets that need their own JS/CSS (slideshows, lightboxes, popups) */
#page .SlideShowWidget, #page .popup_anchor, #page .PamphletWidget .ThumbGroup, #page .museBGSize:empty { display: none !important; }

/* text */
#page p, #page li { margin: 0 0 6px; color: #e6e6e6; font-size: 16px; line-height: 1.6; }
#page p:empty { display: none; }
#page h1, #page h2, #page h3, #page h4 { margin: 28px 0 12px; color: #fff; font-weight: 700; line-height: 1.3; }
#page h1 { font-size: clamp(26px, 3vw, 36px); }
#page h2 { font-size: clamp(21px, 2.2vw, 26px); }
#page h3, #page h4 { font-size: 18px; }
#page a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#page a:hover { color: #ddd; }
#page ul, #page ol { padding-left: 22px; margin: 0 0 14px; }
#page img { display: block; height: auto !important; margin: 14px 0; }
#page table { width: 100% !important; border-collapse: collapse; margin: 0 0 20px; }
#page td, #page th { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.2) !important; }
#page iframe { display: block; width: 100% !important; height: 420px !important; border: 0; margin: 16px 0; }
#page input, #page textarea, #page select {
    width: 100% !important; max-width: 520px !important; margin: 0 0 12px; padding: 11px 14px;
    background: #0d0d0d !important; border: 1px solid rgba(255, 255, 255, 0.25) !important; color: #fff; font: inherit;
}
#page textarea { min-height: 120px !important; }
#page button, #page input[type="submit"] {
    width: auto !important; padding: 12px 26px; border: 1px solid #fff !important; background: transparent !important;
    color: #fff; font: inherit; cursor: pointer;
}
#page button:hover, #page input[type="submit"]:hover { background: #fff !important; color: #000; }

/* Muse rows: sibling .grpelem blocks sat side by side (e.g. names | prices) */
#page .clearfix:has(> .grpelem ~ .grpelem) { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 6px 40px; }
#page .clearfix:has(> .grpelem ~ .grpelem) > .grpelem { flex: 0 0 auto; max-width: 100% !important; }
/* price lists: names and prices are parallel columns aligned line by line (blank <p> = spacer),
   so every line in such a row gets the same fixed height */
#page .clearfix:has(> .grpelem ~ .grpelem) :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0 !important; font-size: 15px !important; line-height: 28px !important; height: auto !important; min-height: 28px !important;
    white-space: pre-wrap !important; font-weight: 400;
}
#page .clearfix:has(> .grpelem ~ .grpelem) :is(h1, h2, h3, h4, h5, h6) { font-weight: 700; }
#page .clearfix:has(> .grpelem ~ .grpelem) :is(h1, h2, h3, h4, h5, h6):has(> span) { min-height: 56px !important; line-height: 56px !important; font-size: 18px !important; }
#page .clearfix:has(> .grpelem ~ .grpelem) p:empty { display: block !important; }
#page p { font-weight: 400; }
#page .legacy-empty.legacy-empty.legacy-empty, #page .legacy-nav.legacy-nav.legacy-nav { display: none !important; }

/* menu.html: snack prices (#u16974) belong to the snack list (#u16268), tea follows below */
#page #pu16974 > #u16264 { display: contents !important; }
#page #u16265-22 { order: 1; }
#page #u16273-20 { order: 2; }
#page #u16268-29 { order: 3; }
#page #u16974 { order: 4; margin-top: 56px; }
#page #u16308 { order: 5; flex-basis: 100% !important; width: 100% !important; height: 32px !important; }
#page #u16971 { display: none !important; }
#page #u16977-29 { order: 6; }
#page #u16980-22 { order: 7; }
#page #u16977-17 { height: 56px !important; }

/* цены.html: rent tariffs were separate absolutely-positioned cells — rebuilt as two 3-column tables
   (cell order taken from phone/цены.html, where the same tables are intact). Rows break by pushing
   the 3rd cell's right margin to the end of the line; the price lists below stay side by side. */
#page #pu15295-66 { gap: 4px 0 !important; }
#page #pu15295-66 > * { order: 50; margin-right: 40px !important; }
#page #pu15295-66 > :is(#u15187-4, #u14886-4) { order: 0; flex-basis: 100% !important; }
#page #u15124-10 { order: 1; flex-basis: 100% !important; }
#page #u6189-4 { order: 2; flex-basis: 100% !important; margin-top: 12px; color: #aaa; }
#page #u15127-4 { order: 12; flex-basis: 100% !important; margin-top: 18px; color: #aaa; }
#page #pu15295-66 > :is(#u5613-7, #u5655-4, #u5658-6, #u5661-6, #u5664-4) { order: 30; flex-basis: 100% !important; margin-top: 10px; }
#page #pu15295-66 > #u5582-4 { order: 3; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5586-4 { order: 4; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5592-4 { order: 5; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > #u5595-4 { order: 6; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5601-4 { order: 7; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5604-4 { order: 8; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > #u5598-4 { order: 9; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5607-4 { order: 10; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u5610-4 { order: 11; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > #u15132-4 { order: 13; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15160-4 { order: 14; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15164-4 { order: 15; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > #u15136-4 { order: 16; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15156-4 { order: 17; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15152-4 { order: 18; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > #u15140-4 { order: 19; flex: 0 0 160px !important; width: 160px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15144-4 { order: 20; flex: 0 0 120px !important; width: 120px !important; margin-right: 0 !important; }
#page #pu15295-66 > #u15148-4 { order: 21; flex: 0 0 120px !important; width: 120px !important; margin-right: max(0px, calc(100% - 400px)) !important; }
#page #pu15295-66 > :is(#u5582-4, #u5586-4, #u5592-4, #u15132-4, #u15160-4, #u15164-4) { color: #aaa; }
#page #u15295-66-bw { max-height: 224px !important; overflow: hidden; } /* repeated ghost copies below the first price group */
@media (max-width: 760px) { #page #pu15295-66 > [id] { margin-right: 20px !important; } #page #pu15295-66 > :is(#u5592-4, #u5610-4, #u5604-4, #u15164-4, #u15152-4, #u15148-4) { margin-right: max(0px, calc(100% - 400px)) !important; } }

/* Muse site_global.css colours links blue/underlined: keep the shared header as on the home page */
.header a:link, .header a:visited, .header a:hover, .header a:active { color: #fff; text-decoration: none; }
.header .nav a:hover { color: #ddd; }
.header .logo-sub { color: #aaa; }
.header .social-link:hover { color: #000; }
#page a:link, #page a:visited { color: #fff; }

/* Muse contact form (feedback / обратная-связь) */
#page form.form-grp { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 14px !important; max-width: 520px !important; margin: 0 0 24px; }
#page form.form-grp > :not(.fld-grp):not(.submit-btn) { display: none !important; } /* "sending / error / success" messages */
#page form.form-grp .fld-grp { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 6px !important; }
#page form.form-grp .fld-grp:has(input[type="text"]) { order: 1; }
#page form.form-grp .fld-grp:has(input[type="tel"]) { order: 2; }
#page form.form-grp .fld-grp:has(input[type="email"]) { order: 3; }
#page form.form-grp .fld-grp:has(textarea) { order: 4; }
#page form.form-grp .submit-btn { order: 5; align-self: flex-start; }
#page form.form-grp .fld-prompt, #page form.form-grp .fld-label { order: -1; color: #aaa; font-size: 14px; }
#page form.form-grp .fld-grp, #page form.form-grp .fld-input, #page form.form-grp .fld-textarea { width: 100% !important; }
#page form.form-grp .fld-input, #page form.form-grp .fld-textarea { display: flex !important; flex-direction: column-reverse !important; gap: 6px !important; }
#page form.form-grp .fld-prompt:empty, #page form.form-grp .fld-label:empty { display: none !important; }
#page form.form-grp input, #page form.form-grp textarea { max-width: 100% !important; margin: 0; }

/* active item in the shared header */
.nav a[aria-current="page"]::after { width: 100%; }

@media (max-width: 760px) {
    .header .nav { background: #000; }
    body > #page { width: calc(100% - 28px) !important; padding: 28px 0 56px !important; }
    #page p, #page li { font-size: 15px; }
    #page iframe { height: 300px !important; }
    #page .clearfix:has(> .grpelem ~ .grpelem) { gap: 6px 20px; }
    #page .clearfix:has(> .grpelem ~ .grpelem) :is(p, h1, h2, h3, h4, h5, h6) { white-space: pre-wrap !important; height: auto !important; min-height: 28px !important; line-height: 24px !important; padding: 2px 0; }
    #page .clearfix:has(> .grpelem ~ .grpelem) :is(h1, h2, h3, h4, h5, h6):has(> span) { min-height: 56px !important; height: auto !important; line-height: 28px !important; }
    #page p, #page h1, #page h2, #page h3, #page h4 { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
    body > #page { width: calc(100% - 20px) !important; }
}
