@font-face {
    font-family: "Noto Sans Georgian";
    src: url("../fonts/NotoSansGeorgian-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    font-display: swap;
}

:root {
    --bg: #f5f7f8;
    --panel: #ffffff;
    --ink: #172b35;
    --muted: #586b75;
    --line: #dfe6ea;
    --accent: #0f807c;
    --accent-dark: #0a625f;
    --accent-soft: #e7f4f3;
    --sponsor: #c3943d;
    --sponsor-soft: #fff6e4;
    --shadow: 0 10px 30px rgba(23, 43, 53, 0.14);
    --soft-shadow: 0 16px 38px rgba(23, 43, 53, 0.12);
    --header-height: 78px;
    --mobile-ad-space: 0px;
    --radius: 12px;
    --font-main: "Noto Sans Georgian", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
    min-width: 320px;
    margin: 0;
}

body {
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea {
    font-family: var(--font-main);
    font-size: inherit;
    line-height: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(15, 128, 124, 0.24);
    outline-offset: 2px;
}

svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.ui-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 800;
}

.home-body .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 900;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(207, 220, 224, 0.72);
    box-shadow: 0 12px 26px rgba(23, 43, 53, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: block;
    flex: 0 0 auto;
}

.brand-logo {
    width: 200px;
    height: auto;
    display: block;
}

.brand strong,
.brand small { display: block; }

.brand strong { font-weight: 600; }

.brand small {
    color: var(--muted);
    margin-top: 1px;
    font-size: 13px;
}

.main-nav { display: flex; gap: 8px; }

.header-links {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #213c4d;
    font-size: 14px;
    font-weight: 500;
}

.header-links span {
    width: 1px;
    height: 28px;
    background: rgba(151, 169, 179, 0.62);
}

.header-links a:hover { color: var(--accent-dark); }

.main-nav a,
.view-switch button,
.text-button,
.primary-link {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover,
.view-switch button:hover,
.text-button:hover,
.primary-link:hover { border-color: var(--accent); }

.view-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(207, 220, 224, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(23, 43, 53, 0.05);
}

.home-body .view-switch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.view-switch button {
    height: 36px;
    min-width: 122px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-color: transparent;
    border-radius: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.view-switch a {
    height: 36px;
    min-width: 122px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.view-switch svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.view-switch a:first-child { border-radius: 10px 0 0 10px; }
.view-switch a:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.view-switch a:hover { color: var(--accent-dark); border-color: var(--accent); }

.view-switch button:first-child { border-radius: 10px 0 0 10px; }
.view-switch button:last-child { border-left: 0; border-radius: 0 10px 10px 0; }

.view-switch button.is-active,
.view-switch a.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.map-screen {
    display: none;
    position: relative;
    height: 100dvh;
    min-height: 460px;
    overflow: hidden;
}

@supports not (height: 100dvh) {
    .map-screen { height: 100vh; }
}

.map-screen.is-active,
.projects-screen.is-active { display: block; }

body:has(.map-screen.is-active) { overflow: hidden; }

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #dbe7e6;
}

#map .leaflet-tile-pane img {
    filter: saturate(0.74) brightness(1.08) contrast(0.86);
}

.leaflet-control-zoom {
    border: 0 !important;
    box-shadow: var(--shadow);
}

.leaflet-right .leaflet-control { margin-right: 16px; }
.leaflet-top .leaflet-control { margin-top: calc(var(--header-height) + 18px); }

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

.leaflet-control-attribution {
    color: var(--muted);
    font-size: 11px;
}

.leaflet-container,
.leaflet-control,
.leaflet-popup-content {
    font-family: var(--font-main);
}

.map-panel {
    position: absolute;
    top: calc(var(--header-height) + 18px);
    left: 24px;
    z-index: 540;
    width: min(306px, calc(100vw - 32px));
    max-height: calc(100% - var(--header-height) - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(207, 220, 224, 0.74);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

.map-panel.is-collapsed { display: none; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.panel-head h1,
.catalog-toolbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.catalog-toolbar p,
.address {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.icon-button,
.panel-open,
.fit-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.icon-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    box-shadow: none;
}

.panel-open {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 18px);
    left: 24px;
    z-index: 510;
    max-width: min(230px, calc(100vw - 148px));
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
}

.clear-company-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid rgba(207, 72, 72, 0.34);
    border-radius: 10px;
    background: #fff5f4;
    color: #b3261e;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 500;
}

.clear-company-button[hidden] {
    display: none !important;
}

.clear-company-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.map-clear-company-button {
    position: absolute;
    top: calc(var(--header-height) + 64px);
    right: 70px;
    z-index: 510;
    padding: 8px 12px;
}

.panel-open span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-open.is-visible { display: inline-flex; }

.fit-map-button {
    position: absolute;
    top: calc(var(--header-height) + 18px);
    right: 70px;
    z-index: 510;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
}

.company-list {
    display: grid;
    gap: 4px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 190, 189, 0.72) transparent;
}

.company-list::-webkit-scrollbar { width: 4px; }
.company-list::-webkit-scrollbar-track { background: transparent; }
.company-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(151, 190, 189, 0.72);
}

.company-item {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 7px 8px;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.company-item:hover { background: #f4f8f8; }

.company-item.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 500;
}

.company-item > span:not(.company-logo) {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    max-height: 2.7em;
}

.company-item[data-company-id=""] {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 11px;
}

.company-logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15, 128, 124, 0.09);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-item strong {
    min-width: 28px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #dcefed;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.text-button {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 8px;
    padding: 9px 10px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 500;
}

.panel-ad {
    flex: 0 0 auto;
    display: block;
    margin-top: 10px;
    color: inherit;
}

.panel-ad-collapsed {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 68px);
    left: 24px;
    z-index: 505;
    width: 280px;
    margin-top: 0;
    padding: 9px;
    border: 1px solid rgba(207, 220, 224, 0.74);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

.panel-open.is-visible + .panel-ad-collapsed { display: block; }

.panel-ad-label {
    display: inline-flex;
    margin: 0 0 6px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #8c651b;
    background: rgba(195, 148, 61, 0.2);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.panel-ad-image {
    width: 100%;
    aspect-ratio: 14 / 11;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(23, 43, 53, 0.08);
}

.mobile-map-ad {
    display: none;
}

.mobile-map-ad-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(23, 43, 53, 0.14);
}

.map-empty {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 520;
    transform: translateX(-50%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    box-shadow: var(--shadow);
    font-size: 14px;
}

.project-marker {
    position: relative;
    width: 340px;
    pointer-events: auto;
}

.project-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.project-marker::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -23px;
    width: 20px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid #fff;
    box-shadow: 0 7px 16px rgba(23, 43, 53, 0.28);
}

.map-project-card {
    position: relative;
    z-index: 1;
    width: 340px;
    min-height: 94px;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 43, 53, 0.16);
    color: var(--ink);
}

.project-marker.is-sponsored .map-project-card {
    border-color: rgba(195, 148, 61, 0.72);
    background: linear-gradient(0deg, var(--sponsor-soft), #fff 46%);
}

.map-project-card img {
    width: 80px;
    height: 68px;
    min-width: 0;
    max-width: 80px;
    border-radius: 9px;
    object-fit: cover;
    background: #e8efed;
}

.map-card-text {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
    margin-left: 25px;
}

.map-card-price {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: keep-all;
    font-variant-numeric: tabular-nums;
}

.map-card-price span {
    white-space: nowrap;
}

.map-card-address {
    color: var(--muted);
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    gap: 5px;
    overflow: hidden;
    padding-right: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.map-card-address svg {
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: var(--accent);
}

.map-card-address span {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.map-card-sponsor {
    justify-self: start;
    padding: 1px 6px;
    border-radius: 999px;
    color: #8c651b;
    background: rgba(195, 148, 61, 0.16);
    font-size: 10px;
    font-weight: 600;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: rgba(15, 128, 124, 0.18) !important; }

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    width: 42px !important;
    height: 42px !important;
    margin-left: 4px !important;
    margin-top: 4px !important;
    display: grid;
    place-items: center;
    background: var(--accent) !important;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums;
}

.same-place-list {
    width: 250px;
    display: grid;
    gap: 8px;
}

.same-place-list h3 {
    margin: 0 0 2px;
    font-size: 15px;
}

.same-place-list a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 8px;
    color: var(--ink);
}

.same-place-list img {
    width: 54px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.same-place-list strong,
.same-place-list small { display: block; }

.same-place-list strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}

.same-place-list small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.leaflet-div-icon {
    border: 0;
    background: transparent;
}

.projects-screen {
    display: none;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 34px) 24px 34px;
    background:
        radial-gradient(circle at 82% 10%, rgba(15, 128, 124, 0.07), transparent 34%),
        linear-gradient(180deg, #f7fafb 0%, #eef4f5 100%);
}

.projects-layout {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(270px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.projects-sidebar {
    display: grid;
    gap: 20px;
}

.info-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 42px 20px;
}

.info-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.info-panel h1 {
    margin: 0 0 14px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.catalog-toolbar h1 {
    color: var(--ink);
    font-size: 30px;
    line-height: 1.2;
}

.catalog-toolbar p {
    color: #617587;
    font-size: 15px;
}

.filters {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 38px rgba(23, 43, 53, 0.08);
}

.filters-head {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
}

.filters-head svg,
.filter-toggle svg {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filters-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.price-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
}

.filter-submit {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 20px rgba(15, 128, 124, 0.18);
}

.filter-submit:hover {
    background: var(--accent-dark);
}

.filter-clear-all {
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.filter-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.filter-status.is-error {
    color: #b3261e;
}

.filter-toggle {
    display: none;
}

.projects-ad {
    display: block;
    color: inherit;
}

.projects-ad .panel-ad-label {
    margin-left: 2px;
}

.projects-ad-mobile {
    display: none;
}

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

@media (min-width: 1600px) {
    .project-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.project-card {
    display: grid;
    grid-template-rows: 205px 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(207, 220, 224, 0.9);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 43, 53, 0.08);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(23, 43, 53, 0.12);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #d9e3df;
}

.project-card-body {
    display: grid;
    grid-template-rows: auto auto minmax(40px, auto) auto 1fr;
    gap: 10px;
    padding: 16px 18px 18px;
}

.project-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.project-card-company {
    color: #617587;
}

.project-card-address {
    min-width: 0;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.project-card-address svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    fill: var(--accent);
}

.project-card-address span {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.project-card-link {
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 600;
}

.vip-label {
    justify-self: start;
    margin-top: -46px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #8a5a17;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(23, 43, 53, 0.12);
}

.projects-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 34px 18px;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow);
}

.projects-empty[hidden] {
    display: none;
}

.projects-empty strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
}

.detail-page { padding: 26px; }

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent-dark);
    font-weight: 600;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
}

.project-detail,
.company-card,
.not-found {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.detail-hero {
    width: 100%;
    height: min(420px, 45vw);
    min-height: 260px;
    object-fit: cover;
}

.detail-content { padding: 22px; }

.detail-content h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-weight: 600;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.facts span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faf9;
    font-variant-numeric: tabular-nums;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

.preview-note {
    display: inline-flex;
    margin: 10px 0 0;
    padding: 7px 10px;
    border-radius: 10px;
    color: #8a5a17;
    background: rgba(195, 148, 61, 0.14);
    font-weight: 600;
    line-height: 1.45;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.photo-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.meta-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.meta-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.meta-list dd {
    margin: 4px 0 0;
    font-weight: 600;
}

.detail-map-wrap,
#detailMap { height: 360px; }

.company-card {
    padding: 18px;
    align-self: start;
}

.company-card > img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}

.company-card h2 {
    margin: 12px 0;
    font-size: 20px;
}

.company-card p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.company-card > a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: 600;
}

.company-card h3 { margin: 22px 0 12px; }

.mini-project {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.mini-project img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.mini-project small,
.mini-project strong { display: block; }

.mini-project small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    margin-top: 3px;
}

.project-detail-body {
    min-height: 100vh;
    background: #eef2f4;
}

.project-detail-page {
    width: 100%;
    padding: 18px 30px 32px;
}

.project-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
}

.project-detail-main {
    min-width: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    grid-template-areas:
        "gallery info"
        "map map";
    align-items: start;
}

.project-gallery-card,
.project-info-card,
.project-map-card,
.project-company-sidebar {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 43, 53, 0.05);
}

.project-gallery-card {
    min-width: 0;
    padding: 14px;
    grid-area: gallery;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.gallery-tabs button {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #50667a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.gallery-tabs button {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 0 18px;
}

.gallery-tabs button.is-active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}

.gallery-stage {
    position: relative;
    min-width: 0;
    height: clamp(400px, 34vw, 560px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #18232a;
}

.gallery-stage > img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.gallery-stage > img[hidden],
.panorama-viewer[hidden],
.gallery-video[hidden],
.gallery-message[hidden],
.gallery-caption[hidden],
.gallery-nav[hidden],
.gallery-fullscreen[hidden],
.gallery-thumbs[hidden] {
    display: none !important;
}

.gallery-stage.is-cover-like > img {
    object-fit: contain;
}

.gallery-blur-bg {
    position: absolute;
    inset: -24px;
    z-index: 1;
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.48;
}

.gallery-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8, 17, 23, 0.34);
}

.panorama-viewer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.gallery-video {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100%;
}

.gallery-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: 8px;
}

.gallery-nav,
.gallery-fullscreen,
.lightbox-close {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(19, 40, 50, 0.78);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    z-index: 4;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-fullscreen {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
}

.gallery-caption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(19, 40, 50, 0.76);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.gallery-message {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
}

.gallery-thumbs {
    min-width: 0;
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 128, 124, 0.45) transparent;
}

.gallery-thumbs::-webkit-scrollbar { height: 5px; }
.gallery-thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(15, 128, 124, 0.45);
}

.gallery-thumb {
    width: 138px;
    height: 70px;
    flex: 0 0 138px;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 8px;
    background: #eef4f4;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.gallery-thumb.is-active {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-thumb span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(19, 40, 50, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.gallery-thumb-video {
    position: static !important;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #132832 !important;
}

.project-lower-grid {
    min-width: 0;
    display: contents;
}

.project-info-card,
.project-map-card {
    position: relative;
}

.project-info-card {
    grid-area: info;
}

.project-map-card {
    grid-area: map;
}

.map-fullscreen-button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    z-index: 420;
    box-shadow: 0 8px 18px rgba(23, 43, 53, 0.11);
}

.project-map-card.is-fullscreen-map {
    position: fixed;
    inset: 18px;
    z-index: 1250;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 18px;
}

.project-map-card.is-fullscreen-map #detailMap {
    height: 100%;
}

.project-map-card.is-fullscreen-map .map-fullscreen-button {
    top: 16px;
    right: 16px;
}

.project-info-card,
.project-map-card {
    min-width: 0;
    padding: 20px;
}

.project-info-card h1 {
    margin: 2px 0 8px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.22;
}

.project-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #587086;
    font-size: 15px;
}

.project-address .ui-icon {
    margin-top: 1px;
    color: var(--accent);
}

.project-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}

.project-fact-grid > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    min-height: 62px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.project-fact-grid > div > .ui-icon {
    width: 100%;
    height: 100%;
    padding: 15px;
    background: #e6f7f5;
    color: var(--accent);
}

.project-fact-grid span {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
}

.project-fact-grid small {
    color: var(--muted);
    font-size: 12px;
}

.project-fact-grid strong {
    min-width: 0;
    color: #30475c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.project-description {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.project-description h2,
.project-map-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
}

.project-description p {
    margin: 0 0 12px;
    color: #40576a;
    line-height: 1.65;
}

.project-meta-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.project-meta-list div,
.project-meta-list dt {
    min-width: 0;
}

.project-meta-list dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.project-meta-list dd {
    margin: 3px 0 0 26px;
    font-weight: 500;
}

.project-map-card #detailMap {
    width: 100%;
    height: 430px;
    overflow: hidden;
    border-radius: 8px;
}

.project-company-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    display: grid;
    gap: 9px;
    padding: 20px;
}

.project-company-logo-link {
    width: 100%;
    min-height: 142px;
    max-height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.project-company-logo-link img {
    width: 100%;
    height: 100%;
    max-height: 150px;
    display: block;
    object-fit: contain;
}

.project-company-logo-link span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 28px;
    font-weight: 600;
}

.project-company-sidebar h2 {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.project-company-sidebar h2 a {
    color: var(--ink);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 19, 28, 0.88);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox img {
    max-width: min(100%, 1280px);
    max-height: calc(100dvh - 110px);
    object-fit: contain;
}

.lightbox-counter {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 14px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.not-found { padding: 36px; }

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

body.modal-open,
body.mobile-menu-open { overflow: hidden; }

.header-links button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.header-links button:hover { color: var(--accent-dark); }

.header-links .is-active-link {
    color: var(--accent-dark);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--accent-dark);
    font-weight: 500;
}

.companies-page,
.company-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px;
}

.companies-heading {
    margin-bottom: 20px;
}

.companies-heading h1,
.company-profile h1 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) and (min-width: 861px) {
    .companies-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .companies-modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-detail-shell {
        grid-template-columns: 1fr;
    }

    .project-company-sidebar {
        position: static;
    }
}

.company-tile {
    min-width: 0;
    min-height: 164px;
    display: grid;
    grid-template-rows: 92px auto;
    gap: 12px;
    align-items: center;
    justify-items: center;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 10px 24px rgba(23, 43, 53, 0.06);
}

.company-tile:hover {
    border-color: rgba(15, 128, 124, 0.42);
    box-shadow: 0 14px 30px rgba(23, 43, 53, 0.1);
}

.company-tile-logo,
.company-profile-logo {
    display: grid;
    place-items: center;
    border: 1px solid rgba(207, 220, 224, 0.82);
    border-radius: 10px;
    background: rgba(15, 128, 124, 0.07);
    color: var(--accent-dark);
    font-weight: 600;
}

.company-tile-logo {
    width: 92px;
    height: 92px;
    padding: 12px;
    font-size: 22px;
}

.company-profile-logo {
    width: 96px;
    height: 96px;
    padding: 12px;
    font-size: 24px;
}

.company-tile-logo img,
.company-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-tile strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.company-profile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 43, 53, 0.06);
}

.company-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.company-contact-list a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--accent-dark);
    background: #f8faf9;
    font-size: 13px;
    font-weight: 500;
}

.company-section {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.company-section h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

.company-section p {
    margin: 0;
    color: var(--muted);
}

.empty-text {
    color: var(--muted);
}

.company-detail-body {
    background: #f5f7f8;
}

.company-detail-page {
    width: 100%;
    padding: 26px clamp(24px, 2.2vw, 32px) 36px;
}

.company-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 18px;
    align-items: start;
}

.company-left-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.company-identity-card,
.company-about-card,
.company-projects-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 43, 53, 0.05);
}

.company-identity-card {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
    overflow: hidden;
}

.company-identity-card.without-contacts {
    grid-template-columns: 1fr;
}

.company-identity-main {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 20px;
    min-height: 330px;
    padding: 28px;
    text-align: center;
}

.company-large-logo {
    width: min(230px, 72%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--accent-dark);
    font-size: 56px;
    font-weight: 600;
}

.company-large-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-identity-main h1 {
    margin: 0;
    color: #102d48;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.18;
}

.company-contact-card {
    min-width: 0;
    padding: 34px 28px;
    border-left: 1px solid var(--line);
}

.company-contact-card h2,
.company-about-card h2,
.company-projects-card h2 {
    margin: 0 0 18px;
    color: #102d48;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.company-contact-lines {
    display: grid;
    gap: 13px;
}

.company-contact-lines > a,
.company-contact-lines > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #40576a;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.company-contact-lines a:hover {
    color: var(--accent-dark);
}

.company-contact-lines > a > span,
.company-contact-lines > span > i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #657789;
    font-style: normal;
    text-align: center;
    white-space: nowrap;
}

.company-contact-icon .ui-icon {
    width: 17px;
    height: 17px;
}

.company-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.company-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.company-socials .social-link-facebook { background: #1877f2; }
.company-socials .social-link-instagram { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 74%, #515bd4 100%); }
.company-socials .social-link-linkedin { background: #0a66c2; }
.company-socials .social-link-youtube { background: #ff0000; }
.company-socials .social-link-tiktok { background: #111827; }
.company-socials .social-link-whatsapp { background: #25d366; }
.company-socials .social-link-telegram { background: #229ed9; }
.company-socials .social-link-viber { background: #7360f2; }

.company-socials a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(23, 43, 53, 0.14);
}

.company-socials a .ui-icon {
    width: 17px;
    height: 17px;
}

.company-socials a .ui-icon-facebook,
.company-socials a .ui-icon-tiktok {
    fill: currentColor;
    stroke: none;
}

.company-about-card {
    padding: 28px;
}

.company-about-text {
    color: #40576a;
    font-size: 16px;
    line-height: 1.75;
}

.company-about-text p {
    margin: 0 0 16px;
}

.company-about-text p:last-child {
    margin-bottom: 0;
}

.company-projects-card {
    padding: 28px;
}

.company-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 240px));
    gap: 16px;
    justify-content: start;
}

.company-project-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

.company-project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    display: block;
    object-fit: cover;
    background: #d9e3df;
}

.company-project-body {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(38px, auto) auto 1fr;
    gap: 10px;
    padding: 16px;
}

.company-project-body strong {
    color: #102d48;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.company-project-body small {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.company-project-body b {
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.company-project-link {
    align-self: end;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 600;
}

.simple-info-modal {
    display: block;
    padding: 34px;
}

.simple-info-modal .contact-methods {
    margin-bottom: 0;
}

.mobile-menu-button,
.mobile-menu-layer {
    display: none;
}

.mobile-menu-button {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 10px 22px rgba(23, 43, 53, 0.08);
    cursor: pointer;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 52px 22px 26px;
}

.modal-layer[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 43, 53, 0.48);
    backdrop-filter: blur(8px);
}

.site-modal {
    position: relative;
    z-index: 1;
    width: min(1060px, calc(100vw - 44px));
    max-height: calc(100dvh - 64px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(207, 220, 224, 0.86);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(23, 43, 53, 0.26);
    animation: modal-in 180ms ease-out both;
}

.site-modal[hidden] { display: none; }

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
}

.modal-close:hover { background: var(--accent-soft); color: var(--accent-dark); }

.modal-heading h2 {
    margin: 0;
    color: #102d48;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.16;
}

.modal-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.companies-modal {
    width: min(1320px, calc(100vw - 64px));
    max-height: min(90dvh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.companies-modal-hero {
    position: relative;
    flex: 0 0 auto;
    min-height: 168px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 44px 58px 34px;
}

.companies-modal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0.42) 64%, rgba(255, 255, 255, 0.05) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 56%, #fff 100%);
}

.companies-modal-hero .modal-heading {
    position: relative;
    z-index: 1;
}

.companies-modal-hero img {
    position: absolute;
    inset: 0 0 auto auto;
    width: min(720px, 64%);
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.companies-modal-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 58px 36px;
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 190, 189, 0.72) transparent;
    -webkit-overflow-scrolling: touch;
}

.companies-modal-scroll::-webkit-scrollbar { width: 4px; }
.companies-modal-scroll::-webkit-scrollbar-track { background: transparent; }
.companies-modal-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(151, 190, 189, 0.72);
}

.companies-modal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.company-modal-tile {
    min-width: 0;
    height: 172px;
    display: grid;
    grid-template-rows: 92px 42px;
    gap: 12px;
    align-content: center;
    justify-items: center;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #102d48;
    text-align: center;
    box-shadow: 0 10px 22px rgba(23, 43, 53, 0.05);
}

.company-modal-tile:hover {
    border-color: rgba(15, 128, 124, 0.66);
    color: var(--accent-dark);
    box-shadow: 0 14px 32px rgba(23, 43, 53, 0.1);
}

.company-modal-logo {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    align-self: end;
    border: 1px solid #cfe0e3;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef8f7, #e6f2f2);
    color: var(--accent-dark);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    padding: 10px;
}

.company-modal-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.company-modal-tile strong {
    min-width: 0;
    max-width: 100%;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.companies-modal-strip {
    flex: 0 0 auto;
    padding: 18px 28px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #d9f6f4, #e9fbf8);
    color: var(--accent-dark);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.contact-modal {
    display: grid;
    grid-template-columns: 43% 57%;
    padding: 0;
}

.contact-visual {
    position: relative;
    min-height: 548px;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.contact-visual img,
.about-photos img,
.ad-hero img,
.ad-mock img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-visual::after,
.ad-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 128, 124, 0.02) 32%, rgba(15, 128, 124, 0.82) 100%);
}

.contact-visual div {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 32px;
    z-index: 1;
    color: #fff;
}

.contact-visual strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
}

.contact-visual span {
    width: 48px;
    height: 3px;
    display: block;
    margin-top: 11px;
    border-radius: 999px;
    background: #fff;
}

.contact-content {
    padding: 58px 42px 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 18px;
}

.contact-method {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.modal-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #dff4f2;
    color: var(--accent);
}

.modal-icon svg {
    width: 25px;
    height: 25px;
}

.contact-method strong,
.contact-method small,
.contact-method a {
    display: block;
    min-width: 0;
}

.contact-method strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.contact-method small,
.contact-method a {
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
}

.contact-form input {
    min-height: 42px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 102px;
    resize: vertical;
    padding: 12px 14px;
}

.form-status {
    min-height: 0;
    margin: 0;
    color: #8a5a17;
    font-size: 13px;
    line-height: 1.45;
}

.form-status.is-error { color: #a84032; }

.modal-primary {
    min-height: 45px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

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

.about-modal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 36px;
    padding: 36px 30px 0;
}

.about-copy { padding: 10px 0 0; }

.modal-lead {
    max-width: 460px;
    margin: 26px 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.62;
}

.about-steps {
    display: grid;
    gap: 24px;
}

.about-steps article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.about-steps article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 128, 124, 0.24);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-steps h3,
.ad-options h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.about-steps p,
.ad-options p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.about-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-height: 470px;
    padding-top: 2px;
}

.about-photos img {
    border-radius: 8px;
    background: #d9e3df;
}

.modal-strip {
    grid-column: 1 / -1;
    margin: 24px -30px 0;
    padding: 15px 26px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #d9f6f4, #e9fbf8);
    color: var(--accent-dark);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.advertise-modal {
    padding: 30px 30px 0;
}

.ad-modal-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 28px;
    align-items: start;
    margin-bottom: 22px;
}

.ad-hero {
    position: relative;
    height: 122px;
    overflow: hidden;
    border-radius: 8px;
}

.ad-hero::after {
    background: linear-gradient(90deg, rgba(15, 128, 124, 0.08), rgba(10, 98, 95, 0.88));
}

.ad-hero strong {
    position: absolute;
    right: 28px;
    top: 50%;
    z-index: 1;
    width: 210px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

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

.ad-options article {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 124px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.ad-mock {
    position: relative;
    height: 94px;
    overflow: hidden;
    border: 1px solid #cfe0e3;
    border-radius: 8px;
    background: #f7faf9;
}

.company-mock {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 14px;
}

.company-mock span {
    height: 10px;
    border-radius: 999px;
    background: #d9e5e6;
}

.company-mock span:first-child { width: 76%; }
.company-mock span:nth-child(2) { width: 56%; }

.company-mock strong {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
}

.map-mock {
    background: linear-gradient(135deg, #d8eeee, #f7faf9);
}

.map-mock i {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
}

.map-mock i:first-child { left: 30px; top: 25px; }
.map-mock i:nth-child(2) { left: 72px; top: 55px; }
.map-mock i:nth-child(3) { right: 36px; top: 30px; }

.map-mock span {
    position: absolute;
    left: 62px;
    top: 32px;
    width: 116px;
    height: 42px;
    border: 2px solid var(--sponsor);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 18px rgba(23, 43, 53, 0.12);
}

.vip-mock img,
.banner-mock img {
    filter: saturate(0.98);
}

.vip-mock strong {
    position: absolute;
    right: 9px;
    top: 8px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #f0b744;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.banner-mock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 45, 72, 0.4), rgba(15, 128, 124, 0.82));
}

.banner-mock span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.ad-modal-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    margin: 26px -30px 0;
    padding: 22px 42px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #d9f6f4, #e9fbf8);
    color: var(--accent-dark);
}

.ad-modal-bottom strong {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 860px) {
    :root {
        --header-height: 138px;
        --mobile-ad-space: 0px;
    }

    .home-body.has-mobile-map-ad {
        --mobile-ad-space: 0px;
    }

    .site-header {
        height: 70px;
        padding: 0 14px;
    }

    .home-body .site-header {
        height: var(--header-height);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 54px 46px;
        align-items: center;
        padding-top: 13px;
    }

    .company-detail-body .site-header,
    .project-detail-body .site-header {
        height: 138px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 54px 46px;
        align-items: center;
        padding-top: 13px;
    }

    .home-body .site-header .brand,
    .home-body .mobile-menu-button,
    .company-detail-body .site-header .brand,
    .company-detail-body .mobile-menu-button,
    .project-detail-body .site-header .brand,
    .project-detail-body .mobile-menu-button {
        align-self: center;
        margin-top: 0;
    }

    .brand { gap: 10px; }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-logo {
        width: 150px;
    }

    .brand small,
    .main-nav,
    .header-links { display: none; }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .mobile-menu-layer {
        position: fixed;
        inset: 0;
        z-index: 1800;
        display: block;
        overflow: hidden;
    }

    .mobile-menu-layer[hidden] { display: none; }

    .mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(23, 43, 53, 0.38);
        backdrop-filter: blur(4px);
        cursor: pointer;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(310px, calc(100vw - 36px));
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 26px;
        overflow-y: auto;
        padding: 76px 18px 22px;
        background: rgba(255, 255, 255, 0.96);
        border-left: 1px solid rgba(207, 220, 224, 0.84);
        box-shadow: -18px 0 44px rgba(23, 43, 53, 0.2);
        transform: translateX(0);
        animation: mobile-menu-in 180ms ease-out both;
    }

    @keyframes mobile-menu-in {
        from { transform: translateX(22px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .mobile-menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
    }

    .mobile-menu-nav {
        display: grid;
        gap: 10px;
    }

    .mobile-menu-nav button,
    .mobile-menu-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 0 14px;
        background: #fff;
        color: var(--ink);
        text-align: left;
        cursor: pointer;
        font-size: 15px;
        font-weight: 500;
    }

    .mobile-menu-nav button:hover,
    .mobile-menu-nav a:hover {
        border-color: rgba(15, 128, 124, 0.42);
        color: var(--accent-dark);
        background: #f4fafa;
    }

    .mobile-menu-contacts {
        margin-top: auto;
        display: grid;
        gap: 10px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }

    .mobile-menu-contacts h2 {
        margin: 0 0 2px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 500;
    }

    .mobile-contact-link {
        min-width: 0;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
    }

    .mobile-contact-link > span {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: var(--accent-soft);
        color: var(--accent);
    }

    .mobile-contact-link svg {
        width: 20px;
        height: 20px;
    }

    .mobile-contact-link a,
    .mobile-contact-link small {
        min-width: 0;
        overflow-wrap: anywhere;
        color: var(--ink);
        font-size: 13px;
        font-weight: 500;
    }

    .brand strong { font-size: 15px; }

    .home-body .view-switch {
        top: 76px;
        left: 4vw;
        right: 4vw;
        width: auto;
        max-width: none;
        transform: none;
        grid-column: 1 / -1;
    }

    .company-detail-body .view-switch,
    .project-detail-body .view-switch {
        grid-column: 1 / -1;
        justify-self: center;
        width: 92vw;
        max-width: none;
    }

    .view-switch button {
        min-width: 0;
        width: 50%;
        height: 46px;
        font-size: 14px;
    }

    .view-switch a {
        min-width: 0;
        width: 50%;
        height: 46px;
        font-size: 14px;
    }

    .map-screen {
        min-height: 420px;
        padding-bottom: 0;
    }

    #map { height: 100%; }

    .map-panel {
        display: none;
        top: calc(var(--header-height) + 10px);
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100% - var(--header-height) - 22px);
        min-height: 0;
        flex-direction: column;
        padding: 10px;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        z-index: 540;
    }

    .map-panel.is-open { display: flex; }

    .map-panel .company-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .map-panel .panel-ad {
        display: none;
    }

    .panel-open {
        display: inline-flex;
        top: calc(var(--header-height) + 10px);
        left: 12px;
    }

    .panel-open.is-hidden { display: none; }

    .panel-ad-collapsed {
        display: none !important;
    }

    .fit-map-button {
        top: calc(var(--header-height) + 10px);
        right: 12px;
        width: 42px;
        height: 42px;
        min-height: 42px;
        max-width: 42px;
        padding: 0;
        z-index: 505;
    }

    .fit-map-button span { display: none; }

    .map-clear-company-button {
        top: calc(var(--header-height) + 60px);
        right: 12px;
        width: 42px;
        height: 42px;
        min-height: 42px;
        max-width: 42px;
        padding: 0;
        z-index: 505;
    }

    .map-clear-company-button span {
        display: none;
    }

    .leaflet-control-zoom a {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
    }

    .leaflet-right .leaflet-control { margin-right: 12px; }
    .leaflet-top .leaflet-control { margin-top: calc(var(--header-height) + 62px); }

    .mobile-map-ad {
        position: absolute;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
        z-index: 520;
        width: min(calc(100vw - 16px), 480px);
        display: block;
        transform: translateX(-50%);
        padding: 0;
        border-radius: 10px;
        background: transparent;
    }

    .mobile-map-ad .panel-ad-label {
        position: absolute;
        top: -19px;
        left: 8px;
        margin: 0;
        font-size: 10px;
    }

    .leaflet-control-attribution {
        margin-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    @media (max-height: 560px) and (orientation: landscape) {
        :root {
            --header-height: 114px;
        }

        .site-header {
            height: 58px;
        }

        .home-body .site-header {
            padding-top: 8px;
            grid-template-rows: 46px 40px;
        }

        .company-detail-body .site-header,
        .project-detail-body .site-header {
            height: 114px;
            padding-top: 8px;
            grid-template-rows: 46px 40px;
        }

        .home-body .view-switch {
            top: 60px;
        }

        .view-switch button,
        .view-switch a {
            height: 40px;
        }

        .home-body.has-mobile-map-ad {
            --mobile-ad-space: 0px;
        }

        .mobile-map-ad {
            width: min(72vw, 430px);
            bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
        }
    }

    .project-marker,
    .map-project-card { width: min(248px, calc(100vw - 28px)); }

    .map-project-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
        min-height: 88px;
        padding: 9px;
    }

    .map-project-card img {
        width: 68px;
        height: 60px;
        max-width: 68px;
    }

    .map-card-price { font-size: 15px; }
    .map-card-address { font-size: 13px; }

    .projects-screen,
    .detail-page,
    .companies-page,
    .company-page { padding: 16px; }

    .projects-screen {
        padding: calc(var(--header-height) + 14px) 12px 24px;
    }

    .projects-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .projects-sidebar {
        gap: 10px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
        margin: 4px 0 14px;
    }

    .catalog-toolbar h1 {
        font-size: 26px;
    }

    .filter-toggle {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 14px;
        border: 1px solid rgba(207, 220, 224, 0.9);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--ink);
        cursor: pointer;
        box-shadow: var(--shadow);
        font-size: 16px;
        font-weight: 600;
    }

    .filter-toggle-title {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .filter-toggle-arrow {
        width: 18px !important;
        height: 18px !important;
        transition: transform 160ms ease;
    }

    .filter-toggle[aria-expanded="true"] .filter-toggle-arrow {
        transform: rotate(180deg);
    }

    .filter-active-count {
        min-width: 23px;
        height: 23px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    .filter-active-count[hidden] {
        display: none;
    }

    .filters {
        display: none;
        padding: 16px;
    }

    .filters.is-open {
        display: grid;
    }

    .filters-head {
        display: none;
    }

    .filters-clear-company-button {
        width: 100%;
        min-height: 44px;
    }

    .filters input,
    .filters select {
        font-size: 16px;
    }

    .projects-ad-desktop {
        display: none;
    }

    .projects-ad-mobile {
        display: block;
        width: 100%;
        margin: 2px 0 10px;
    }

    .projects-ad-mobile .mobile-map-ad-image {
        width: 100%;
        box-shadow: 0 10px 24px rgba(23, 43, 53, 0.12);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card {
        grid-template-columns: 1fr;
        grid-template-rows: 210px 1fr;
    }

    .detail-layout { grid-template-columns: 1fr; }
    .detail-content h1 { font-size: 24px; }
    .detail-hero { height: 260px; }
    .meta-list { grid-template-columns: 1fr; }

    .project-detail-page {
        padding: 16px 12px 28px;
    }

    .project-detail-shell,
    .project-lower-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "info"
            "map";
    }

    .project-lower-grid {
        display: contents;
    }

    .project-company-sidebar {
        position: static;
        order: 3;
    }

    .project-gallery-card {
        padding: 10px;
    }

    .gallery-tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .gallery-tabs button {
        flex: 0 0 auto;
        min-width: 154px;
    }

    .gallery-stage {
        height: 260px;
    }

    .gallery-stage::after,
    .gallery-blur-bg {
        display: none;
    }

    .gallery-stage > img,
    .gallery-stage.is-cover-like > img {
        object-fit: contain;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }

    .gallery-fullscreen {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .gallery-caption {
        bottom: 12px;
    }

    .gallery-thumbs {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 10px;
        padding: 0;
    }

    .gallery-thumb {
        width: 138px;
        height: 70px;
        flex-basis: 138px;
    }

    .project-info-card,
    .project-map-card,
    .project-company-sidebar {
        padding: 16px;
    }

    .project-info-card h1 {
        font-size: 24px;
    }

    .project-fact-grid {
        grid-template-columns: 1fr;
    }

    .project-map-card #detailMap {
        height: 310px;
    }

    .company-detail-page {
        padding: 18px 12px 28px;
    }

    .company-detail-layout,
    .company-identity-card {
        grid-template-columns: 1fr;
    }

    .company-identity-main {
        min-height: 250px;
        padding: 24px 18px;
    }

    .company-large-logo {
        width: min(190px, 66%);
    }

    .company-contact-card {
        padding: 22px 18px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .company-about-card,
    .company-projects-card {
        padding: 20px 16px;
    }

    .company-contact-card h2,
    .company-about-card h2,
    .company-projects-card h2 {
        font-size: 22px;
    }

    .company-project-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    }

    .companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .company-tile {
        min-height: 142px;
        grid-template-rows: 76px auto;
        padding: 14px 10px;
    }

    .company-tile-logo {
        width: 76px;
        height: 76px;
    }

    .company-profile {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .companies-heading h1,
    .company-profile h1 {
        font-size: 24px;
    }

    .modal-layer {
        align-items: stretch;
        padding: 10px;
    }

    .site-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    .companies-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .companies-modal-hero {
        min-height: 140px;
        padding: 30px 18px 24px;
    }

    .companies-modal-hero img {
        width: 78%;
        opacity: 0.82;
    }

    .companies-modal-scroll {
        padding: 0 14px 18px;
    }

    .companies-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .company-modal-tile {
        height: 142px;
        grid-template-rows: 72px 38px;
        gap: 10px;
        padding: 12px 8px;
    }

    .company-modal-logo {
        width: 68px;
        height: 68px;
        font-size: 21px;
        padding: 8px;
    }

    .company-modal-tile strong {
        font-size: 13px;
    }

    .companies-modal-strip {
        padding: 14px 18px;
        border-radius: 0 0 14px 14px;
        font-size: 13px;
    }

    .modal-heading h2 {
        font-size: 27px;
    }

    .modal-heading p,
    .modal-lead {
        font-size: 15px;
    }

    .contact-modal,
    .about-modal,
    .ad-modal-top,
    .ad-modal-bottom {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        min-height: 214px;
        border-radius: 14px 14px 0 0;
    }

    .contact-visual div {
        left: 22px;
        bottom: 22px;
    }

    .contact-content {
        padding: 24px 18px 18px;
    }

    .contact-methods,
    .ad-options {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .about-modal {
        gap: 22px;
        padding: 26px 18px 0;
    }

    .about-copy {
        padding-top: 0;
    }

    .modal-lead {
        margin: 20px 0;
    }

    .about-steps {
        gap: 18px;
    }

    .about-steps article {
        gap: 14px;
    }

    .about-photos {
        min-height: 320px;
        order: 2;
    }

    .modal-strip {
        order: 3;
        margin: 20px -18px 0;
        border-radius: 0 0 14px 14px;
    }

    .advertise-modal {
        padding: 26px 18px 0;
    }

    .ad-modal-top {
        gap: 18px;
    }

    .ad-hero {
        height: 112px;
    }

    .ad-hero strong {
        right: 18px;
        width: 180px;
        font-size: 13px;
    }

    .ad-options article {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 12px;
        min-height: 112px;
        padding: 12px;
    }

    .ad-mock {
        height: 82px;
    }

    .ad-modal-bottom {
        gap: 14px;
        margin: 20px -18px 0;
        padding: 18px;
        border-radius: 0 0 14px 14px;
    }

    .ad-modal-bottom strong {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .companies-modal-grid {
        gap: 8px;
    }

    .company-modal-tile {
        height: 136px;
        padding-inline: 6px;
    }

    .project-marker,
    .map-project-card { width: min(232px, calc(100vw - 24px)); }

    .map-project-card { grid-template-columns: 62px minmax(0, 1fr); }

    .map-project-card img {
        width: 62px;
        height: 56px;
        max-width: 62px;
    }

    .header-links {
        justify-content: flex-start;
    }

    .contact-method {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .modal-icon {
        width: 36px;
        height: 36px;
    }

    .ad-options article {
        grid-template-columns: 1fr;
    }

    .ad-mock {
        height: 92px;
    }
}
