:root {
    --page: #f8f8f8;
    --surface: #ffffff;
    --ink: #1e1e1e;
    --muted: #707070;
    --line: #e2e2e2;
    --soft: #f2f4f6;
    --link: #be1e3c;
    --link-hover: #711c2f;
    --accent: #be1e3c;
    --accent-alt: #003f57;
    --header: #be1e3c;
    --primary-black: #000000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.48;
}

a {
    color: var(--link);
    text-decoration: underline;
}

a:hover {
    color: var(--link-hover);
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 0 28px 0 0;
    background: var(--header);
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
}

.topbar__logo {
    display: flex;
    align-self: stretch;
    flex: 0 0 auto;
}

.topbar__logo img {
    display: block;
    width: 198px;
    height: 74px;
}

.topbar__title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.layout {
    background: var(--surface);
    min-height: calc(100vh - 50px);
}

.content {
    min-width: 0;
}

.record {
    padding: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.record__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.record__meta span:first-child {
    color: var(--header);
    font-family: Consolas, "Liberation Mono", monospace;
    font-weight: 700;
}

h1 {
    margin: 10px 0 22px;
    color: var(--primary-black);
    font-size: clamp(1.8rem, 2.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.16;
}

.record-grid {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
}

.record-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.details {
    display: grid;
    gap: 18px;
}

.detail-block {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.detail-block:empty {
    display: none;
}

h2 {
    margin: 0 0 8px;
    color: var(--header);
    font-size: 1.05rem;
    letter-spacing: 0;
}

address,
p {
    margin: 0;
}

.detail-block p + p {
    margin-top: 6px;
}

.detail-block a {
    overflow-wrap: anywhere;
}

address {
    font-style: normal;
    white-space: normal;
}

.map-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.coordinates {
    color: var(--muted);
    font-size: 0.95rem;
}

#map {
    width: 100%;
    min-height: 520px;
    border: 1px solid #cecfd0;
    border-top: 4px solid var(--header);
    border-radius: 6px;
}

.is-hidden {
    display: none;
}

@media (max-width: 920px) {
    .record-grid {
        grid-template-columns: 1fr;
    }

    .map-panel {
        position: static;
    }

    #map {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    .topbar {
        gap: 12px;
        min-height: 58px;
        padding: 0 12px 0 0;
    }

    .topbar__logo img {
        width: 155px;
        height: 58px;
    }

    .topbar__title {
        font-size: 1rem;
        padding-left: 12px;
    }

    .record {
        padding: 20px 16px;
    }

    #map {
        min-height: 340px;
    }
}
