/* «Ваш город в 3D»: общие части (подписи на сцене, блок потенциала) и блок #gorod3d на главной.
   Все правила начинаются с g3d- или g3-, чтобы не задеть стили лендинга и форму Битрикс24. */

/* --- подписи над городом --- */
.g3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.g3d-label { position: absolute; left: 0; top: 0; padding: 5px 11px 4px 9px; border-radius: 20px; background: rgba(12,25,48,.82); border: 1px solid rgba(255,255,255,.14);
    color: #fff; font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; white-space: nowrap; will-change: transform; transition: opacity .3s; }
.g3d-label i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: 0; }
.g3d-label.g3d-office { background: #F2B441; color: #14233D; border-color: transparent; font-size: 14px; padding: 7px 14px 6px; }
canvas.g3d-drag { cursor: grabbing !important; }

/* --- блок «Потенциал партнёра»; цвета задаёт контейнер через переменные --- */
.g3d-pot { --g3d-text: #14233D; --g3d-muted: #5a6880; --g3d-track: #E0EDFD; --g3d-bar: linear-gradient(90deg, #2f73c0, #5b8fe0); --g3d-accent: #093573; color: var(--g3d-text); }
.g3d-pot-label { margin: 0 0 4px; color: var(--g3d-muted); font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.g3d-pot-value { margin: 0; color: var(--g3d-accent); font: 38px/1.05 "LetoSans-Bold", Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.g3d-pot-sub { margin: 4px 0 16px; color: var(--g3d-muted); font-size: 15px; }
.g3d-pot-mixtitle { margin: 0 0 8px; font: 15px/1.3 "LetoSans-Bold", Arial, sans-serif; }
.g3d-mix { padding: 6px 0 7px; }
.g3d-mix-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; line-height: 1.25; }
.g3d-mix-head span { font-family: "LetoSans-Bold", Arial, sans-serif; }
.g3d-mix-bar { height: 7px; margin: 5px 0 4px; border-radius: 4px; background: var(--g3d-track); overflow: hidden; }
.g3d-mix-bar i { display: block; height: 100%; border-radius: 4px; background: var(--g3d-bar); }
.g3d-mix-who { margin: 0; color: var(--g3d-muted); font-size: 13px; line-height: 1.35; }
.g3d-pot-note { margin: 12px 0 0; color: var(--g3d-muted); font-size: 12px; line-height: 1.4; }
.g3d-pot-why { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.g3d-pot-link { color: inherit; text-decoration: underline; }

/* --- выбор города: поле с выпадающим списком всех городов (главная и /gorod/) --- */
.g3d-picker { position: relative; }
.g3d-toggle { position: absolute; right: 7px; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239fc2ef' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7 5 5 5-5'/%3E%3C/svg%3E") 50% 50% no-repeat; transition: transform .2s; }
.g3d-toggle:hover { background-color: rgba(255,255,255,.1); }
.g3d-picker.is-open .g3d-toggle { transform: rotate(180deg); }
.g3d-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; max-height: min(440px, 64vh); overflow: hidden;
    border-radius: 14px; background: #fff; color: #1b2a44; box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: left; }
.g3d-drop[hidden] { display: none; }
.g3d-tabs { display: flex; flex-shrink: 0; gap: 6px; padding: 10px 10px 8px; border-bottom: 1px solid #E6ECF5; overflow-x: auto; scrollbar-width: none; }
.g3d-tabs button { flex-shrink: 0; margin: 0; padding: 6px 12px 5px; border: 1px solid #D5DEEA; border-radius: 30px; background: #fff; color: #33435e; font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.g3d-tabs button b { margin-left: 2px; color: #8a94a6; font-weight: normal; }
.g3d-tabs button:hover { border-color: #9fb0c8; }
.g3d-tabs button[aria-pressed="true"] { border-color: #093573; background: #093573; color: #fff; }
.g3d-tabs button[aria-pressed="true"] b { color: #9fc2ef; }
.g3d-list { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 6px 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.g3d-list li { margin: 0; }
.g3d-list li[role="option"] { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 16px; line-height: 1.25; cursor: pointer; }
.g3d-list li[role="option"][aria-selected="true"], .g3d-list li[role="option"]:hover { background: #E0EDFD; }
.g3d-list .is-current { font-family: "LetoSans-Bold", Arial, sans-serif; }
.g3d-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #1f9d63; }
.g3d-dot.busy { background: #8a94a6; }
.g3d-dot.center { background: #F2B441; }
.g3d-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g3d-name small { margin-left: 3px; color: #6b7891; font: 13px/1.2 "LetoSans", Arial, sans-serif; }
.g3d-name mark { padding: 0 1px; border-radius: 3px; background: #FFE3A3; color: inherit; }
.g3d-check { margin-left: 5px; color: #1f9d63; }
.g3d-tag { flex-shrink: 0; padding: 3px 8px 2px; border-radius: 20px; background: #EEF2F7; color: #5a6880; font: normal 12px/1.3 "LetoSans-Bold", Arial, sans-serif; }
.g3d-tag.is-page { background: #E2F4EA; color: #157a4b; }
.g3d-letter { position: sticky; top: 0; z-index: 1; padding: 9px 10px 3px; background: #fff; color: #8a94a6; font: 12px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .12em; }
.g3d-note, .g3d-none { padding: 10px; color: #5a6880; font-size: 14px; line-height: 1.4; }
.g3d-note { margin: 8px 0 2px; border-radius: 10px; background: #EFF8F3; color: #24573d; }
.g3d-none a { color: #2f73c0; text-decoration: underline; }
.g3d-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
    .g3d-name small { display: block; margin: 2px 0 0; }
    .g3d-tabs { gap: 5px; padding: 8px; }
    .g3d-tabs button { padding: 5px 10px 4px; font-size: 12px; }
    .g3d-tabs button b { display: none; }
}

/* --- «Ваш город уже готов»: мини-окно страницы города на сайте ГСГ --- */
.g3d-site { display: block; margin: 0 0 14px; overflow: hidden; border-radius: 12px; background: #fff; color: #14233D !important; text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s; }
.g3d-site:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,0,0,.34); }
.g3d-site-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #E6ECF4; color: #5a6880; font: 12px/1.2 "LetoSans", Arial, sans-serif; }
.g3d-site-dots { display: flex; flex-shrink: 0; gap: 4px; }
.g3d-site-dots i { width: 8px; height: 8px; border-radius: 50%; background: #C5CFDD; }
.g3d-site-url { flex: 1 1 auto; min-width: 0; padding: 4px 9px 3px; overflow: hidden; border-radius: 6px; background: #fff; text-overflow: ellipsis; white-space: nowrap; }
.g3d-site-go { flex-shrink: 0; color: #2f73c0; font-family: "LetoSans-Bold", Arial, sans-serif; }
.g3d-site-body { display: block; padding: 10px 13px 12px; }
.g3d-site-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #157a4b; font: 16px/1.25 "LetoSans-Bold", Arial, sans-serif; }
.g3d-site-title::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
    background: #1f9d63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.4 2.4 4.6-5'/%3E%3C/svg%3E") 50% 50% no-repeat; }
.g3d-site-text { display: block; color: #33435e; font-size: 14px; line-height: 1.38; }
.g3d-site-slot { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 5px 10px 4px 8px; border: 1.5px dashed #E0A93B; border-radius: 8px;
    background: #FFF8E8; color: #7a5200; font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; }
.g3d-site-slot svg:last-of-type { margin-right: 3px; }

/* --- блок на главной --- */
#gorod3d { scroll-margin-top: 90px; }
.g3 { background: radial-gradient(ellipse 75% 65% at 40% 48%, #24426f 0%, #172b4b 50%, #0c1930 100%); color: #fff; overflow: hidden; }
.g3-wrap { position: relative; height: 830px; max-width: 1400px; margin: 0 auto; }
.g3-view { position: absolute; inset: 0; }
.g3-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.g3-legend { position: absolute; left: 32px; bottom: 22px; color: #c5d0e2; font-size: 14px; pointer-events: none; }
.g3-legend span { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #F2B441; box-shadow: 0 0 10px 2px rgba(242,180,65,.75); }
.g3-legend b { color: #fff; }
.g3-head { position: absolute; left: 32px; top: 36px; width: 460px; pointer-events: none; }
.g3-head > * { pointer-events: auto; }
.g3-eyebrow { margin: 0 0 8px; color: #F2B441; font: 13px/1.2 "LetoSans-Bold", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.g3-title { margin: 0 0 18px; color: #fff; font: 32px/1.15 "LetoSans-Bold", Arial, sans-serif; text-transform: none; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.g3-search { position: relative; }
.g3-search input { width: 100%; padding: 15px 50px 14px 46px; border: 2px solid rgba(255,255,255,.2); border-radius: 14px; outline: none;
    background: rgba(10,22,42,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%239fc2ef' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='m13.5 13.5 5 5'/%3E%3C/svg%3E") 16px 50% no-repeat;
    color: #fff; font: 17px/1.3 "LetoSans", Arial, sans-serif; -webkit-appearance: none; appearance: none; }
.g3-search input::placeholder { color: #9fb0c8; }
.g3-search input:focus { border-color: #5b8fe0; }
.g3-hint { margin: 10px 0 0; color: #b8c6dc; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.g3-hint:empty { display: none; }
.g3-hint button { margin: 0; padding: 0; border: 0; border-bottom: 1px dashed rgba(242,180,65,.7); background: none; color: #F2B441; font: inherit; text-align: left; cursor: pointer; }
.g3-hint button:hover { border-bottom-color: #ffd27a; color: #ffd27a; }

.g3-panel { position: absolute; right: 32px; top: 32px; width: 410px; max-height: calc(100% - 64px); overflow-y: auto; padding: 22px 26px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(9,20,40,.82); box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: left; }
.g3-city { margin: 0; color: #fff; font: 28px/1.15 "LetoSans-Bold", Arial, sans-serif; }
.g3-sub { margin: 4px 0 8px; color: #c5d0e2; font-size: 15px; }
.g3-badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px 3px; border-radius: 30px; font: 13px/1.3 "LetoSans-Bold", Arial, sans-serif; }
.g3-badge.free { background: #1f9d63; color: #fff; }
.g3-badge.busy { background: #5B6678; color: #fff; }
.g3-badge.center { background: #F2B441; color: #14233D; }
.g3-panel .g3d-pot { --g3d-text: #fff; --g3d-muted: #9fb0c8; --g3d-track: rgba(255,255,255,.12); --g3d-bar: linear-gradient(90deg, #F2B441, #ffd27a); --g3d-accent: #F2B441; }
.g3-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.g3-btn { display: inline-block; padding: 12px 22px 11px; border: 0; border-radius: 50px; background: #BC3F3C; color: #fff !important; font: 14px/1.3 "LetoSans-Bold", Arial, sans-serif;
    letter-spacing: .02em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; }
.g3-btn:hover { background: #d30037; }
.g3-more { display: inline-block; padding: 12px 18px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 50px; color: #fff !important; font: 14px/1.3 "LetoSans-Bold", Arial, sans-serif;
    text-decoration: none !important; }
.g3-more:hover { border-color: #fff; }

@media (max-width: 1100px) {
    .g3-head { width: 400px; }
    .g3-panel { width: 340px; }
}
@media (max-width: 991px) {
    .g3-wrap { height: auto; display: flex; flex-direction: column; padding: 28px 16px 24px; }
    .g3-head { position: static; width: auto; order: 1; }
    .g3-title { font-size: 26px; }
    .g3-view { position: relative; inset: auto; order: 2; height: 440px; margin: 0 -16px; }
    .g3-legend { left: 16px; bottom: 10px; font-size: 13px; }
    .g3-panel { position: static; order: 3; width: auto; max-height: none; margin-top: 8px; }
}
@media (max-width: 767px) {
    .g3-search input { padding-left: 42px; padding-right: 44px; background-position: 14px 50%; font-size: 16px; }
    .g3d-toggle { right: 3px; }
    .g3d-label { font-size: 11px; padding: 3px 8px 2px 7px; }
    .g3d-label i { width: 7px; height: 7px; margin-right: 5px; }
    .g3d-label.g3d-office { font-size: 12px; padding: 5px 10px 4px; }
    .g3d-pot-value { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .g3d-label { transition: none; } }
.g3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
