body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
    background: linear-gradient(135deg, #f9f4e4, #e9efe8);
    color: #202531;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img,
iframe {
    max-width: 100%;
    display: block;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.top-bar,
.bottom-bar {
    display: flex;
    justify-content: center;
}

.bottom-bar {
    margin-top: auto;
}

.nav-top-nice-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

:is(.nav-link, .button, .profile-card .label) {
    font-weight: 600;
    text-transform: uppercase;
}

:is(.info-block h2, .profile-card h3) {
    text-transform: uppercase;
}

.nav-link {
    background: #f8d45c;
    border: 1px solid #202531;
    border-radius: 12px;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
}

.nav-link.is-active,
.nav-link:hover {
    background: #ffd12a;
}

.panel-shell {
    position: relative;
    padding: 0 1.5rem;
}

.panel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #202531;
    background: #f8d45c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-arrow--prev {
    left: 0;
}

.panel-arrow--next {
    right: 0;
}

.main-panel {
    background: #ffffff;
    border: 2px solid #202531;
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.main-panel > * {
    min-width: 0;
}

:is([class*="card"], .info-block, .feature-image) {
    border: 1px solid #202531;
    border-radius: 14px;
    background: #ffffff;
    padding: 1.3rem;
}

:is(.title-card, .feature-image) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-card {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 300;
    grid-column: 1 / 2;
}

.feature-photo {
    max-width: 100%;
    border-radius: 12px;
}

:is(.info-block, .profile-card, .contact-details, .simple-wrapper) {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-block {
    font-size: 0.95rem;
}

:is(.profile-card ul, .simple-card ul) {
    margin: 0;
    padding-left: 1.2rem;
}

.profile-card .label {
    font-size: 0.75rem;
}

.button {
    align-self: flex-start;
    padding: 0.45rem 1.2rem;
    border: 1px solid #202531;
    border-radius: 10px;
    background: #f8d45c;
    font-size: 0.8rem;
}

.button:hover {
    background: #ffd12a;
}

.simple-wrapper {
    max-width: 680px;
    width: min(680px, 92vw);
    margin: 0 auto;
    text-align: center;
}

.simple-card h1 {
    margin: 0;
    font-size: 2.2rem;
}

.map-card iframe {
    width: 100%;
    border: 0;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .main-panel {
        grid-template-columns: 1fr;
    }

    .panel-shell {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .panel-shell > .main-panel {
        order: 0;
        flex: 1 1 100%;
    }

    .panel-arrow {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        padding: 0.45rem 1.2rem;
        border-radius: 12px;
        order: 1;
    }
}

@media (max-width: 720px) {
    .page {
        gap: 1.6rem;
    }

    .main-panel {
        padding: 1.25rem;
        gap: 1rem;
    }

    .title-card {
        text-align: center;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.45rem 1.1rem;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 1.5rem 0.75rem 2.5rem;
    }

    .main-panel {
        padding: 1.1rem;
    }

    .map-card iframe {
        min-height: 220px;
    }
}

@media (max-width: 420px) {
    .nav-top-nice-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.6rem;
        padding-bottom: 0.4rem;
        scrollbar-width: none;
    }

    .nav-top-nice-buttons::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
    }
}
