:root {
    --primary-color: #2563EB;
    --secondary-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f9f9f9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.98);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
}

h2 {
    color: var(--text-color);
    margin: 20px 0 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

h3 {
    color: var(--text-color);
    margin: 20px 0;
    font-weight: 500;
}

.maintenance-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.info-section, .map-section {
    flex: 1;
    min-width: 300px;
}

.contact-info, .work-hours, .scheme, .territory-scheme, .box {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

ul li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px;
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin-top: 15px;
}

.day {
    font-weight: 600;
}

.weekend {
    color: var(--secondary-color);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.scheme-content, .scheme-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.scheme-text, .scheme-instructions, .scheme-graphic {
    flex: 1;
    min-width: 250px;
}

.direction-step {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.direction-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    font-weight: bold;
}

.territory-scheme {
    background: #f0f8ff;
    border: 1px solid #c3e6ff;
}

.scheme-graphic {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.building {
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background: #ffebee;
    border-radius: 5px;
    font-weight: bold;
}

.road {
    height: 2px;
    background: #795548;
    margin: 15px 0;
    position: relative;
}

.road::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 8px;
    border-top: 2px dashed #795548;
    border-bottom: 2px dashed #795548;
}

.entrance, .parking, .entrance-note {
    text-align: center;
    padding: 10px;
    background: #dbeafe;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
}

.arrow {
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.map-link {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.map-link:hover {
    background: #1e40af;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.progress-container {
    height: 8px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 65%;
    background-color: var(--primary-color);
    border-radius: 4px;
    animation: progressAnimation 1.5s ease-in-out infinite;
    will-change: width;
}

@keyframes progressAnimation {
    0% { width: 65%; }
    50% { width: 75%; }
    100% { width: 65%; }
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.specialization {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 5px;
    font-weight: 500;
}

.popular-queries {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}
.popular-queries ul {
    list-style-position: inside;
    list-style-type: disc;
    padding-left: 20px;
}
.popular-queries ul li {
    padding: 5px 0;
    font-size: 1rem;
}

.counter {
    margin-top: 15px;
    font-weight: bold;
    color: var(--text-color);
}

/* Каталог */
.breadcrumbs {
    padding: 12px 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}
.breadcrumbs a {
    color: var(--primary-color);
}
.catalog-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin: 15px 0 0;
}
.catalog-subtitle a {
    font-weight: 600;
}
.catalog-nav {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.catalog-nav h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}
.catalog-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}
.catalog-nav ul li {
    padding: 0;
    font-size: 0.95rem;
}
.catalog-nav ul li a {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.catalog-nav ul li a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}
.catalog-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}
.catalog-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}
.table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead {
    background: var(--primary-color);
    color: white;
}
thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
tbody tr:hover {
    background: #f0f7ff;
}
tbody td {
    padding: 10px 15px;
    vertical-align: top;
}
tbody td:first-child {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}
.back-to-top {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary-color);
}
.catalog-contact {
    margin-top: 30px;
}
.catalog-contact .catalog-note {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}
.catalog-content {
    flex-direction: column;
}
@media (max-width: 768px) {
    .catalog-nav ul {
        flex-direction: column;
    }
    .catalog-nav ul li a {
        white-space: normal;
    }
    tbody td:first-child {
        white-space: normal;
        word-break: break-all;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .content {
        flex-direction: column;
        gap: 20px;
    }

    .map-container {
        height: 300px;
    }

    .scheme-content, .scheme-diagram {
        flex-direction: column;
    }

    .direction-step {
        align-items: flex-start;
    }

    .direction-number {
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    ul li {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .contact-info, .work-hours, .scheme, .territory-scheme {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-bar {
        animation: none;
    }

    .map-link:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    body {
        background: #fff;
    }

    .container {
        background: #fff;
        border: 2px solid #000;
    }
}
