/* ========================================
   СТРАНИЦА ОФИСА - Минималистичный стиль
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/Gilroy-Regular.woff2') format('woff2'),
         url('/fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/Gilroy-Medium.woff2') format('woff2'),
         url('/fonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

:root {
    --building-A-color: 181, 105, 62;
    --building-B-color: 181, 105, 62;
    --building-C-color: 181, 105, 62;
    --building-D-color: 181, 105, 62;
	
    --accent-color: 255, 87, 34;
    
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-tertiary: rgba(0, 0, 0, 0.6);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --accent-primary: 0, 0, 0;
    --row-hover: rgba(0, 0, 0, 0.02);
    --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    
    --minimap-point-color: 181, 105, 62;
}

body.night-mode {
    --bg-primary: #0e1116;
    --bg-secondary: rgba(26, 26, 31, 0.95);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --accent-primary: 255, 255, 255;
    --row-hover: rgba(255, 255, 255, 0.03);
}

body[data-building="A"] { --accent-color: var(--building-A-color); }
body[data-building="B"] { --accent-color: var(--building-B-color); }
body[data-building="C"] { --accent-color: var(--building-C-color); }
body[data-building="D"] { --accent-color: var(--building-D-color); }

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 769px) {
    html, body {
        overflow: hidden;
    }
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

a, button, [role="button"], .clickable {
    cursor: pointer;
}

/* ========================================
   ПЕРЕКЛЮЧАТЕЛЬ ДЕНЬ/НОЧЬ
   ======================================== */
   
.theme-toggle {
    width: 72px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle.night-mode {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.4) 0%, rgba(40, 40, 70, 0.3) 100%);
    border-color: rgba(100, 120, 255, 0.15);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(100, 120, 255, 0.05);
}

.toggle-slider {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle.night-mode .toggle-slider {
    transform: translateX(36px) translateY(-50%);
    background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%);
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.sun-icon {
    width: 18px;
    height: 18px;
    opacity: 1;
}

.theme-toggle.night-mode .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.5);
}

.moon-icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0.5);
}

.theme-toggle.night-mode .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.sun-icon svg, .moon-icon svg {
    width: 100%;
    height: 100%;
}

.sun-icon svg circle {
    fill: #FFC107;
}

.sun-icon svg line {
    stroke: #FFC107;
    stroke-width: 2;
    stroke-linecap: round;
}

.moon-icon svg {
    fill: #b8b8d0;
}

/* ========================================
   ЗАГРУЗОЧНЫЙ ЭКРАН
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    text-align: center;
}

.loading-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
    border-radius: 2px;
}

body.night-mode .loading-progress {
    background: rgba(255, 255, 255, 0.1);
}

.loading-progress-bar {
    height: 100%;
    background: rgb(var(--accent-color));
    width: 30%;
    animation: loadingSlide 1.5s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */

#main-content {
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

#main-content.loaded {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   LAYOUT - Минималистичная структура
   ======================================== */

.office-layout {
    display: flex;
    height: 100vh;
    position: relative;
    padding: 80px 40px 40px 40px;
}

/* ========================================
   ЛЕВАЯ ПАНЕЛЬ С ИНФОРМАЦИЕЙ
   ======================================== */

.info-panel {
    position: fixed;
    left: 60px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.building-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.building-number {
    font-family: 'Gilroy', Helvetica, Arial, sans-serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: rgb(var(--accent-color));
    animation: fadeInLeft 0.6s ease;
    letter-spacing: -1px;
}

.building-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-left: 2px;
    margin-top: 8px;
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.office-number-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.office-number {
    font-family: 'Gilroy', Helvetica, Arial, sans-serif;
    font-size: 86px;
    font-weight: 200;
    line-height: 1;
    color: var(--text-primary);
    animation: fadeInLeft 0.8s ease;
    letter-spacing: -2px;
}

.office-number.size-xl {
    font-size: 86px;
    letter-spacing: -2px;
}

.office-number.size-l {
    font-size: 56px;
    letter-spacing: -1.5px;
}

.office-number.size-m {
    font-size: 42px;
    letter-spacing: -1px;
}

.office-number.size-s {
    font-size: 30px;
    letter-spacing: -0.5px;
}

.office-number.size-xs {
    font-size: 24px;
    letter-spacing: 0;
    word-break: break-all;
    line-height: 1.1;
}

@media (max-width: 1400px) {
    .office-number.size-xl { font-size: 60px; }
    .office-number.size-l { font-size: 48px; }
    .office-number.size-m { font-size: 36px; }
    .office-number.size-s { font-size: 28px; }
    .office-number.size-xs { font-size: 20px; }
}

@media (max-width: 1200px) {
    .office-number.size-xl { font-size: 54px; }
    .office-number.size-l { font-size: 42px; }
    .office-number.size-m { font-size: 32px; }
    .office-number.size-s { font-size: 24px; }
    .office-number.size-xs { font-size: 18px; }
    
    .office-info { max-width: 150px; }
    
    .office-number.size-xs,
    .office-number.size-s {
        max-width: 140px;
    }
}

.office-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-left: 2px;
    margin-top: 8px;
}

/* ========================================
   ЦЕНТРАЛЬНАЯ ОБЛАСТЬ С ПЛАНОМ ОФИСА
   ======================================== */

.map-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 220px;
    margin-right: 360px;
    padding-left: 30px;
    padding-right: 30px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    max-width: 900px;
    max-height: 85vh;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.map-canvas {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
    min-height: 0;
    margin-bottom: 4px;
}

.office-plan-caption {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    flex-shrink: 0;
    margin: 0;
    padding: 4px 0;
    order: 2;
}

.office-plan-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-plan-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

body.night-mode .office-plan-caption {
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* ========================================
   ПРАВАЯ ПАНЕЛЬ - КОМПАКТНАЯ ВЕРСИЯ
   ======================================== */

.office-details-panel {
    position: fixed;
    right: 60px;
    top: 140px;
    bottom: 20px;
    width: 340px;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.office-details-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-color), 0.2) transparent;
}

.office-details-content::-webkit-scrollbar {
    width: 4px;
}

.office-details-content::-webkit-scrollbar-track {
    background: transparent;
}

.office-details-content::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-color), 0.2);
    border-radius: 2px;
}

.office-details-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-color), 0.3);
}

.office-details-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.office-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.03) 0%, 
        rgba(var(--accent-color), 0.01) 100%);
    border: 1px solid rgba(var(--accent-color), 0.08);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
}

.spec-item:nth-child(odd):not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(var(--accent-color), 0.08);
}

.spec-item:nth-child(1),
.spec-item:nth-child(2) {
    border-bottom: 1px solid rgba(var(--accent-color), 0.08);
}

.spec-item:hover {
    background: rgba(var(--accent-color), 0.05);
}

.spec-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.4px;
}

.spec-value {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ========================================
   КНОПКИ БЫСТРЫХ ДЕЙСТВИЙ - 3 в ряд
   ======================================== */

.office-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
    flex-shrink: 0;
}

.quick-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.02) 0%, 
        rgba(var(--accent-color), 0.01) 100%);
    border: 1px solid rgba(var(--accent-color), 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0) 0%, 
        rgba(var(--accent-color), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-color), 0.12);
    border-color: rgba(var(--accent-color), 0.2);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-icon {
    position: relative;
    width: 22px;
    height: 22px;
    color: rgb(var(--accent-color));
    opacity: 0.8;
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    opacity: 1;
    transform: scale(1.1);
}

.quick-action-label {
    position: relative;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.quick-action-card:hover .quick-action-label {
    color: rgb(var(--accent-color));
}

.quick-action-count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: rgb(var(--accent-color));
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInScale {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quick-action-card.active {
    background: rgba(var(--accent-color), 0.08);
    border-color: rgba(var(--accent-color), 0.3);
}

.quick-action-card.active .quick-action-icon {
    color: rgb(var(--accent-color));
    opacity: 1;
}

/* ========================================
   ПАНЕЛЬ ХАРАКТЕРИСТИК
   ======================================== */

.office-features-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    background: var(--bg-secondary);
    border: 1px solid rgba(var(--accent-color), 0.1);
    border-radius: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 1;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9000;
    display: flex;
    flex-direction: column;
}

.office-features-panel.active {
    transform: translateX(0);
    visibility: visible;
}

body.night-mode .office-features-panel {
    background: rgba(26, 26, 31, 0.98);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.features-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(var(--accent-color), 0.08);
}

.features-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.features-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.features-close:hover {
    background: var(--bg-primary);
    transform: rotate(90deg);
    border-color: rgba(var(--accent-color), 0.2);
}

.features-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.features-grid {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-color), 0.2) transparent;
}

.features-grid::-webkit-scrollbar {
    width: 4px;
}

.features-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-color), 0.2);
    border-radius: 2px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.03) 0%, 
        transparent 100%);
    border: 1px solid rgba(var(--accent-color), 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.05) 0%, 
        rgba(var(--accent-color), 0.02) 100%);
    border-color: rgba(var(--accent-color), 0.12);
    transform: translateX(4px);
}

.feature-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.feature-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.feature-value.positive {
    color: rgb(var(--accent-color));
}

.features-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(var(--accent-color), 0.08);
    display: flex;
    justify-content: center;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.08) 0%, 
        rgba(var(--accent-color), 0.04) 100%);
    border-radius: 24px;
    border: 1px solid rgba(var(--accent-color), 0.15);
}

.feature-badge svg {
    width: 18px;
    height: 18px;
    color: rgb(var(--accent-color));
}

.feature-badge span {
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--accent-color));
    text-transform: none;
    letter-spacing: 0.2px;
}

.office-features-panel.active .feature-item {
    animation: fadeInUp 0.4s ease both;
}

.office-features-panel.active .feature-item:nth-child(1) { animation-delay: 0.05s; }
.office-features-panel.active .feature-item:nth-child(2) { animation-delay: 0.1s; }
.office-features-panel.active .feature-item:nth-child(3) { animation-delay: 0.15s; }
.office-features-panel.active .feature-item:nth-child(4) { animation-delay: 0.2s; }
.office-features-panel.active .feature-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ОПИСАНИЯ
   ======================================== */

.description-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.description-modal.active {
    display: flex;
    opacity: 1;
}

.description-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.description-modal-header {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.description-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.description-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.description-modal-close:hover {
    background: var(--bg-primary);
    transform: rotate(90deg);
}

.description-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

/* ========================================
   СТОИМОСТЬ
   ======================================== */

.office-pricing {
    background: linear-gradient(135deg, 
        rgba(var(--accent-color), 0.05) 0%, 
        rgba(var(--accent-color), 0.02) 100%);
    border: 1px solid rgba(var(--accent-color), 0.12);
    border-radius: 14px;
    padding: 18px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-label {
    display: none;
}

.price-value {
    font-size: 30px;
    font-weight: 400;
    color: rgb(var(--accent-color));
    line-height: 1;
    letter-spacing: -0.5px;
}

.price-period {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--accent-color), 0.08);
}

.price-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.4px;
}

.detail-value {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ========================================
   ДЕЙСТВИЯ
   ======================================== */

.office-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 0;
}

.action-btn {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.action-btn.primary {
    background: linear-gradient(135deg, 
        rgb(var(--accent-color)) 0%, 
        rgb(var(--accent-color), 0.85) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(var(--accent-color), 0.25);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--accent-color), 0.35);
}

.action-btn.primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn.primary:active::before {
    width: 300px;
    height: 300px;
}

.action-btn.secondary,
.action-btn.tertiary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.action-btn.secondary:hover,
.action-btn.tertiary:hover {
    background: var(--bg-primary);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

/* ========================================
   КОНТАКТЫ
   ======================================== */

.office-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 6px;
    margin-top: 6px;
    opacity: 0.7;
    flex-shrink: 0;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.contact-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: rgb(var(--accent-color));
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ЗАЯВКИ (КОМПАКТНОЕ)
   ======================================== */

.request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.request-modal.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 580px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-container.modal-compact {
    max-width: 580px;
    padding: 32px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.night-mode .modal-container {
    background: rgba(26, 26, 31, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-office-info {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px 40px;
    padding: 16px 18px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.office-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.office-info-item:nth-child(2) {
    min-width: 0;
    overflow: hidden;
}

.office-info-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.office-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

.form-input:focus {
    outline: none;
    border-color: rgba(var(--accent-color), 0.3);
    box-shadow: 0 0 0 3px rgba(var(--accent-color), 0.05);
    background: var(--bg-secondary);
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

/* Чекбоксы согласий */
.form-agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.agreement-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.agreement-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: rgb(var(--accent-color));
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-checkbox.error {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.agreement-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.agreement-link {
    color: rgb(var(--accent-color));
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.agreement-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* reCAPTCHA контейнер */
.recaptcha-container {
    margin: 4px 0;
    display: flex;
    justify-content: center;
}

/* Сообщения формы */
.form-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background: rgb(var(--accent-color));
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--accent-color), 0.25);
}

.modal-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.modal-btn.secondary:hover {
    background: var(--bg-primary);
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ МОДАЛЬНОГО ОКНА
   ======================================== */

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 24px 20px;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-container.modal-compact {
        padding: 24px 20px;
    }
    
    .modal-content {
        gap: 20px;
    }
    
    .modal-title { 
        font-size: 20px; 
        padding-right: 30px;
    }
    
    .modal-subtitle {
        font-size: 12px;
    }
    
    .modal-office-info {
        grid-template-columns: 1fr 1fr;
        gap: 14px 16px;
        padding: 14px 16px;
    }
    
    .office-info-item {
        text-align: left;
    }
    
    .office-info-label {
        font-size: 9px;
    }
    
    .office-info-value {
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .form-input {
        padding: 11px 12px;
        font-size: 14px;
    }
    
    .agreement-label {
        font-size: 11px;
    }
    
    .modal-actions { 
        flex-direction: column-reverse; 
        gap: 10px;
        margin-top: 8px;
    }
    
    .modal-btn { 
        width: 100%;
        padding: 11px 18px;
    }
    
    .recaptcha-container {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 20px 16px;
    }
    
    .modal-container.modal-compact {
        padding: 20px 16px;
    }
    
    .modal-content {
        gap: 18px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-office-info {
        padding: 12px 14px;
        gap: 12px 14px;
    }
    
    .office-info-value {
        font-size: 12px;
    }
    
    .agreement-label {
        font-size: 10px;
    }
    
    .recaptcha-container {
        transform: scale(0.85);
    }
}

/* ========================================
   ГАЛЕРЕЯ ОФИСА
   ======================================== */

.office-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.office-gallery-overlay.active {
    display: flex;
    opacity: 1;
}

.gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gallery-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    position: relative;
    width: 100%;
    height: calc(100% - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    max-width: 100%;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: rgb(var(--accent-color));
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev svg,
.gallery-next svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.gallery-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* ========================================
   КНОПКА НАЗАД
   ======================================== */

.back-button {
    position: fixed;
    top: 60px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.back-button:hover {
    transform: translateX(-3px);
    color: var(--text-secondary);
}

.back-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.back-button:hover .back-icon {
    opacity: 1;
}

.back-label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* ========================================
   МИНИ-КАРТА НАВИГАЦИИ
   ======================================== */

.minimap-container {
    position: fixed;
    bottom: -35px;
    left: -25px;
    width: 460px;
    height: 259px;
    z-index: 2;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.minimap-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: default;
}

.minimap-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
    border-radius: 0;
}

body.night-mode .minimap-image {
    opacity: 0.8;
}

.minimap-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.minimap-svg-overlay svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.minimap-building {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

body.night-mode .minimap-building.active-building {
    opacity: 1;
    fill: rgba(var(--accent-color), 0.02);
    stroke: rgba(var(--accent-color), 1);
    stroke-width: 2px;
    filter: drop-shadow(0 0 3px rgba(var(--accent-color), 1))
            drop-shadow(0 0 6px rgba(var(--accent-color), 0.8))
            drop-shadow(0 0 12px rgba(var(--accent-color), 0.6))
            drop-shadow(0 0 20px rgba(var(--accent-color), 0.4))
            drop-shadow(0 0 30px rgba(var(--accent-color), 0.2));
    animation: minimapNeonPulse 3s ease-in-out infinite;
}

body:not(.night-mode) .minimap-building.active-building {
    opacity: 0;
}

@keyframes minimapNeonPulse {
    0%, 100% {
        stroke: rgba(var(--accent-color), 0.9);
        filter: drop-shadow(0 0 3px rgba(var(--accent-color), 1))
                drop-shadow(0 0 6px rgba(var(--accent-color), 0.8))
                drop-shadow(0 0 12px rgba(var(--accent-color), 0.6))
                drop-shadow(0 0 20px rgba(var(--accent-color), 0.4));
    }
    50% {
        stroke: rgba(var(--accent-color), 1);
        filter: drop-shadow(0 0 4px rgba(var(--accent-color), 1))
                drop-shadow(0 0 8px rgba(var(--accent-color), 0.9))
                drop-shadow(0 0 16px rgba(var(--accent-color), 0.7))
                drop-shadow(0 0 25px rgba(var(--accent-color), 0.5));
    }
}

.minimap-points {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
}

.building-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 25%, 
        rgba(var(--minimap-point-color), 0.8) 30%, 
        rgba(var(--minimap-point-color), 0.8) 100%);
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
                inset 0 0 3px rgba(255, 255, 255, 0.8);
}

.building-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 20%, 
        rgba(var(--minimap-point-color), 0.85) 25%, 
        rgba(var(--minimap-point-color), 0.85) 100%);
    box-shadow: 0 0 0 6px rgba(var(--minimap-point-color), 0.1),
                0 3px 8px rgba(0, 0, 0, 0.08),
                inset 0 0 4px rgba(255, 255, 255, 0.9);
    z-index: 50;
}

body.night-mode .building-point {
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        rgba(100, 150, 200, 0.6) 25%, 
        rgba(100, 150, 200, 0.6) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15),
                inset 0 0 3px rgba(255, 255, 255, 0.7);
}

body.night-mode .building-point:hover {
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 15%, 
        rgba(120, 170, 220, 0.7) 20%, 
        rgba(120, 170, 220, 0.7) 100%);
    box-shadow: 0 0 0 6px rgba(100, 150, 200, 0.15),
                0 3px 8px rgba(0, 0, 0, 0.2),
                inset 0 0 4px rgba(255, 255, 255, 0.8);
}

.building-point::before,
.building-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(var(--minimap-point-color), 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.night-mode .building-point::before,
body.night-mode .building-point::after {
    border-color: rgba(100, 150, 200, 0.5);
}

.building-point::before {
    animation: pulseWave 3s ease-out infinite;
}

.building-point::after {
    animation: pulseWave 3s ease-out infinite 1.5s;
}

@keyframes pulseWave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.building-point:hover::before,
.building-point:hover::after {
    animation-play-state: paused;
}

.building-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: rgba(33, 33, 33, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

body.night-mode .building-tooltip {
    background: rgba(20, 20, 30, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

.building-point:hover .building-tooltip {
    opacity: 1;
    z-index: 9999;
}

.building-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(33, 33, 33, 0.95);
}

body.night-mode .building-tooltip::after {
    border-top-color: rgba(20, 20, 30, 0.95);
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-wrapper {
    animation: fadeIn 0.8s ease;
}

.office-details-panel {
    animation: fadeIn 0.8s ease 0.2s both;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */

@media (max-width: 1400px) {
    .building-number { font-size: 48px; }
    .office-number { font-size: 72px; }
    .map-container { margin-left: 200px; margin-right: 380px; }
    .office-details-panel { right: 40px; width: 320px; }
    .office-features-panel { width: 360px; }
    .price-value { font-size: 26px; }
    .spec-item { padding: 10px 12px; }
}

@media (max-width: 1200px) {
    .info-panel { left: 30px; }
    .building-number { font-size: 45px; }
    .office-number { font-size: 65px; }
    .map-container { margin-left: 180px; margin-right: 340px; }
    .office-details-panel { right: 30px; width: 300px; }
    .price-value { font-size: 24px; }
    .minimap-container { width: 240px; height: 170px; left: -25px; bottom: -25px; }
}

@media (max-width: 768px) {
    html { height: auto; min-height: 100%; }
    body { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
    
    #main-content { height: auto; min-height: 100vh; overflow: visible; }
    
    .office-layout {
        flex-direction: column;
        padding: 60px 15px 20px 15px;
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    
    .info-panel { display: none; }
    
    .map-container {
        margin-left: 0;
        margin-right: 0;
        flex: none;
        height: 40vh;
        min-height: 250px;
        margin-bottom: 15px;
        padding: 0;
    }
    
    .map-wrapper {
        border-radius: 12px;
        height: 100%;
        max-height: none;
        width: 100%;
        gap: 6px;
    }
    
    .office-plan-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .office-plan-caption {
        font-size: 11px;
    }
    
    .back-button {
        position: fixed;
        top: 15px;
        left: 15px;
        transform: none;
        z-index: 1000;
        width: auto;
        height: auto;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 1px rgba(255, 255, 255, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: transform 0.3s ease;
        padding: 0;
        font-size: inherit;
        right: auto;
        bottom: auto;
    }
    
    body.night-mode .back-button {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .back-button:hover {
        transform: translateX(3px);
    }
    
    .back-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .back-icon svg {
        width: 18px;
        height: 18px;
        stroke: rgba(255, 255, 255, 0.9);
        stroke-width: 2;
        fill: none;
    }
    
    .back-label {
        font-size: 12px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 0.3px;
        text-transform: uppercase;
        padding-right: 15px;
        white-space: nowrap;
    }
    
    body.night-mode .back-label {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .theme-toggle-container {
        position: fixed !important;
        top: 18px !important;
        right: 20px !important;
        z-index: 1500;
    }
    
    .theme-toggle {
        width: 55px !important;
        height: 28px !important;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        overflow: hidden;
    }
    
    .theme-toggle.night-mode {
        background: linear-gradient(135deg, 
            rgba(20, 20, 35, 0.3) 0%, 
            rgba(40, 40, 70, 0.2) 100%);
        border-color: rgba(100, 120, 255, 0.1);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(100, 120, 255, 0.03);
    }
    
    .toggle-slider {
        width: 22px !important;
        height: 22px !important;
        left: 3px;
    }
    
    .theme-toggle.night-mode .toggle-slider {
        transform: translateX(25px) translateY(-50%) !important;
    }
    
    .sun-icon { width: 16px; height: 16px; }
    .moon-icon { width: 12px; height: 12px; }
    
    .minimap-container {
        position: relative !important;
        width: 100%;
        height: 160px;
        margin: 0 0 15px 0;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        left: auto !important;
        bottom: auto !important;
    }
    
    body.night-mode .minimap-container { box-shadow: none; }
    
    .minimap-wrapper { height: 100%; padding: 0; }
    
    .minimap-image {
        opacity: 0.7;
        border-radius: 0;
        position: relative !important;
    }
    
    body.night-mode .minimap-image { opacity: 0.8; }
    
    .building-point { width: 14px; height: 14px; }
    .building-tooltip { font-size: 10px; padding: 4px 8px; }
    
    .office-details-panel {
        position: relative !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        background: transparent;
        z-index: 1;
        height: auto !important;
        overflow: visible !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: block !important;
    }
    
    .office-details-content {
        overflow: visible !important;
        height: auto !important;
        padding-right: 0;
        display: block !important;
    }
    
    .office-details-inner {
        gap: 15px;
        min-height: auto !important;
    }
    
    .office-specs {
        gap: 8px;
        background: transparent;
        border: none;
    }
    
    .spec-item {
        padding: 10px 12px;
        background: linear-gradient(135deg, 
            rgba(var(--accent-color), 0.03) 0%, 
            rgba(var(--accent-color), 0.01) 100%);
        border: 1px solid rgba(var(--accent-color), 0.08);
        border-radius: 10px;
    }
    
    .spec-item:nth-child(odd):not(:last-child)::after { display: none; }
    
    .spec-item:nth-child(1),
    .spec-item:nth-child(2) {
        border-bottom: 1px solid rgba(var(--accent-color), 0.08);
    }
    
    .spec-label { font-size: 10px; }
    .spec-value { font-size: 14px; font-weight: 600; }
    
    .office-quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin: 10px 0;
    }
    
    .quick-action-card { padding: 12px 6px; }
    .quick-action-icon { width: 20px; height: 20px; }
    .quick-action-label { font-size: 9px; }
    
    .office-features-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        transform: translateY(100%) !important;
        border-radius: 0 !important;
        z-index: 9000 !important;
    }
    
    .office-features-panel.active {
        transform: translateY(0) !important;
    }
    
    .features-header { padding: 16px 20px; }
    .features-grid { padding: 20px; gap: 12px; }
    .feature-item { padding: 12px 16px; }
    .feature-name { font-size: 12px; }
    .feature-value { font-size: 13px; }
    
    .office-pricing { padding: 14px; margin-bottom: 0; }
    .price-value { font-size: 24px; }
    .price-period { font-size: 12px; }
    .price-details { gap: 12px; padding-top: 12px; }
    .detail-label { font-size: 10px; }
    .detail-value { font-size: 14px; }
    
    .office-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
    }
    
    .action-btn {
        flex: 1;
        min-width: 140px;
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .action-btn.primary { flex: 1 1 100%; }
    .btn-icon { width: 14px; height: 14px; }
    
    .office-contact { padding: 8px 0; margin-top: 0; }
    .contact-link { font-size: 14px; }
    
    .modal-container {
        width: 95%;
        padding: 24px 18px;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-title { font-size: 18px; }
    
    .modal-office-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .office-info-item { text-align: left; }
    .modal-actions { flex-direction: column-reverse; gap: 8px; }
    .modal-btn { width: 100%; }
    
    .gallery-container { width: 100%; height: 100vh; }
    .gallery-thumbnails { padding: 10px; }
    .gallery-thumb { width: 60px; height: 45px; }
    
    .recaptcha-container {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .office-layout { padding: 55px 10px 15px 10px; }
    .map-container { height: 40vh; margin-bottom: 15px; padding: 0; }
    
    .office-plan-caption { font-size: 10px; }
    .map-wrapper { gap: 5px; }
    
    .back-button {
        top: 12px;
        left: 12px;
        background: rgba(255, 255, 255, 0.06);
    }
    
    .back-icon { width: 36px; height: 36px; }
    .back-icon svg { width: 16px; height: 16px; }
    .back-label { display: none; }
    
    .theme-toggle-container { top: 17px !important; right: 15px !important; }
    .theme-toggle { width: 50px !important; height: 26px !important; }
    .toggle-slider { width: 20px !important; height: 20px !important; left: 3px; }
    .theme-toggle.night-mode .toggle-slider { transform: translateX(22px) translateY(-50%) !important; }
    .sun-icon { width: 14px; height: 14px; }
    .moon-icon { width: 11px; height: 11px; }
    
    .minimap-container { height: 150px; margin: 0 0 15px 0; }
    .minimap-image { opacity: 0.65; }
    body.night-mode .minimap-image { opacity: 0.75; }
    
    .building-point { width: 12px; height: 12px; }
    .building-point::before,
    .building-point::after { display: none; }
    
    .office-details-panel { padding: 0; }
    .price-value { font-size: 22px; }
    .price-period { font-size: 11px; }
    .spec-item { padding: 10px; }
    .spec-value { font-size: 14px; }
    .action-btn { padding: 10px 14px; font-size: 12px; }
    .btn-icon { width: 14px; height: 14px; }
    
    .modal-container {
        padding: 20px 16px;
    }
    
    .agreement-label {
        font-size: 10px;
    }
    
    .recaptcha-container {
        transform: scale(0.85);
    }
}

/* Курсоры для всех интерактивных элементов */
button, 
.mobile-link, 
.mobile-sublink,
.burger,
.theme-toggle {
	cursor: pointer !important;
}

/* Позиционирование переключателя темы */
.theme-toggle-container {
	position: fixed;
	top: 50px;
	right: 60px;
	z-index: 1000;
}

/* Мобильная адаптация переключателя - остается сверху */
@media (max-width: 768px) {
	.theme-toggle-container {
		top: 15px;
		right: 20px;
	}
}

.mobile-header-logo {
	width: 52px;
	height: 26px;
	opacity: 0.85;
	transition: opacity 0.3s ease;
}

.mobile-header-logo:hover {
	opacity: 1;
}

.site-header__brand {
	padding-top: 5px;
}