:root {
    --accent: #ef3038;
    --text: #181b20;
    --muted: #737b86;
    --border: #e4e6ea;
    --surface: #ffffff;
    --page: #f5f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.route-directory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.route-directory-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.route-directory-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.route-directory-city {
    color: var(--muted);
    font-size: 13px;
}

.route-directory-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.directory-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
}

.directory-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.directory-breadcrumbs a:hover {
    color: var(--accent);
}

.route-directory-hero {
    margin-bottom: 24px;
}

.route-directory-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -1.1px;
}

.route-directory-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.route-directory-count {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.route-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.route-directory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
}

.route-directory-card:hover {
    border-color: #ffb5b8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.route-directory-card strong {
    font-size: 14px;
    line-height: 1.35;
}

.route-directory-card span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.route-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.route-list a:hover {
    border-color: #ffb5b8;
    color: var(--accent);
}

.route-directory-back {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .route-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .route-directory-header {
        padding: 0 16px;
    }

    .route-directory-main {
        width: min(100% - 24px, 1180px);
        padding-top: 20px;
    }

    .route-directory-grid,
    .route-list {
        grid-template-columns: 1fr;
    }
}
