:root {
    --brand-primary: #1f6db1;
    --brand-secondary: #99d4c0;
}

.top-head {
    position: sticky;
    z-index: 850;
    top: 0;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    height: 64px;
    align-items: center;
    padding: 0 14px !important;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 18px rgba(28, 57, 88, .045);
    backdrop-filter: blur(14px);
}

.top-head > div {
    display: flex;
    width: auto !important;
    align-items: center;
}

.top-head > div:first-child { justify-content: flex-start; }
.top-head > div:last-child { justify-content: flex-end; gap: 2px; }

.top-head .logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    justify-content: center;
    transform: none !important;
}

.top-head .logo img {
    display: block;
    width: 118px !important;
    max-height: 43px;
    object-fit: contain;
}

.open-menu-icon,
.open-search-icon,
.notification-btn,
.top-head .cart {
    display: inline-grid !important;
    width: 37px !important;
    height: 37px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #334155 !important;
    background: transparent;
}

.open-menu-icon:hover,
.open-search-icon:hover,
.notification-btn:hover,
.top-head .cart:hover {
    color: var(--brand-primary) !important;
    background: #eef6fc;
}

.top-head svg {
    fill: currentColor;
}

.bottom-nav {
    right: 50% !important;
    bottom: 0 !important;
    left: auto !important;
    display: grid !important;
    width: min(100%, 428px) !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 !important;
    align-items: end !important;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid rgba(31, 109, 177, .1) !important;
    border-radius: 20px 20px 0 0 !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 -8px 28px rgba(20, 43, 68, .1) !important;
    transform: translateX(50%) !important;
    backdrop-filter: blur(18px);
}

.bottom-nav .nav-item {
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    height: 57px !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end !important;
    gap: 3px;
    margin: 0 !important;
    padding: 4px 1px !important;
    border: 0;
    border-radius: 12px;
    color: #7b8795;
    background: transparent;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bottom-nav .nav-item:hover {
    background: transparent !important;
    transform: none !important;
}

.bottom-nav .nav-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.bottom-nav .nav-item > span:last-child {
    width: 100%;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3;
}

.bottom-nav .nav-item.is-active {
    color: var(--brand-primary);
}

.bottom-nav .nav-item.is-active > span:last-child {
    color: var(--brand-primary) !important;
}

.bottom-nav .nav-item--assistant {
    position: relative;
    color: var(--brand-primary);
}

.nav-assistant {
    display: grid;
    width: 57px !important;
    height: 57px;
    margin-top: -29px;
    place-items: center;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--brand-primary), #335bd1);
    box-shadow: 0 8px 22px rgba(31, 109, 177, .28);
}

.nav-assistant img {
    width: 47px;
    height: 47px;
    object-fit: cover;
}

.service-sheet-overlay {
    position: fixed;
    z-index: 1180;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(10, 24, 40, .46);
    transition: opacity .24s ease, visibility .24s ease;
    backdrop-filter: blur(2px);
}

.service-sheet-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.service-sheet {
    position: fixed;
    z-index: 1190;
    right: 50%;
    bottom: 0;
    width: min(100%, 428px);
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(15, 34, 54, .18);
    transform: translate(50%, 105%);
    transition: transform .26s ease;
}

.service-sheet.is-open {
    transform: translate(50%, 0);
}

.service-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 4px;
    background: #d9e0e7;
}

.service-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.service-sheet__head span {
    color: var(--brand-primary);
    font-size: 9px;
    font-weight: 650;
}

.service-sheet__head h2 {
    margin: 2px 0 0;
    color: #17212f;
    font-size: 19px;
}

.service-sheet__head button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #647184;
    background: #f2f5f8;
    font-family: Arial, sans-serif;
    font-size: 22px;
    cursor: pointer;
}

.service-sheet__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.service-sheet__grid > a {
    display: flex;
    min-width: 0;
    min-height: 84px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e7edf3;
    border-radius: 15px;
    color: #17212f;
    text-decoration: none;
}

.service-sheet__icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
}

.service-sheet__icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.service-sheet__icon--mint { color: #347a63; background: #e5f5f0; }
.service-sheet__icon--blue { color: var(--brand-primary); background: #e8f2fb; }
.service-sheet__icon--orange { color: #b16c24; background: #fff0df; }
.service-sheet__icon--purple { color: #7053a9; background: #f0eafb; }

.service-sheet__grid span {
    min-width: 0;
}

.service-sheet__grid strong,
.service-sheet__grid small {
    display: block;
}

.service-sheet__grid strong {
    font-size: 10px;
    font-weight: 700;
}

.service-sheet__grid small {
    margin-top: 4px;
    color: #7a8594;
    font-size: 8px;
    line-height: 1.7;
}

body.sheet-open {
    overflow: hidden;
}

.site-back-top {
    position: fixed;
    z-index: 840;
    right: max(calc((100vw - 428px) / 2 + 14px), 14px);
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: grid;
    width: 39px;
    height: 39px;
    visibility: hidden;
    place-items: center;
    border: 1px solid rgba(31, 109, 177, .15);
    border-radius: 13px;
    opacity: 0;
    color: var(--brand-primary);
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(19, 45, 70, .13);
    transform: translateY(8px);
    transition: .2s ease;
    cursor: pointer;
}

.site-back-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.site-back-top svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

@media (prefers-reduced-motion: reduce) {
    .service-sheet,
    .service-sheet-overlay,
    .site-back-top { transition: none; }
}
