* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f4f1;
    --surface: #ffffff;
    --surface-muted: #f8f8f6;
    --text: #1f1f1a;
    --muted: #626259;
    --line: #d8d8d0;
    --accent: #2c6f5a;
    --accent-strong: #245b49;
    --danger-start: #f4cc70;
    --danger-end: #d45151;
    --radius: 14px;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top, #fcfcfa 0%, var(--bg) 60%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

header {
    max-width: 1080px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.logo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.logo h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tagline {
    margin-top: 8px;
    color: var(--muted);
    font-size: 1rem;
}

main {
    padding: 24px 20px 48px;
    max-width: 1080px;
    margin: 0 auto;
}

.welcome-section {
    display: none;
}

.welcome-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 10px;
}

.warning-text {
    color: var(--muted);
    margin-bottom: 20px;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.pricing-card h3,
.pricing-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.price-subheading {
    margin-top: 20px;
}

.price-list {
    display: grid;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text);
}

.price {
    color: var(--accent-strong);
    font-weight: 700;
}

.enter-btn {
    margin-top: 22px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.enter-btn:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.zoo-section {
    display: none;
}

.zoo-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.zoo-section h2 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    margin-bottom: 6px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 18px;
}

.enclosures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.enclosure-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.enclosure-card:hover {
    transform: translateY(-3px);
    border-color: #bbbbaf;
    box-shadow: 0 8px 18px rgba(31, 31, 26, 0.08);
}

.card-header {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.animal-icon {
    font-size: 2.1rem;
    margin: 8px 0 6px;
}

.enclosure-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.scientific-name {
    color: var(--muted);
    font-style: italic;
    font-size: 0.92rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(8, 8, 8, 0.45);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 32px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.close:hover {
    color: var(--text);
}

.modal-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.animal-icon-large {
    font-size: 3.1rem;
    margin-bottom: 4px;
}

.modal-header h2 {
    font-size: 1.7rem;
}

.modal-body {
    margin-top: 16px;
}

.info-section {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
    padding: 14px;
}

.info-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
}

.info-section li {
    padding: 8px 0;
    border-top: 1px dashed #dcdcd5;
}

.info-section li:first-child {
    border-top: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px dashed #dcdcd5;
}

.stat-item:first-child {
    border-top: 0;
}

.stat-label {
    color: var(--muted);
}

.stat-value {
    font-weight: 700;
}

.danger-meter {
    height: 28px;
    background: #ecece7;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d9d9d2;
}

.danger-level {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-start) 0%, var(--danger-end) 100%);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b1a1a;
    font-weight: 700;
    font-size: 0.9rem;
}

footer {
    max-width: 1080px;
    margin: 24px auto 30px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
}

.footer-warning {
    margin-top: 8px;
}

@media (max-width: 768px) {
    header {
        margin-top: 14px;
        padding: 0 14px;
    }

    main {
        padding: 18px 14px 32px;
    }

    .logo,
    .pricing-card,
    footer {
        padding: 16px;
    }

    .modal.active {
        padding: 12px;
    }
}
