body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf5 100%);
    color: #1f2937;
}

.page {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.panel {
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid #d4deea;
}

.panel h1 {
    margin: 0 0 12px;
    font-size: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    text-decoration: none;
}

.brand-logo {
    width: 77px;
    height: 77px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(15, 95, 194, 0.18);
}

.brand-text {
    color: #0f172a;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 14px;
}

.lang-switcher {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1;
}

.lang-link {
    display: inline-block;
    color: #334155;
    text-decoration: none;
}

.lang-link:hover {
    text-decoration: underline;
}

.lang-link.is-active {
    text-decoration: underline;
    font-weight: 600;
}

.lang-separator {
    margin: 0 4px;
    color: #64748b;
}

.hint {
    margin: 0 0 16px;
    line-height: 1.45;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    text-decoration: none;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.admin-btn--icon {
    width: 34px;
    height: 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-btn--polygons .icon-polygon {
    display: inline-flex;
    width: 12px;
    height: 12px;
}

.icon-polygon {
    background: #ffffff;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.route-info {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f3f8ff;
    border: 1px solid #c8d8f0;
    white-space: pre-line;
}

.control-point-label {
    font-size: 11px;
    font-weight: 600;
    color: #0b3d91;
    background: #ffffff;
    border: 1px solid #a7c1f3;
    border-radius: 4px;
    padding: 2px 4px;
}

.reset-btn {
    appearance: none;
    border: none;
    background: #0f5fc2;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.plan-form {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d7e1ef;
    display: grid;
    gap: 8px;
}

.plan-form h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.plan-form label {
    font-size: 13px;
    color: #334155;
}

.plan-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c8d8f0;
    border-radius: 6px;
    padding: 8px 10px;
}

.metrics-comparison {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
}

.metrics-comparison h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.metrics-table th,
.metrics-table td {
    border: 1px solid #dbe5f3;
    padding: 7px 9px;
    text-align: left;
}

.metrics-table thead th {
    background: #f4f8ff;
}

.is-hidden {
    display: none !important;
}

.map-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
}

#map {
    width: 100%;
    min-height: 60vh;
}

.results {
    background: #f8fbff;
    border-top: 1px solid #d4deea;
    padding: 16px;
}

.results h2 {
    margin: 0 0 12px;
}

.results-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.result-card {
    background: #fff;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    padding: 12px;
}

.result-card img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.result-card h3 {
    margin: 0 0 8px;
}

.result-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #334155;
}

.result-price {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.result-layers {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .panel {
        border-right: none;
        border-bottom: 1px solid #d4deea;
    }

    .map-wrap {
        min-height: 65vh;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}
