/* HP Cairo header
   File: assets/css/header.css
   Version: header-only patch 0.1.12
*/

.hpc-landing {
    --hpc-header-height: 94px;
}

.hpc-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    width: 100%;
    background: #000;
    border-bottom: 1px solid rgba(225, 184, 111, 0.18);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hpc-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 4% 50%, rgba(255, 231, 177, 0.105), transparent 24%),
        radial-gradient(circle at 96% 45%, rgba(255, 231, 177, 0.075), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.062), transparent 46%, rgba(225, 184, 111, 0.022));
}

.hpc-header::after {
    content: "";
    position: absolute;
    left: 36px;
    right: 36px;
    top: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 239, 196, 0.52), transparent);
}

.hpc-header.is-scrolled {
    background: rgba(0, 0, 0, 0.97);
    border-bottom-color: rgba(225, 184, 111, 0.28);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.56);
}

.hpc-header * {
    box-sizing: border-box;
}

.hpc-header__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: 94px;
    margin: 0;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hpc-header__nav,
.hpc-header__socials,
.hpc-header__address,
.hpc-header__phone,
.hpc-burger {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.012)),
        rgba(255, 255, 255, 0.008);
    border: 1px solid rgba(225, 184, 111, 0.13);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 -1px 0 rgba(225, 184, 111, 0.035);
}

/* Логотип без рамки, без карточки, без лишней пустоты справа */
.hpc-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 116px;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    height: 94px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hpc-header__logo-img,
.hpc-header__logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 110px !important;
    max-height: 78px !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter:
        drop-shadow(0 8px 17px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 12px rgba(232, 188, 113, 0.08));
}

.hpc-header__logo {
    order: 1;
}

.hpc-header__mobile-brand {
    display: none;
}

.hpc-header__nav {
    order: 2;
}

.hpc-header__address {
    order: 3;
}

.hpc-header__socials {
    order: 4;
}

.hpc-header__phone {
    order: 5;
}

.hpc-header__booking {
    order: 6;
}

.hpc-burger {
    order: 7;
}


.hpc-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 500px;
    width: clamp(420px, 27vw, 500px);
    max-width: 500px;
    height: 58px;
    min-width: 0;
    padding: 0 14px;
    gap: 5px;
}

.hpc-header__nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 3px;
    color: rgba(255, 248, 230, 0.89);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, text-shadow 0.18s ease;
}

.hpc-header__nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 214, 151, 0.82), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.hpc-header__nav a:hover {
    color: #ffe4a7;
    background: rgba(225, 184, 111, 0.07);
    text-shadow: 0 0 15px rgba(225, 184, 111, 0.20);
}

.hpc-header__nav a:hover::after {
    transform: scaleX(1);
}

.hpc-header__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 58px;
    padding: 0 11px;
    gap: 8px;
}

.hpc-social {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(225, 184, 111, 0.33);
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(255, 255, 255, 0.018);
    color: #eac17a;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hpc-social::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 236, 192, 0.42), transparent 68%);
    transform: translateX(-125%);
    transition: transform 0.58s ease;
}

.hpc-social svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hpc-social:hover {
    border-color: rgba(255, 228, 166, 0.88);
    background: rgba(225, 184, 111, 0.10);
    color: #ffe4a7;
    box-shadow: 0 0 22px rgba(225, 184, 111, 0.16);
}

.hpc-social:hover::before {
    transform: translateX(125%);
}

/* MAX — крупнее остальных по внутреннему знаку, чтобы не терялся */
.hpc-social--max svg {
    width: 26px;
    height: 26px;
}

.hpc-header__address {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 0;
    min-width: 0;
    height: 58px;
    padding: 0 16px 0 11px;
    gap: 10px;
    color: rgba(255, 248, 230, 0.88);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hpc-header__address:hover {
    color: #ffe4a7;
    border-color: rgba(225, 184, 111, 0.32);
    background: rgba(225, 184, 111, 0.062);
}

.hpc-header__mini-icon,
.hpc-header__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 214, 151, 0.42);
    border-radius: 3px;
    background:
        radial-gradient(circle at 34% 16%, rgba(255, 239, 203, 0.28), transparent 36%),
        linear-gradient(180deg, rgba(225, 184, 111, 0.25), rgba(225, 184, 111, 0.05)),
        rgba(255, 255, 255, 0.024);
    color: #f7d392;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 13px rgba(225, 184, 111, 0.06);
}

.hpc-header__mini-icon {
    width: 32px;
    height: 32px;
}

.hpc-header__phone-icon {
    width: 36px;
    height: 36px;
}

.hpc-header__mini-icon svg,
.hpc-header__phone-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.hpc-header__phone-icon svg {
    width: 18px;
    height: 18px;
}

.hpc-header__phone {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 58px;
    gap: 10px;
    padding: 0 16px 0 10px;
    color: rgba(255, 248, 230, 0.96);
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(232, 188, 113, 0.18);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16.5px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hpc-header__phone:hover {
    color: #ffe4a7;
    border-color: rgba(225, 184, 111, 0.34);
    background: rgba(225, 184, 111, 0.072);
}

.hpc-header__booking {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 58px;
    min-width: 192px;
    padding: 0 29px;
    border: 1px solid rgba(255, 229, 168, 0.88);
    border-radius: 3px;
    background:
        radial-gradient(circle at 50% -38%, rgba(255, 229, 168, 0.28), transparent 48%),
        linear-gradient(180deg, rgba(34, 26, 17, 0.99), rgba(0, 0, 0, 0.99)),
        #050505;
    color: #ffffff;
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: 15.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.082em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 241, 202, 0.065),
        0 0 30px rgba(225, 184, 111, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(225, 184, 111, 0.20);
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hpc-header__booking::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(115deg, transparent 12%, rgba(255, 238, 194, 0.48), rgba(255, 255, 255, 0.46), rgba(255, 238, 194, 0.26), transparent 78%);
    transform: translateX(-125%);
    transition: transform 0.72s ease;
    pointer-events: none;
}

.hpc-header__booking::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 229, 168, 0.24);
    border-radius: 2px;
    pointer-events: none;
}

.hpc-header__booking span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 13px rgba(255, 229, 168, 0.12);
}

.hpc-header__booking:hover {
    color: #ffffff;
    border-color: rgba(255, 235, 184, 1);
    background:
        radial-gradient(circle at 50% -30%, rgba(255, 229, 168, 0.36), transparent 50%),
        linear-gradient(180deg, rgba(45, 34, 21, 0.99), rgba(0, 0, 0, 0.99)),
        #050505;
    box-shadow:
        0 0 0 1px rgba(255, 241, 202, 0.10),
        0 0 36px rgba(225, 184, 111, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.hpc-header__booking:hover::before {
    transform: translateX(125%);
}

.hpc-burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 46px;
    height: 58px;
    padding: 0;
    color: #f9d794;
    cursor: pointer;
}

.hpc-burger span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.hpc-burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hpc-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.hpc-burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hpc-mobile-menu {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    margin: 0 20px 14px;
    padding: 12px;
    border: 1px solid rgba(225, 184, 111, 0.22);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.hpc-mobile-menu__nav {
    display: grid;
    gap: 5px;
}

.hpc-mobile-menu__nav a,
.hpc-mobile-menu__contacts a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(225, 184, 111, 0.15);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 248, 230, 0.9);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.hpc-mobile-menu__contacts {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(225, 184, 111, 0.14);
}

.hpc-mobile-menu__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(225, 184, 111, 0.14);
}

.hpc-mobile-menu__socials {
    display: flex;
    gap: 7px;
}

.hpc-header__booking--mobile {
    min-width: 148px;
}

@media (max-width: 1500px) {
    .hpc-header__inner {
        padding: 0 24px;
        gap: 12px;
    }

    .hpc-header__nav {
        width: clamp(400px, 27vw, 480px);
        max-width: 480px;
    }

    .hpc-header__address {
        display: none;
    }
}

@media (max-width: 1120px) {
    .hpc-header__nav {
        display: none;
    }

    .hpc-header__socials {
        margin-left: 0;
    }

    .hpc-header__address {
        display: none;
    }

    .hpc-burger {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .hpc-landing {
        --hpc-header-height: 70px;
    }

    .hpc-header__inner {
        height: 70px;
        padding: 0 14px;
        gap: 9px;
    }

    .hpc-header__mobile-brand {
        position: absolute;
        left: 96px;
        right: 112px;
        top: 50%;
        z-index: 2;
        display: none;
        width: auto;
        max-width: none;
        transform: translateY(-50%);
        padding: 0 8px 0 0;
        color: #f0cf90;
        background: linear-gradient(180deg, #fff6d8 0%, #f3d496 34%, #e0b86c 68%, #c7984c 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: "Times New Roman", Georgia, serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.12em;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        pointer-events: none;
        text-shadow:
            0 1px 0 rgba(255, 249, 231, 0.16),
            0 0 12px rgba(232, 188, 113, 0.18),
            0 0 24px rgba(232, 188, 113, 0.12);
        filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.78)) drop-shadow(0 0 10px rgba(232, 188, 113, 0.12));
        opacity: 1;
    }

    .hpc-header__logo {
        flex-basis: 96px;
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        height: 70px;
        padding: 0;
    }

    .hpc-header__logo-img,
    .hpc-header__logo img {
        max-width: 92px !important;
        max-height: 58px !important;
    }

    .hpc-header__socials {
        display: none;
    }

    .hpc-header__phone {
        z-index: 5;
        margin-left: auto;
        width: 46px;
        height: 48px;
        min-width: 46px;
        padding: 0;
        gap: 0;
        cursor: pointer;
    }

    .hpc-header__phone-icon {
        width: 34px;
        height: 34px;
    }

    .hpc-header__phone-text {
        display: none;
    }

    .hpc-header__booking {
        height: 46px;
        min-width: 144px;
        padding: 0 15px;
        font-size: 13px;
        letter-spacing: 0.065em;
    }

    .hpc-burger {
        width: 44px;
        height: 48px;
    }

    .hpc-mobile-menu {
        width: calc(100% - 28px);
        margin: 0 14px 12px;
    }

    .hpc-mobile-menu__socials .hpc-social {
        width: 34px;
        height: 34px;
    }

    .hpc-mobile-menu__socials .hpc-social svg {
        width: 18px;
        height: 18px;
    }

    .hpc-mobile-menu__socials .hpc-social--max svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 450px) {
    .hpc-header__mobile-brand {
        display: block;
        left: 92px;
        right: 108px;
        font-size: 11px;
        letter-spacing: 0.105em;
    }

    .hpc-header__booking {
        display: none;
    }
}

@media (max-width: 374px) {
    .hpc-header__mobile-brand {
        left: 88px;
        right: 104px;
        padding-right: 4px;
        font-size: 10px;
        letter-spacing: 0.09em;
    }
}


/* v0.1.61: premium centered mobile brand mark */
@keyframes hpc-mobile-brand-shimmer {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.86)) drop-shadow(0 0 8px rgba(231, 187, 108, 0.16));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.86)) drop-shadow(0 0 14px rgba(246, 209, 142, 0.28));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.86)) drop-shadow(0 0 8px rgba(231, 187, 108, 0.16));
    }
}

@media (max-width: 450px) {
    .hpc-header__mobile-brand {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        z-index: 3 !important;
        width: calc(100vw - 212px) !important;
        max-width: 228px !important;
        min-width: 150px;
        padding: 0 !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-family: "Bergamasco", "Times New Roman", Georgia, serif !important;
        font-size: clamp(13px, 3.45vw, 16px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0.085em !important;
        text-transform: uppercase !important;
        color: #f3d49a !important;
        background: linear-gradient(90deg, #b07b37 0%, #f8e4b8 14%, #fff6dc 28%, #e7bc72 43%, #d29b49 57%, #fff1cb 72%, #f0d294 86%, #b8833a 100%) !important;
        background-size: 220% 100% !important;
        background-position: 0% 50% !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow:
            0 1px 0 rgba(255, 249, 238, 0.22),
            0 0 14px rgba(232, 188, 113, 0.18),
            0 0 24px rgba(232, 188, 113, 0.12) !important;
        filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.86)) drop-shadow(0 0 10px rgba(231, 187, 108, 0.18)) !important;
        animation: hpc-mobile-brand-shimmer 6.8s ease-in-out infinite !important;
        opacity: 1 !important;
    }
}

@media (max-width: 374px) {
    .hpc-header__mobile-brand {
        width: calc(100vw - 198px) !important;
        max-width: 206px !important;
        font-size: clamp(11.5px, 3.25vw, 13px) !important;
        letter-spacing: 0.07em !important;
    }
}


/* v0.1.62: mobile brand grouped visually with logo */
@media (max-width: 450px) {
    .hpc-header__mobile-brand {
        left: 78px !important;
        right: 106px !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        transform: translateY(-50%) !important;
        text-align: left !important;
        padding-left: 4px !important;
        letter-spacing: 0.075em !important;
    }
}

@media (max-width: 374px) {
    .hpc-header__mobile-brand {
        left: 72px !important;
        right: 100px !important;
        padding-left: 3px !important;
        font-size: clamp(11px, 3.1vw, 12.5px) !important;
        letter-spacing: 0.06em !important;
    }
}


/* v0.1.63: visible booking button inside mobile burger menu */
.hpc-mobile-menu__booking {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 229, 168, 0.82);
    border-radius: 4px;
    background:
        radial-gradient(circle at 50% -35%, rgba(255, 229, 168, 0.26), transparent 50%),
        linear-gradient(180deg, rgba(34, 26, 17, 0.99), rgba(0, 0, 0, 0.99)),
        #050505;
    color: #fff6e5;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 241, 202, 0.06),
        0 0 28px rgba(225, 184, 111, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.hpc-mobile-menu__booking svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 450px) {
    .hpc-mobile-menu__bottom {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
    }

    .hpc-mobile-menu__socials {
        justify-content: center;
    }

    .hpc-mobile-menu__booking {
        width: 100%;
    }
}

/* v0.1.66: extra nav item for promotions page */
@media (min-width: 1121px) {
    .hpc-header__nav {
        flex-basis: 580px;
        width: clamp(520px, 31vw, 590px);
        max-width: 590px;
    }

    .hpc-header__nav a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
    }
}
