:root {
    --green: #5f6f52;
    --olive: #7a8450;
    --wine: #7b3f3f;
    --sand: #f4efe6;
    --cream: #fffaf2;
    --text: #333333;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--sand);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 34px 0 30px;
    background: var(--green);
    color: var(--white);
    text-align: center;
}

.site-header h1 {
    margin: 2px 0 8px;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.15;
}

.site-header p {
    margin: 0;
}

.eyebrow {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.main-menu {
    position: relative;
    z-index: 10;
    background: var(--wine);
}

.main-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 6px 16px;
    list-style: none;
}

.main-menu a {
    display: block;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 7px;
    color: var(--white);
    font-weight: 650;
    text-decoration: none;
}

.main-menu a:hover,
.main-menu a:focus-visible,
.main-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, .18);
    outline: none;
}

main {
    padding: 36px 0 48px;
}

.photo-section h2,
.photo-intro {
    text-align: center;
}

.photo-section h2 {
    margin: 0;
    color: var(--green);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.photo-intro {
    margin: 6px 0 22px;
}

.photo-navigation {
    position: relative;
    width: min(100%, 780px);
    margin: 0 auto;
    overflow: visible;
    border: 8px solid var(--cream);
    border-radius: 18px;
    background: var(--cream);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

.photo-navigation img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
}

.photo-hotspot {
    position: absolute;
    width: 12%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(95, 111, 82, .08);
    color: var(--white);
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.photo-hotspot span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 2;
    padding: 6px 10px;
    transform: translateX(-50%) translateY(4px);
    border-radius: 6px;
    background: rgba(51, 51, 51, .94);
    color: var(--white);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.photo-hotspot:hover,
.photo-hotspot:focus-visible {
    border-color: var(--white);
    background: rgba(122, 63, 63, .28);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
    outline: none;
}

.photo-hotspot:hover span,
.photo-hotspot:focus-visible span {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hotspot-travel {
    left: 89%;
    top: 69%;
    width: 15%;
}

.hotspot-training {
    left: 78%;
    top: 43%;
}

.hotspot-gymnastics {
    left: 93%;
    top: 51%;
}

.hotspot-nutrition {
    left: 63%;
    top: 39%;
}

.site-footer {
    padding: 20px 16px;
    background: var(--green);
    color: var(--white);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1100px);
    }

    .site-header {
        padding: 24px 0;
    }

    .main-menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px 10px;
    }

    .main-menu li:first-child {
        grid-column: 1 / -1;
    }

    .main-menu a {
        text-align: center;
    }

    main {
        padding: 26px 0 36px;
    }

    .photo-navigation {
        border-width: 4px;
        border-radius: 12px;
    }

    .photo-hotspot {
        width: 15%;
        min-width: 42px;
        min-height: 42px;
    }

    .hotspot-travel {
        width: 18%;
    }
}

@media (max-width: 380px) {
    .photo-hotspot {
        display: none;
    }
}
