:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-bg: #f8f9fa;
    --secondary-text: #4b5563;
    --accent-bg: #0056b3;
    --accent-text: #ffffff;
    --dark-section-bg: #0f172a;
    --dark-section-text: #f1f5f9;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

.button-custom:hover {
    color: #fff !important;
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 16px !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

strong {
    font-weight: normal !important;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        word-break: break-word;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        word-break: break-word;
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .mobile-text-small {
        font-size: 0.875rem;
        word-wrap: break-word;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-bg);
    outline-offset: 2px;
}

/* ===== header ===== */
#site-header {
    background-color: var(--primary-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000
}

.nav-link {
    color: var(--primary-text);
    font-weight: 500;
    transition: color .3s ease;
    text-decoration: none
}

.nav-link:hover {
    color: var(--accent-bg)
}

.js-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--primary-text);
    text-decoration: none;
    margin: 1rem 0;
    font-weight: 600
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    border-radius: 50%
}

.btn-cart {
    color: var(--primary-text);
    transition: color .3s ease;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative
}

.btn-cart:hover {
    color: var(--accent-bg)
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.5rem;
    padding: 0;
    margin-left: 1.5rem
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 2rem
}

/* ===== hero_section ===== */
.hero-section {
    width: 100%;
}

.category-item {
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    transition: background 0.3s ease;
}

.category-item:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.25) !important;
}

.btn-lg:hover {
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

/* ===== about_museum ===== */
#about {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.about-img-wrapper {
    transition: transform 0.3s ease-in-out;
}

.about-img-wrapper:hover {
    transform: scale(1.02);
}

.bi {
    flex-shrink: 0;
}

/* ===== why_online ===== */
#benefits {
    width: 100%;
    background-color: var(--secondary-bg);
}

.benefit-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

.benefit-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--secondary-bg);
}

/* ===== booking_module ===== */
.js-booking-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.js-booking-card:hover {
    transform: translateY(-5px);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-bg);
}

.btn:active {
    transform: scale(0.95);
}

/* ===== shopping_cart ===== */
#cart-modal .cart-item {
    border-bottom: 1px solid var(--secondary-bg);
}

#cart-modal .cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#cart-modal .item-img {
    transition: transform 0.2s ease;
}

#cart-modal .item-img:hover {
    transform: scale(1.05);
}

#cart-modal .qty-btn {
    transition: all 0.2s ease;
}

#cart-modal .qty-btn:hover {
    background-color: var(--primary-text) !important;
    color: var(--primary-bg) !important;
}

#cart-modal .js-remove-item:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}

#cart-modal::-webkit-scrollbar {
    width: 6px;
}

#cart-modal::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

#cart-modal::-webkit-scrollbar-thumb {
    background: var(--secondary-text);
    border-radius: 10px;
}

/* ===== process_steps ===== */
.col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 1199.98px) {
    .col-xl-2-4 {
        width: 33.333333%;
    }
}

@media (max-width: 991.98px) {
    .col-xl-2-4 {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-xl-2-4 {
        width: 100%;
    }
}

.js-step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.js-step-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* ===== opening_hours ===== */
#schedule {
    position: relative;
    overflow: hidden;
}

.cartAddBtn:hover {
    opacity: 0.9;
}

.js-opening-status {
    transition: background-color 0.3s ease;
}

/* ===== how_to_get ===== */
.rounded-4 {
    border-radius: 1.5rem !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* ===== platform_perks ===== */
#platform-advantages {
    width: 100%;
}

#platform-advantages .js-perk-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#platform-advantages .js-perk-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-bg) !important;
}

/* ===== faq_section ===== */
#faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-bg);
    color: var(--accent-bg);
    box-shadow: none
}

#faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-bg)
}

#faq-section .accordion-button::after {
    background-size: 1.25rem;
    transition: transform .2s ease-in-out
}

#faq-section .accordion-item {
    transition: transform .2s ease-in-out
}

#faq-section .accordion-item:hover {
    transform: translateY(-2px)
}

/* ===== trust_block ===== */
#reviews {
    position: relative;
    overflow: hidden;
}

#reviews .card {
    transition: all 0.3s ease-in-out;
}

#reviews .card:hover {
    transform: translateY(-8px);
}

.cartAddBtn {
    font-weight: 600;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.cartAddBtn:hover {
    opacity: 0.9;
}

/* ===== footer ===== */
#site-footer a {
    transition: opacity 0.3s ease;
}

#site-footer a:hover {
    opacity: 0.7;
    color: var(--accent-text) !important;
}

#site-footer i {
    font-size: 1.1rem;
}