* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #E8EEF2;
}

.menu-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 1100;
    background: #003D7A;
    color: #fff;
    padding: 0;
    border: none;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,61,122,0.3);
    transition: background 0.3s, box-shadow 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #002952;
    box-shadow: 0 4px 12px rgba(0,61,122,0.5);
    outline: 2px solid #FF6A23;
    outline-offset: 2px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 51, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1080;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 15px rgba(0,61,122,0.15);
    transition: left 0.3s;
    z-index: 1090;
    overflow-y: auto;
    border-right: 3px solid #003D7A;
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 80px 30px 30px;
}

.sidebar h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #003D7A;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #E8EEF2;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 16px;
    display: block;
    padding: 12px 15px;
    border-radius: 3px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar ul li a:hover {
    background: #E8EEF2;
    color: #003D7A;
    border-left: 3px solid #FF6A23;
}

.sidebar ul li a.sidebar__link--active {
    background: #E8EEF2;
    color: #003D7A;
    border-left: 3px solid #FF6A23;
    font-weight: 600;
}

.desktop-nav {
    display: none;
    margin: 18px auto 8px;
}

.desktop-nav__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

.desktop-nav__link {
    display: inline-block;
    padding: 10px 28px;
    text-decoration: none;
    color: #003D7A;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    border: 2px solid #DFE6EA;
    background: #ffffff;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.desktop-nav__link:hover {
    border-color: #003D7A;
    background: #E8EEF2;
}

.desktop-nav__link--active {
    background: #003D7A;
    color: #ffffff;
    border-color: #003D7A;
}

.desktop-nav__link--active:hover {
    background: #002952;
    color: #ffffff;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle {
        display: none;
    }

    .menu-overlay {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .site-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 20px 8px;
    }

    .site-title {
        font-size: clamp(22px, 2.4vw, 30px);
        line-height: 1.15;
        text-align: center;
        margin: 0;
        letter-spacing: 0.04em;
        flex: 0 0 auto;
    }

    .site-header > .reference {
        font-size: clamp(9px, 1vw, 11px);
        text-align: center;
        margin: 0 0 4px;
        line-height: 1.2;
        flex: 0 0 auto;
    }

    .header-toolbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        flex: 0 0 auto;
    }

    .header-toolbar__left,
    .desktop-nav {
        flex: 1 1 50%;
        min-width: 0;
        max-width: 50%;
    }

    .header-toolbar__left {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-logos {
        margin: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(4px, 1vw, 12px);
        flex-wrap: nowrap;
    }

    .site-logos img {
        display: block;
        width: auto;
        height: clamp(28px, 4.2vw, 52px);
        max-width: 24%;
        object-fit: contain;
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-logos .site-logo-wide {
        height: clamp(24px, 3.6vw, 46px);
        max-width: 28%;
        flex: 1 1 auto;
    }

    .desktop-nav {
        margin: 0;
        align-self: stretch;
        padding: 0;
    }

    .desktop-nav__list {
        justify-content: center;
        align-items: center;
        gap: clamp(4px, 0.8vw, 8px);
        flex-wrap: nowrap;
    }

    .desktop-nav__link {
        padding: clamp(5px, 0.8vw, 8px) clamp(10px, 1.4vw, 16px);
        font-size: clamp(12px, 1.2vw, 14px);
        white-space: nowrap;
    }

    body.page-map-view main {
        padding: 10px 16px 16px;
    }

    body.page-map-view .breadcrumbs {
        margin-bottom: 6px;
        padding-bottom: 0;
        font-size: 13px;
    }

    body.page-map-view .map-section {
        display: flex;
        flex-direction: column;
        height: calc(100svh - var(--map-chrome-height, 200px));
        min-height: 360px;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    body.page-map-view .home-map {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
    }

    body.page-map-view .map-filters {
        flex: 0 0 auto;
        margin-top: 10px;
        margin-bottom: 0;
    }

    body.page-map-view .footer-info {
        margin-top: 16px;
    }

    body.page-map-view .category-blocks {
        margin-top: 16px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #E8EEF2;
}

header {
    text-align: center;
    padding: 16px 20px 14px;
    background: #ffffff;
    color: #003D7A;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #DFE6EA;
}

.header-toolbar {
    display: flex;
    width: 100%;
    align-items: center;
}

.header-toolbar__left {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: 54px;
    line-height: 1.1;
    color: #003D7A;
    letter-spacing: 0.02em;
}

.site-logos {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-logos img {
    width: auto;
    max-width: 100%;
    height: 86px;
    object-fit: contain;
}

.site-logos .site-logo-wide {
    height: 74px;
}

.disclaimer {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    line-height: 1.6;
}

.reference {
    font-size: 14px;
    font-style: italic;
    color: #355978;
    opacity: 1;
}

.reference__break {
    display: inline;
}

main {
    padding: 30px 20px;
    background: #fff;
    margin: 0;
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #003D7A;
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 2px solid #E8EEF2;
    font-weight: 600;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #003D7A;
    font-weight: 600;
}

.intro {
    margin-bottom: 30px;
    padding: 25px;
    background: #F7F9FA;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}

.intro--accent {
    border-left: 4px solid #FF6A23;
}

.intro::after {
    content: "";
    display: table;
    clear: both;
}

.about-founder__text {
    margin: 0;
    line-height: 1.65;
    text-align: center;
    font-weight: 400;
}

.about-founder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about-founder .about-figure {
    float: none;
    width: 100%;
    max-width: min(780px, 100%);
    margin: 0;
}

.about-founder .about-figure--founder {
    max-width: min(780px, 100%);
}

.about-thanks {
    margin-top: 30px;
}

.about-figure {
    float: left;
    width: min(427px, 37%);
    max-width: 100%;
    margin: 0 24px 16px 0;
    line-height: 0;
}

.about-figure--portrait {
    width: min(440px, 48%);
}

.about-figure__link {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.about-figure__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.about-figure__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-figure__open-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(0, 61, 122, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .about-figure__link:hover::before {
        background: rgba(0, 0, 0, 0.22);
    }

    .about-figure__link:hover .about-figure__image {
        transform: scale(1.08);
    }

    .about-figure__link:hover .about-figure__open-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .about-figure__open-btn:hover {
        background: rgba(0, 45, 95, 0.96);
    }
}

.map-section {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #DFE6EA;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.map-section.highlighted {
    background: #ffffff;
    border: 1px solid #003D7A;
    box-shadow: 0 2px 8px rgba(0,61,122,0.12);
}

#map {
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #DFE6EA;
}

.home-map {
    width: 100%;
    height: 420px;
}

.map-label {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

.streets-list {
    margin: 40px 0;
}

.list-description {
    margin-bottom: 25px;
    padding: 20px;
    background: #F7F9FA;
    border-radius: 3px;
    border-left: 4px solid #003D7A;
    color: #1A1A1A;
}

.category-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

body.page-map-view .category-blocks {
    padding: 30px;
    background: #F7F9FA;
    border-radius: 3px;
    border-top: 4px solid #003D7A;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.category-block {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #DFE6EA;
    border-left: 6px solid #1E88E5;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.category-block h3 {
    margin-bottom: 14px;
    color: #1A1A1A;
    font-size: 18px;
    line-height: 1.35;
}

.category-block h3 span {
    color: #666;
    font-weight: 500;
    font-size: 15px;
}

.category-street-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-street-list a,
.category-street-list .street-soon {
    display: block;
    padding: 8px 10px;
    border-radius: 3px;
    text-decoration: none;
    background: #F7F9FA;
    color: #003D7A;
    font-size: 15px;
}

/* Еле заметная метка: улица сопоставлена с авторами из Word */
.category-street-list a.street-matched {
    background: #f1f8f1;
}

.category-street-list a:hover {
    background: #E8EEF2;
}

.category-street-list a.street-matched:hover {
    background: #e8f3e8;
}

.category-street-list .street-soon {
    color: #4A4A4A;
}

.street-header.street-matched {
    background: #f3f9f3;
}

.streets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.column a {
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #DFE6EA;
    border-radius: 3px;
    text-decoration: none;
    color: #003D7A;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.column a::before {
    content: "📍";
    margin-right: 12px;
    font-size: 18px;
}

.column a:hover {
    background: #003D7A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,61,122,0.25);
    border-color: #003D7A;
}

.street-content {
    margin: 30px 0;
}

.street-header {
    background: #F7F9FA;
    padding: 25px;
    border-radius: 3px;
    margin-bottom: 25px;
    border-left: 4px solid #9E9E9E; /* цвет категории задаёт street-page.js */
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.content-block {
    margin: 20px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 3px;
    line-height: 1.8;
    border: 1px solid #DFE6EA;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 28px;
    background: #FF6A23;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(255,106,35,0.3);
}

.back-link:hover {
    background: #E55A13;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255,106,35,0.4);
}

.footer-info {
    margin-top: 50px;
    padding: 30px;
    background: #F7F9FA;
    border-radius: 3px;
    border-top: 4px solid #003D7A;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contact-grid div {
    padding: 25px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid #DFE6EA;
    transition: all 0.3s;
}

.contact-grid div:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.contact-grid strong {
    display: block;
    margin-bottom: 12px;
    color: #003D7A;
    font-size: 16px;
    font-weight: 600;
}

.about-content {
    margin: 30px 0;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        padding: 14px 12px 12px 64px;
        box-sizing: border-box;
    }

    .site-title {
        /* Одна строка: ширина ≈ 100vw − отступы шапки под бургер */
        font-size: clamp(13px, calc((100vw - 88px) / 12.2), 28px);
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        letter-spacing: 0.01em;
        overflow: hidden;
    }

    .reference__break {
        display: block;
    }

    .category-blocks,
    .streets-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0;
    }
    
    main {
        padding: 20px 10px;
    }
    
    header {
        border-radius: 0;
    }

    .site-logos {
        gap: 10px;
        margin: 0;
        justify-content: center;
    }

    .site-header > .reference {
        text-align: center;
        margin: 4px 0 6px;
        font-size: clamp(11px, 3.1vw, 13px);
        line-height: 1.35;
        white-space: normal;
    }

    .site-header > .reference + .reference {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .site-logos img {
        height: 62px;
        max-width: calc(50% - 10px);
    }

    .site-logos .site-logo-wide {
        height: 56px;
        max-width: 100%;
    }

    .about-figure,
    .about-figure--portrait {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .about-founder .about-figure,
    .about-founder .about-figure--founder {
        margin: 0;
    }

    .about-founder__inner {
        gap: 16px;
    }

    .about-figure__open-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .map-section {
        margin: 20px -10px;
        padding: 15px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    #map {
        border-radius: 0;
        width: 100% !important;
        max-width: 100vw;
    }
    
    .map-label {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 20px;
        padding-bottom: 10px;
    }
    
    .sidebar {
        width: 250px;
        left: -250px;
    }
    
    .column a {
        font-size: 15px;
        padding: 15px 20px;
    }
    
    .street-content .content-block {
        padding: 20px;
        margin: 15px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .street-header {
        margin: 15px -10px 20px;
        padding: 20px;
        border-radius: 0;
        border-right: none;
    }
    
    .footer-info {
        margin: 30px -10px 0;
        padding: 20px 10px;
        border-radius: 0;
    }

    body.page-map-view .category-blocks {
        margin: 30px -10px 0;
        padding: 20px 10px;
        border-radius: 0;
    }
}

.street-meta {
    margin-top: 8px;
    color: #4A4A4A;
}

.street-credit {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #DFE6EA;
}

.street-credit__block + .street-credit__block {
    margin-top: 12px;
}

.street-credit__student,
.street-credit__school {
    margin: 0;
    color: #355978;
    font-size: 0.95rem;
    line-height: 1.55;
}

.street-credit__school {
    margin-top: 4px;
    color: #5A6B7A;
}

.street-credit strong {
    color: #1A2B3C;
    font-weight: 600;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #355978;
    font-size: 15px;
    font-weight: 600;
}

.breadcrumbs a {
    color: #003D7A;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #355978;
}

.category-title-link {
    color: #003D7A;
    text-decoration: none;
}

.category-title-link:hover {
    text-decoration: underline;
}

.category-page-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 18px;
}

.category-page-list li a {
    display: block;
    padding: 10px 12px;
    border-radius: 3px;
    background: #F7F9FA;
    color: #003D7A;
    text-decoration: none;
}

.category-page-list li a.street-matched {
    background: #f1f8f1;
}

.category-page-list li a:hover {
    background: #E8EEF2;
}

.category-page-list li a.street-matched:hover {
    background: #e8f3e8;
}

@media (max-width: 768px) {
    .breadcrumbs {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 14px;
    }

    .category-page-list {
        grid-template-columns: 1fr;
    }
}
.map-filters {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #DFE6EA;
    border-radius: 3px;
    background: #F7F9FA;
}

.map-filters-title {
    margin-bottom: 10px;
    font-weight: 600;
    color: #1A1A1A;
}

.map-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #DFE6EA;
    border-radius: 3px;
    background: #fff;
    color: #003D7A;
    font-size: 14px;
}

.map-filter-all {
    font-weight: 600;
}

.map-filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 768px) {
    .map-filter-item {
        width: 100%;
        justify-content: flex-start;
    }
}
.street-source {
    margin-top: 16px;
    color: #6A6A6A;
    font-size: 13px;
    font-style: italic;
    border-top: 1px solid #E4E4E4;
    padding-top: 10px;
}
.street-gallery-title {
    margin-top: 18px;
    margin-bottom: 10px;
    color: #003D7A;
    font-size: 18px;
}

.street-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.street-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #DFE6EA;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    background: #fff;
}

@media (max-width: 768px) {
    .street-gallery {
        grid-template-columns: 1fr;
    }
}

.street-videos {
    margin-top: 20px;
}

.street-videos h2 {
    margin-bottom: 8px;
}

.street-videos-meta {
    margin-bottom: 14px;
    color: #4A4A4A;
}

.street-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.street-video-card {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #F7F9FA;
    border: 1px solid #DFE6EA;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.street-video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .street-videos-grid {
        grid-template-columns: 1fr;
    }
}
