
:root {
    --background: #001822;
    --card: #06232E;
    --accent: #F2C177;
    --text: #FFFFFF;
    --muted: #BFCBD0;
    --secondary: #34393E;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a {
    text-decoration: none;
}

.app {
    width: 100%;
    max-width: 520px;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--background);
}

/* Шапка */

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
    color: var(--accent);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}

.header-title {
    font-size: 14px;
    color: var(--muted);
}

/* Основное содержимое */

.app-content {
    padding: 22px 18px 110px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: appear .2s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 14px;
}

h2 {
    font-size: 21px;
    margin: 0 0 10px;
}

p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 15px;
}

.hero {
    padding: 10px 0 18px;
}

.hero h1 {
    margin-top: 12px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Главная карточка */

.feature-card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
}

.feature-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #102F39,
        #53605A,
        #9A7950
    );
}

.feature-image span {
    font-family: Georgia, serif;
    color: var(--accent);
    font-size: 30px;
    letter-spacing: 7px;
}

.feature-content {
    padding: 18px;
}

.primary-button {
    display: block;
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--background);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    transition: opacity .2s;
}

.primary-button:active {
    opacity: .75;
}

/* Карточки меню */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    min-height: 135px;
    padding: 16px;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--text);
    transition: border-color .2s;
}

.menu-card strong {
    font-size: 16px;
}

.menu-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 30px;
    color: var(--accent);
}

.menu-card:hover,
.menu-wide:hover {
    border-color: rgba(242,193,119,.4);
}

.menu-wide {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--card);
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
}

.arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 25px;
}

/* Внутренние страницы */

.back-button {
    padding: 8px 0;
    margin-bottom: 22px;
    background: transparent;
    color: var(--accent);
    border: 0;
    font-size: 14px;
}

.page-description {
    margin-bottom: 24px;
}

.placeholder-card,
.info-card {
    padding: 20px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--card);
    color: var(--muted);
    line-height: 1.5;
}

.info-card h2 {
    color: var(--text);
}

.info-card p {
    margin-bottom: 0;
}

/* Частые вопросы */

.faq-item {
    background: var(--card);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 10px;
}

.faq-item summary {
    cursor: pointer;
    line-height: 1.5;
    font-weight: 600;
}

.faq-item summary::marker {
    color: var(--accent);
}

.faq-item p {
    margin: 15px 0 0;
}

/* Нижняя навигация */

.bottom-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 520px;
    padding: 10px 6px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #001822;
    border-top: 1px solid rgba(255,255,255,.12);
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 2px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 11px;
}

.nav-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-button.active {
    color: var(--accent);
}

/* Адаптивность */

@media (min-width: 600px) {
    body {
        background: #0D1115;
    }

    .app {
        box-shadow: 0 0 60px rgba(0,0,0,.35);
    }
}

@media (max-width: 350px) {
    h1 {
        font-size: 24px;
    }

    .menu-card {
        padding: 12px;
    }

    .menu-card strong {
        font-size: 14px;
    }
}/* Белый текст на жёлтых кнопках */

.primary-button {
    color: #FFFFFF !important;
}/* Кликабельная карточка выставок */

.feature-card {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feature-card:active {
    opacity: 0.85;
}
