:root {
    --bg: #f7f1e8;
    --surface: #ffffff;
    --text: #2f2a24;
    --muted: #6f675f;
    --accent: #c65f2d;
    --accent-dark: #9f4520;
    --soft: #f3dfcf;
    --dark: #2d2a26;
    --border: #e0d2c4;
    --shadow: 0 20px 45px rgba(47, 42, 36, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

section {
    scroll-margin-top: 90px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.logo-mark {
    background: var(--accent);
    color: white;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.logo-text {
    font-size: 18px;
}

.main-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.main-navigation a {
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.main-navigation a:hover {
    background: var(--soft);
    color: var(--accent-dark);
}

.hero-section {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    padding: 62px 24px;
    overflow: hidden;
    background: var(--dark);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(45, 42, 38, 0.86), rgba(45, 42, 38, 0.58), rgba(45, 42, 38, 0.22)),
        linear-gradient(0deg, rgba(45, 42, 38, 0.65), transparent 45%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 34px;
    align-items: center;
}

.section-label {
    margin: 0 0 12px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 800;
}

.light-label {
    color: #f3c49f;
}

.hero-content h1 {
    margin: 0;
    max-width: 760px;
    font-size: 58px;
    line-height: 1.03;
    color: white;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 24px;
    font-weight: 800;
    text-align: center;
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.atlas-card-hero {
    background: rgba(255, 248, 240, 0.96);
    color: var(--text);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.atlas-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.atlas-small-title {
    margin: 0;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.atlas-card-hero h2 {
    margin: 0 0 10px;
    font-size: 29px;
    line-height: 1.12;
}

.atlas-card-description {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.atlas-mode-list {
    display: grid;
    gap: 9px;
}

.atlas-mode {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    animation: mode-glow 6s infinite;
}

.mode-one {
    animation-delay: 0s;
}

.mode-two {
    animation-delay: 2s;
}

.mode-three {
    animation-delay: 4s;
}

.mode-number {
    color: var(--accent-dark);
    font-weight: 800;
}

.atlas-mode strong {
    display: block;
    margin-bottom: 2px;
}

.atlas-mode p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 24px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
}

.section-heading p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(47, 42, 36, 0.06);
}

.story-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 24px;
}

.story-content h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.2;
}

.story-content p {
    margin: 0;
    color: var(--muted);
}

.map-section {
    max-width: 1320px;
}

.atlas-viewer {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
    align-items: start;
}

.map-catalog {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 96px;
}

.atlas-map-item {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: 0.18s ease;
}

.atlas-map-item:hover {
    transform: translateX(4px);
    border-color: #c99a78;
}

.atlas-map-item.is-active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.catalog-number {
    color: var(--accent-dark);
    font-weight: 800;
}

.atlas-map-item.is-active .catalog-number {
    color: #f3c49f;
}

.catalog-text strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.catalog-text small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.35;
}

.atlas-map-item.is-active .catalog-text small {
    color: #ddd4ca;
}

.atlas-display {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.atlas-display-header {
    padding: 26px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.map-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 14px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.atlas-display-header h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.atlas-display-header p {
    margin: 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 17px;
}

.open-map-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    white-space: nowrap;
}

.open-map-link:hover {
    background: var(--accent-dark);
}

.open-map-link.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.atlas-frame-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 560px;
    max-height: 760px;
    background: #e6ded4;
    border-top: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    position: relative;
    z-index: 1;
    background: var(--bg);
}

.map-frame.is-loading {
    opacity: 0;
}

.map-start-message {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: #f7f1e8;
    color: #2f2a24;
}

.map-start-message div {
    max-width: 420px;
    padding: 28px 32px;
    border-radius: 22px;
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.map-start-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.2;
}

.map-start-message p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.map-start-message.is-hidden {
    display: none;
}

.map-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(247, 241, 232, 0.96);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.map-loader.is-visible {
    display: flex;
}

.map-loader.is-hidden {
    display: none;
}

.map-loader p {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-dark);
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid #e5c8b4;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.participation-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 76px;
}

.participation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #fff8f0;
    box-shadow: 0 16px 38px rgba(47, 42, 36, 0.08);
}

.participation-copy {
    max-width: 720px;
}

.participation-copy h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.participation-copy p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.participation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.participation-buttons .button {
    min-width: 210px;
}

.attribution-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 70px;
}

.attribution-box {
    background: #fff8f0;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 30px;
}

.attribution-box h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.attribution-box p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    background: #1f1d1a;
    color: white;
    padding: 46px 24px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
}

.footer-column h3 {
    margin: 0 0 14px;
    font-size: 19px;
}

.footer-column p {
    margin: 0 0 8px;
    color: #d5ccc2;
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: #d5ccc2;
}

.footer-column a:hover {
    color: white;
}

.contact-intro {
    padding: 86px 24px 54px;
    background: #f2e6d8;
}

.contact-intro-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.contact-intro h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
}

.contact-intro p {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

.contact-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 14px 34px rgba(47, 42, 36, 0.06);
}

.contact-info-card h2,
.contact-form-card h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
}

.contact-info-card p,
.contact-form-card p {
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.detail-item {
    padding: 15px 16px;
    border-radius: 16px;
    background: #fff8f0;
    border: 1px solid var(--border);
}

.detail-item span {
    display: block;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-item strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    line-height: 1.35;
}

.form-frame {
    width: 100%;
    height: 650px;
    border: 0;
    border-radius: 16px;
    background: #eee6dc;
}

.form-note {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.survey-links-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 76px;
}

.survey-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.survey-heading h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
}

.survey-heading p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
}

.survey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.survey-card {
    display: block;
    padding: 28px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border);
    transition: 0.18s ease;
}

.survey-card span {
    color: var(--accent-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.survey-card h3 {
    margin: 16px 0 10px;
    font-size: 25px;
}

.survey-card p {
    margin: 0;
    color: var(--muted);
}

.survey-card-action {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-dark);
}

.survey-card:hover {
    transform: translateY(-3px);
    border-color: #c99a78;
    box-shadow: 0 18px 38px rgba(47, 42, 36, 0.1);
}

@keyframes mode-glow {
    0% {
        background: rgba(255, 255, 255, 0.75);
        border-color: var(--border);
        box-shadow: none;
    }

    10% {
        background: var(--soft);
        border-color: #d8b69d;
        box-shadow: 0 0 0 3px rgba(198, 95, 45, 0.12), 0 10px 24px rgba(159, 69, 32, 0.16);
    }

    34% {
        background: var(--soft);
        border-color: #d8b69d;
        box-shadow: 0 0 0 3px rgba(198, 95, 45, 0.12), 0 10px 24px rgba(159, 69, 32, 0.16);
    }

    48% {
        background: rgba(255, 255, 255, 0.75);
        border-color: var(--border);
        box-shadow: none;
    }

    100% {
        background: rgba(255, 255, 255, 0.75);
        border-color: var(--border);
        box-shadow: none;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .atlas-viewer {
        grid-template-columns: 1fr;
    }

    .map-catalog {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .atlas-frame-wrapper {
        height: 560px;
    }

    .participation-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .participation-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .atlas-card-hero {
        max-width: 620px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        min-height: auto;
        padding: 70px 20px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .survey-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .map-catalog {
        grid-template-columns: 1fr;
    }

    .atlas-display-header {
        flex-direction: column;
    }

    .open-map-link {
        width: 100%;
        text-align: center;
    }

    .participation-buttons,
    .participation-buttons .button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 16px;
    }

    .main-navigation a {
        font-size: 14px;
        padding: 7px 10px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .atlas-card-hero {
        padding: 22px;
    }

    .atlas-card-hero h2 {
        font-size: 28px;
    }

    .atlas-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-section {
        padding: 56px 18px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .story-card img {
        height: 220px;
    }

    .atlas-display-header {
        padding: 22px;
    }

    .atlas-display-header h3 {
        font-size: 24px;
    }

    .atlas-frame-wrapper {
        height: 420px;
        min-height: 420px;
    }

    .participation-section {
        padding: 0 18px 56px;
    }

    .participation-card {
        padding: 26px 22px;
    }

    .participation-copy h2 {
        font-size: 28px;
    }

    .attribution-section {
        padding: 0 18px 56px;
    }

    .site-footer {
        padding: 40px 18px;
    }

    .contact-intro {
        padding: 60px 18px 42px;
    }

    .contact-intro h1 {
        font-size: 38px;
    }

    .contact-content {
        padding: 46px 18px;
    }

    .survey-links-section {
        padding: 0 18px 56px;
    }

    .form-frame {
        height: 520px;
    }
}
@media (max-width: 700px) {
    .site-header {
        position: static;
    }

    .header-inner {
        gap: 14px;
    }

    .site-logo {
        width: 100%;
        justify-content: flex-start;
    }

    .main-navigation {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .main-navigation a {
        text-align: center;
        padding: 10px 8px;
        background: rgba(255, 248, 240, 0.8);
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .map-section {
        padding-top: 48px;
    }

    .atlas-viewer {
        display: block;
    }

    .map-catalog {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin: 0 -18px 18px;
        padding: 12px 18px;
        background: rgba(247, 241, 232, 0.96);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .map-catalog::-webkit-scrollbar {
        height: 6px;
    }

    .map-catalog::-webkit-scrollbar-thumb {
        background: #d7b49d;
        border-radius: 999px;
    }

    .atlas-map-item {
        min-width: 270px;
        max-width: 270px;
        grid-template-columns: 34px 1fr;
        padding: 14px;
        scroll-snap-align: start;
    }

    .atlas-map-item:hover {
        transform: none;
    }

    .atlas-display {
        border-radius: 22px;
    }

    .atlas-display-header {
        padding: 22px;
    }

    .atlas-display-header h3 {
        font-size: 25px;
    }

    .atlas-display-header p {
        font-size: 16px;
    }

    .atlas-frame-wrapper {
        height: 560px;
        min-height: 560px;
        max-height: none;
    }

    .map-start-message div {
        padding: 24px 22px;
    }

    .map-start-message strong {
        font-size: 22px;
    }

    .open-map-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .logo-text {
        font-size: 17px;
        line-height: 1.25;
    }

    .main-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .atlas-map-item {
        min-width: 245px;
        max-width: 245px;
    }

    .catalog-text strong {
        font-size: 15px;
    }

    .catalog-text small {
        font-size: 13px;
    }

    .atlas-frame-wrapper {
        height: 520px;
        min-height: 520px;
    }
}