:root {
    --primary-color: #c8102e;
    --primary-dark: #a00d24;
    --secondary-color: #009639;
    --secondary-dark: #007a2f;
    --business-color: #1976d2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s, color 0.3s;
}

.nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary-color);
}

.lang-btn i:first-child {
    color: var(--primary-color);
}

.lang-btn i:last-child {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.3s;
}

.lang-dropdown:hover .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.lang-option:hover {
    background-color: var(--bg-color);
    border-left-color: var(--primary-color);
    color: var(--text-color);
}

.lang-option.active {
    background-color: #fef2f2;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.main {
    flex: 1;
    padding: 40px 0;
}

.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 30px;
    overflow: hidden;
    min-height: 300px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.85;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-location:hover {
    background: rgba(255,255,255,0.3);
}

.hero-location i {
    color: #fff;
}

.search-section {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.type-filter {
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.filter-tab:hover {
    border-color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.category-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 10px;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.business {
    background-color: #e3f2fd;
    color: var(--business-color);
}

.scenario-category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.breadcrumbs {
    margin-bottom: 25px;
    font-size: 0.9rem;
}

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

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

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.category-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-header-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-header-content h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.category-header-content p {
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.scenario-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.scenario-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.scenario-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.scenario-short {
    font-size: 0.9rem;
    color: var(--text-light);
}

.scenario-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: background-color 0.3s, color 0.3s;
}

.back-link a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.scenario-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.scenario-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.scenario-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.scenario-intro {
    font-size: 1.1rem;
    color: var(--text-light);
}

.info-block {
    margin-bottom: 30px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.info-header i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-header h2 {
    font-size: 1.2rem;
}

.documents-block .info-header i {
    background-color: #e3f2fd;
    color: #1976d2;
}

.where-block .info-header i {
    background-color: #e8f5e9;
    color: #388e3c;
}

.time-block .info-header i {
    background-color: #fff3e0;
    color: #f57c00;
}

.cost-block .info-header i {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tips-block .info-header i {
    background-color: #fce4ec;
    color: #c2185b;
}

.documents-list,
.where-list,
.tips-list {
    list-style: none;
}

.documents-list li,
.where-list li,
.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.documents-list li:last-child,
.where-list li:last-child,
.tips-list li:last-child {
    border-bottom: none;
}

.documents-list li i {
    color: #4caf50;
    margin-top: 3px;
}

.where-list li i {
    color: #2196f3;
    margin-top: 3px;
}

.tips-list li i {
    color: #ff9800;
    margin-top: 3px;
}

.time-text,
.cost-text {
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
}

.time-text {
    background-color: #fff8e1;
    border-color: #ff9800;
}

.cost-text {
    background-color: #f3e5f5;
    border-color: #7b1fa2;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-results p {
    color: var(--text-light);
}

.search-results {
    margin-bottom: 40px;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color 0.3s;
}

.error-btn:hover {
    background: var(--primary-dark);
}

.footer {
    background: var(--white);
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer .disclaimer {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        justify-content: center;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .category-header-content h1 {
        font-size: 1.5rem;
    }

    .scenario-card {
        padding: 15px 20px;
    }

    .scenario-detail {
        padding: 20px;
    }

    .scenario-header h1 {
        font-size: 1.4rem;
    }

    .info-header h2 {
        font-size: 1.1rem;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

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

    .error-page h1 {
        font-size: 3rem;
    }
}

/* Cost BV Display */
.cost-bv {
    padding: 5px 0;
}

.cost-amount {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.cost-amount strong {
    color: var(--primary-color);
    font-weight: 700;
}

.cost-amount.free {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.cost-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Document Checklist */
.documents-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
}

.document-item:hover {
    background: #e8f5e9;
}

.document-item input[type="checkbox"] {
    display: none;
}

.document-item .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.document-item input:checked + .checkmark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.document-item input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
}

.document-item input:checked ~ .doc-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.doc-text {
    flex: 1;
}

.documents-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.progress-indicator {
    margin-left: auto;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-indicator.complete {
    background: #e8f5e9;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Map Block */
.map-block {
    margin-top: 20px;
}

.map-block .info-header i {
    background-color: #e3f2fd;
    color: #1976d2;
}

.map-container {
    position: relative;
}

.yandex-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-sm);
    background: var(--bg-color);
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.map-controls select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.legend-item i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .documents-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .progress-indicator {
        margin-left: 0;
        text-align: center;
    }
    
    .yandex-map {
        height: 300px;
    }
    
    .map-controls {
        flex-direction: column;
    }
}

/* Map Placeholder */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.map-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.map-quick-links a {
    text-decoration: none;
}
