:root {
    --r4t-header-height: 72px;
    --r4t-header-background: rgba(8, 10, 12, 0.94);
    --r4t-header-solid: #090b0e;
    --r4t-header-text: #ffffff;
    --r4t-header-muted: rgba(255, 255, 255, 0.62);
    --r4t-header-border: rgba(255, 255, 255, 0.1);
    --r4t-header-red: #e23a2e;
    --r4t-header-red-dark: #c42b20;
}

html,
body {
    max-width: 100%;
}

body.r4t-mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
}

.r4t-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    background: var(--r4t-header-background);
    border-bottom: 1px solid var(--r4t-header-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.r4t-header *,
.r4t-header *::before,
.r4t-header *::after {
    box-sizing: border-box;
}

.r4t-header__inner {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: var(--r4t-header-height);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.r4t-header__logo {
    display: inline-flex;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    color: var(--r4t-header-text);
    text-decoration: none;
}

.r4t-header__logo-main {
    font-family: "Archivo", sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.r4t-header__logo-main span {
    color: var(--r4t-header-red);
}

.r4t-header__logo-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--r4t-header-muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.r4t-header__desktop-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.r4t-header__desktop-link {
    position: relative;
    display: inline-flex;
    padding: 27px 0 24px;
    align-items: center;
    color: var(--r4t-header-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.r4t-header__desktop-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--r4t-header-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.r4t-header__desktop-link:hover,
.r4t-header__desktop-link.is-active {
    color: #ffffff;
}

.r4t-header__desktop-link:hover::after,
.r4t-header__desktop-link.is-active::after {
    transform: scaleX(1);
}

.r4t-header__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.r4t-header__desktop-language {
    display: flex;
    align-items: center;
}

.r4t-header__booking-button {
    display: inline-flex;
    min-height: 44px;
    padding: 11px 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--r4t-header-red),
        var(--r4t-header-red-dark)
    );
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(226, 58, 46, 0.28);
    font-family: "Archivo", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
}

.r4t-header__icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.r4t-header__menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--r4t-header-border);
    border-radius: 10px;
    cursor: pointer;
}

.r4t-header__menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
    border-radius: 999px;
}

/* OVERLAY */

.r4t-mobile-overlay {
    position: fixed !important;
    z-index: 10010 !important;
    inset: 0 !important;
    display: block;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.r4t-mobile-overlay[hidden] {
    display: none !important;
}

.r4t-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* MOBILPANEL */

.r4t-mobile-menu {
    position: fixed !important;
    z-index: 10020 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: min(420px, 92vw) !important;
    min-width: 0 !important;
    max-width: 92vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #ffffff !important;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(226, 58, 46, 0.19),
            transparent 260px
        ),
        #090b0e !important;
    border: 0 !important;
    border-left: 1px solid var(--r4t-header-border) !important;
    border-radius: 0 !important;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45) !important;
    flex-direction: column !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(105%, 0, 0) !important;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        visibility 0.35s ease;
}

.r4t-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) !important;
}

.r4t-mobile-menu__header {
    display: flex;
    width: 100%;
    min-height: 74px;
    padding: 0 22px;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    background: transparent;
    border-bottom: 1px solid var(--r4t-header-border);
}

.r4t-mobile-menu__logo {
    color: #ffffff;
    font-family: "Archivo", sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.r4t-mobile-menu__logo span {
    color: var(--r4t-header-red);
}

.r4t-mobile-menu__close {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--r4t-header-border);
    border-radius: 10px;
    cursor: pointer;
}

.r4t-mobile-menu__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.r4t-mobile-menu__body {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 24px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
}

.r4t-mobile-menu__primary {
    display: grid;
    width: 100%;
}

.r4t-mobile-menu__primary-link {
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 18px 0;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 13px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--r4t-header-border);
    font-family: "Archivo", sans-serif;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-decoration: none;
    text-transform: uppercase;
}

.r4t-mobile-menu__primary-link.is-active {
    color: #ffffff;
}

.r4t-mobile-menu__number {
    color: var(--r4t-header-red);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.r4t-mobile-menu__primary-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.r4t-mobile-menu__separator {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: var(--r4t-header-border);
}

.r4t-mobile-menu__secondary {
    display: grid;
    width: 100%;
    gap: 5px;
}

.r4t-mobile-menu__secondary-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    align-items: center;
    color: var(--r4t-header-muted);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.r4t-mobile-menu__secondary-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.r4t-mobile-menu__language {
    display: grid;
    width: 100%;
    gap: 12px;
}

.r4t-mobile-menu__label {
    color: rgba(255, 255, 255, 0.42);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.r4t-mobile-menu__language .language-switcher {
    display: flex;
    justify-content: flex-start;
}

.r4t-mobile-menu__language .language-link {
    min-width: 46px;
    height: 40px;
    font-size: 11px;
}

.r4t-mobile-menu__footer {
    display: block;
    width: 100%;
    padding: 18px 22px 22px;
    flex: 0 0 auto;
    background: #090b0e;
    border-top: 1px solid var(--r4t-header-border);
}

.r4t-mobile-menu__booking {
    display: flex;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--r4t-header-red),
        var(--r4t-header-red-dark)
    );
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(226, 58, 46, 0.3);
    font-family: "Archivo", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.r4t-mobile-menu__booking svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1150px) {
    .r4t-header__inner {
        gap: 15px;
    }

    .r4t-header__desktop-navigation {
        gap: 13px;
    }

    .r4t-header__desktop-link {
        font-size: 10px;
        letter-spacing: 0.025em;
    }
}

@media (max-width: 899px) {
    .r4t-header__inner {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .r4t-header__desktop-navigation,
    .r4t-header__desktop-language {
        display: none !important;
    }

    .r4t-header__menu-button {
        display: flex;
    }

    .r4t-header__booking-button {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .r4t-header__booking-button span {
        display: none;
    }
}

@media (min-width: 900px) {
    .r4t-mobile-overlay,
    .r4t-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .r4t-header__logo-main {
        font-size: 19px;
    }

    .r4t-header__logo-subtitle {
        font-size: 7px;
        letter-spacing: 0.17em;
    }

    .r4t-header__actions {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .r4t-header *,
    .r4t-header *::before,
    .r4t-header *::after {
        transition-duration: 0.01ms !important;
    }
}
