/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  width: 100%;
  position: relative;
  overscroll-behavior: none;
  -webkit-overscroll-behavior: none;
}

/* HEADER */
.header-up {
    width: 100%;
    height: 57px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #a56b00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 87px 0 40px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header_alarm {
    width: 24px;
    height: 24px;
}

.header_booking,
.header_contact,
.header_language {
    font: 400 16px/21px 'Inter', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
}

.header_booking {
    margin-top: 1px;
}

.header_contact {
    margin-right: 21px;
}

.header_call {
    margin-right: 6.6px;
}

.header_language_logo {
    width: 16px;
    height: 11px;
    margin-left: 8px;
}

/* MAIN CONTENT */
.main-content {
    margin-top: 57px;
    width: 100%;
    min-height: calc(100vh - 57px);
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
}

/* HERO SECTION */
.hero {
    width: 100%;
    height: 189px;
    background-color: #370617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px 23px 20px;
    box-sizing: border-box;
}

.hero-logo {
    width: 200px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.btn-text {
    background: transparent;
    border: none;
    color: white;
    font: 400 16px/1.5 'Inter', sans-serif;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-text:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

.btn-text:active {
    transform: translateY(0);
}

/* MIDDLE SECTION */
.middle {
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
}

.AboutUsMiddle {
    color: rgba(255, 207, 132, 1);
    font-family: 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 77px;
    text-align: center;
    margin: 0 0 50px 0;
}

.AboutUs2 {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.welcome-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    color: rgba(255, 207, 132, 1);
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.section-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.features-list {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 15px 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
}

.conclusion-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin: 40px 0 0 0;
    text-align: center;
    font-style: italic;
}

.btn-user {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
    text-align: center;
    background: transparent;
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    text-decoration: none;
}

.btn-user:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

.btn-user:active {
    transform: translateY(0);
}

/* FOOTER SECTIONS */
.book {
    width: 100%;
    height: 50px;
    background-color: #211708;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.book-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book .alarm,
.book .call-contact {
    width: 24px;
    height: 24px;
}

.alarm-booking,
.call-contactus {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 44px;
}

.reserved {
    width: 100%;
    height: 20px;
    background-color: #370617;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.reserved-text {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.bottom-btn {
    width: 100%;
    height: 60px;
    background-color: #211708;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 200px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.RoyalEscort-bottom {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    margin-left: auto;
}

/* MOBILE MENU */
.mobile-menu-btn { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.25); 
    border-radius: 8px; 
    padding: 6px; 
    margin-left: 10px; 
    cursor: pointer; 
    display: none; 
    flex-direction: column; 
    gap: 3px; 
}

.mobile-menu-btn__bar { 
    width: 18px; 
    height: 2px; 
    background: #fff; 
    display: block; 
}

.mobile-menu { 
    position: fixed; 
    top: 57px; 
    left: 0; 
    right: 0; 
    background: rgba(0,0,0,0.98); 
    border-bottom: 1px solid rgba(255,255,255,0.14); 
    z-index: 1500; 
    display: none; 
    grid-template-columns: 1fr; 
    gap: 6px; 
    padding: 12px 14px; 
    box-sizing: border-box; 
}

.mobile-menu .btn-text { 
    display: block; 
    width: 100%; 
    text-align: left; 
    padding: 10px 12px; 
    border: 1px solid rgba(255,255,255,0.14); 
    border-radius: 8px; 
    background: rgba(255,255,255,0.04); 
    text-decoration: none;
}

.mobile-menu .btn-text:hover { 
    background: rgba(255,255,255,0.08); 
}

/* RESPONSIVE DESIGN */

/* 1440px */
@media (max-width: 1440px) {
    .header-up { padding: 0 60px 0 35px; }
    .hero { height: 170px; gap: 18px; padding: 35px 40px 20px 40px; }
    .hero-logo { width: 180px; height: 45px; }
    .btn-text { font-size: 15px; padding: 8px 15px; }
    .AboutUsMiddle { font-size: 56px; margin-bottom: 45px; }
    .AboutUs2 { max-width: 900px; }
    .welcome-text { font-size: 19px; margin-bottom: 35px; }
    .section { margin-bottom: 32px; }
    .section-title { font-size: 22px; }
    .section-text, .features-list, .conclusion-text { font-size: 17px; }
    .btn-user { font-size: 32px; padding: 16px 36px; margin-top: 40px; }
    .bottom-btn { padding: 0 150px; }
    .mobile-menu-btn { display: none !important; }
}

/* 1024px */
@media (max-width: 1024px) {
    .header-up { padding: 0 40px 0 25px; }
    .hero { height: 160px; gap: 16px; padding: 30px 30px 18px 30px; }
    .hero-logo { width: 170px; height: 42px; }
    .hero-nav { gap: 30px; }
    .btn-text { font-size: 14px; padding: 7px 14px; }
    .AboutUsMiddle { font-size: 48px; margin-bottom: 40px; }
    .AboutUs2 { max-width: 800px; }
    .welcome-text { font-size: 18px; margin-bottom: 32px; }
    .section { margin-bottom: 30px; }
    .section-title { font-size: 21px; }
    .section-text, .features-list, .conclusion-text { font-size: 16px; }
    .btn-user { font-size: 28px; padding: 14px 32px; margin-top: 35px; }
    .book { gap: 25px; }
    .bottom-btn { padding: 0 100px; gap: 18px; }
    .RoyalEscort-bottom { font-size: 15px; }
    .mobile-menu-btn { display: none !important; }
}

/* 768px */
@media (max-width: 768px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    body {
        display: block !important;
        flex-direction: unset !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        -webkit-touch-callout: default !important;
    }
    
    .main-content,
    .middle,
    .AboutUs2,
    section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .main-content {
        min-height: auto !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .header-up { 
        padding: 0 20px; 
        height: 57px; /* ИСПРАВЛЕНО: единая высота */
    }
    
    .header_booking, .header_contact, .header_language { 
        font-size: 15px; 
    }
    
    .header_contact { 
        margin-right: 18px; 
    }
    
    .header_alarm, .header_call { 
        width: 22px; 
        height: 22px; 
    }
    
    .hero { 
        height: 140px; 
        gap: 0; 
        padding: 30px 20px 20px 20px; 
        justify-content: center; 
    }
    
    .hero-nav { 
        display: none; 
    }
    
    .hero-logo { 
        width: 160px; 
        height: 40px; 
        margin-bottom: 0; 
    }
    
    .btn-text { 
        font-size: 15px; 
        padding: 7px 14px; 
    }
    
    .middle { 
        padding: 28px 16px; 
    }
    
    .AboutUsMiddle { 
        font-size: 36px; 
        margin-bottom: 35px; 
    }
    
    .AboutUs2 { 
        max-width: 100%; 
        padding: 0 10px; 
    }
    
    .welcome-text { 
        font-size: 17px; 
        margin-bottom: 30px; 
    }
    
    .section { 
        margin-bottom: 28px; 
    }
    
    .section-title { 
        font-size: 21px; 
        margin-bottom: 12px; 
    }
    
    .section-text, .features-list, .conclusion-text { 
        font-size: 16px; 
        line-height: 1.5; 
    }
    
    .features-list { 
        padding-left: 18px; 
    }
    
    .btn-user { 
        font-size: 24px; 
        padding: 14px 32px; 
        margin-top: 35px; 
    }
    
    .book { 
        height: 48px; 
        gap: 18px; 
        padding: 0 20px; 
    }
    
    .alarm-booking, .call-contactus { 
        font-size: 15px; 
    }
    
    .reserved { 
        height: 19px; 
        padding: 0 20px; 
    }
    
    .reserved-text { 
        font-size: 14px; 
    }
    
    .bottom-btn { 
        display: none !important; 
    }
    
    .mobile-menu-btn { 
        display: none !important; 
    }
    
    .mobile-menu { 
        display: none !important; 
    }
}

/* 425px */
@media (max-width: 425px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    body {
        display: block !important;
        flex-direction: unset !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        -webkit-touch-callout: default !important;
    }
    
    .main-content,
    .middle,
    .AboutUs2,
    section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .main-content {
        min-height: auto !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .header-up { 
        padding: 0 16px; 
        height: 57px; /* ИСПРАВЛЕНО: единая высота */
    }
    
    .header_booking, .header_contact, .header_language { 
        font-size: 14px; 
    }
    
    .header_contact { 
        margin-right: 15px; 
    }
    
    .header_alarm, .header_call { 
        width: 20px; 
        height: 20px; 
    }
    
    .hero { 
        height: auto;
        padding: 20px 20px 15px 20px;
        justify-content: center;
    }
    
    .hero-nav { 
        display: none !important;
    }
    
    .hero-logo {
        display: block !important;
        width: 160px;
        height: 40px;
    }
    
    .mobile-menu-btn { 
        display: flex !important; 
        margin-left: 12px; 
    }
    
    .middle { 
        padding: 20px 12px; 
    }
    
    .AboutUsMiddle { 
        font-size: 28px; 
        margin-bottom: 24px; 
        text-align: center; 
    }
    
    .AboutUs2 { 
        padding: 0 8px; 
    }
    
    .welcome-text { 
        font-size: 15px; 
        margin-bottom: 24px; 
        text-align: center; 
    }
    
    .section { 
        margin-bottom: 20px; 
    }
    
    .section-title { 
        font-size: 18px; 
        margin-bottom: 10px; 
    }
    
    .section-text, .features-list, .conclusion-text { 
        font-size: 14px; 
        line-height: 1.5; 
    }
    
    .features-list { 
        padding-left: 16px; 
    }
    
    .btn-user { 
        font-size: 20px; 
        padding: 12px 24px; 
        margin-top: 30px; 
    }
    
    .book { 
        height: 45px; 
        gap: 15px; 
        padding: 0 16px; 
    }
    
    .alarm-booking, .call-contactus { 
        font-size: 14px; 
    }
    
    .reserved { 
        height: 18px; 
        padding: 0 16px; 
    }
    
    .reserved-text { 
        font-size: 12px; 
        text-align: center; 
    }
    
    /* Мобильное меню */
    body.menu-open .mobile-menu { 
        display: grid !important; 
    }
}

/* 375px */
@media (max-width: 375px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    body {
        display: block !important;
        flex-direction: unset !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        -webkit-touch-callout: default !important;
    }
    
    .main-content,
    .middle,
    .AboutUs2,
    section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .main-content {
        min-height: auto !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .header-up { 
        padding: 0 12px; 
        height: 57px; /* ИСПРАВЛЕНО: единая высота */
    }
    
    .header_booking, .header_contact, .header_language { 
        font-size: 13px; 
    }
    
    .header_contact { 
        margin-right: 12px; 
    }
    
    .header_alarm, .header_call { 
        width: 18px; 
        height: 18px; 
    }
    
    .hero {
        padding: 15px 15px 12px 15px;
    }
    
    .hero-logo {
        width: 140px;
        height: 35px;
    }
    
    .mobile-menu-btn { 
        margin-left: 10px; 
        padding: 4px; 
    }
    
    .mobile-menu-btn__bar { 
        width: 16px; 
    }
    
    .middle { 
        padding: 16px 10px; 
    }
    
    .AboutUsMiddle { 
        font-size: 24px; 
        margin-bottom: 20px; 
    }
    
    .welcome-text { 
        font-size: 14px; 
        margin-bottom: 20px; 
    }
    
    .section-title { 
        font-size: 17px; 
    }
    
    .section-text, .features-list, .conclusion-text { 
        font-size: 13px; 
    }
    
    .btn-user { 
        font-size: 18px; 
        padding: 10px 20px; 
        margin-top: 25px; 
    }
    
    .book { 
        gap: 12px; 
        padding: 0 12px; 
    }
    
    .alarm-booking, .call-contactus { 
        font-size: 13px; 
    }
    
    .reserved-text { 
        font-size: 11px; 
    }
    
    .mobile-menu { 
        top: 57px; /* ИСПРАВЛЕНО: единая высота */
        padding: 12px; 
    }
    
    .mobile-menu .btn-text { 
        font-size: 14px; 
        padding: 10px 14px; 
    }
    
    /* Мобильное меню */
    body.menu-open .mobile-menu { 
        display: grid !important; 
    }
}

/* КРИТИЧЕСКИЙ ФИКС ДЛЯ МОБИЛЬНЫХ - переопределяем все возможные блокировки */
@media (max-width: 768px) {
    html, body {
        -webkit-overflow-scrolling: touch !important;
    }
    
    body {
        display: block !important;
        flex-direction: unset !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
    }
    
    .main-content,
    .middle,
    .AboutUs2,
    section,
    div {
        overflow: visible !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Убеждаемся, что контент может быть выше экрана */
    main,
    .main-content {
        min-height: auto !important;
        height: auto !important;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
}