/* ==================== */
/* ШРИФТЫ И БАЗОВЫЕ СТИЛИ */
/* ==================== */

/* Подключение шрифтов Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&family=Open+Sans:wght@400;600&family=Montserrat:wght@400;500;700&display=swap');

/* Сброс стилей */
html, body {
    margin: 0;
    padding: 0;
}

/* Переменные цветов */
:root {
    --primary-color: #1C244B;
    --secondary-color: #ffffff;
    --hover-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --medium-gray: #777;
    --footer-color: #f4f4f4;
}

/* Основное правило плавной прокрутки */
html {
  scroll-behavior: smooth;
}

/* Фиксированый хедер */
section {
  scroll-margin-top: 80px; /* Высота вашего хедера */
}

/* Запрет выделения и перетаскивания для изображений */
img, .static-image, .space-image, .advantage-icon {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Для фоновых изображений*/
[style*="background-image"] {
    pointer-events: none;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

/* Основные стили страницы */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
    animation: fadeInBody 1s ease-in-out;
}

/* Анимация плавного появления */
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== */
/* ШАПКА САЙТА */
/* ==================== */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: var(--secondary-color);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

/* Логотип */
header .logo a {
    display: inline-block;
}

header .logo img {
    height: 80px;
    content: var(--logo-image);
    margin-top: -30px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: #4A4A4A;
    margin-top: -10px;
    padding-left: 10px;
}

/* ==================== */
/* НАВИГАЦИЯ */
/* ==================== */

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

/* Стили ссылок меню */
nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    transition: 
        color 0.3s ease, 
        transform 0.3s ease, 
        letter-spacing 0.3s ease,
        text-shadow 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Эффект подчеркивания */
nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

/* Эффекты при наведении */
nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ==================== */
/* ЗАГОЛОВОК СТРАНИЦЫ */
/* ==================== */

.site-title {
    text-align: center;
    color: var(--dark-gray);
    margin: 80px 20px 20px;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-title .small-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
}

.site-title .large-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

/* Слайдер в заголовке */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slideshow 15s infinite;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    animation: fade 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fade {
    10%, 20% { opacity: 1; }
    33%, 70% { opacity: 0; }
}

.overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 00);
    padding: 20px;
    border-radius: 10px;
}

/* ==================== */
/* ОСНОВНЫЕ СЕКЦИИ */
/* ==================== */


section {
    padding: 100px 20px 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-10px);
}

/* Анимация текста */
.fade-in-text {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    font-family: 'Montserrat', sans-serif;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==================== */
/* КАРТОЧКИ */
/* ==================== */

/* Общие стили карточек */
.about-card, .space-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    animation: fadeIn 2s forwards;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card-item, .space-card {
    background-color: var(--secondary-color);
    padding: 20px;
    width: calc(33.333% - 20px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card-item:hover, .space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-item h4, .space-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-item p, .space-card p {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.4;
}

/* Картинки в карточках */
.card-item .card-image, .space-card .space-image {
    width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.space-grid.center-parking {
    display: flex;
    justify-content: center;
    margin-top: 2rem; /* Отступ сверху для визуального разделения */
}

/* ==================== */
/* ПРЕИМУЩЕСТВА */
/* ==================== */

#security {
    padding: 50px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}

.advantage-card {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.advantage-icon {
    width: 100%;
    max-width: 530px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.advantage-card p {
    font-size: 16px;
    color: #333;
}

/* ==================== */
/* КНОПКИ */
/* ==================== */

/* Кнопка скачивания PDF */
.download-btn {
    background-color: rgba(212, 212, 206, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgb(10, 1, 1);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background-color: rgba(194, 199, 199, 0.8);
    color: rgb(30, 9, 9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Кнопки маршрутов */
.route-btn {
    padding: 8px 12px;
    margin: 5px;
    background: #2b56f1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.route-btn:hover {
    background: #1a42c7;
}

/* ==================== */
/* КНОПКИ ПРОКРУТКИ */
/* ==================== */

.scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-button {
    width: 50px;
    height: 50px;
    background-color: #a0a4b6b3;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.scroll-button:hover {
    background-color: #686b78cc;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-button:active {
    transform: scale(0.95);
}

.scroll-button.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==================== */
/* ФУТЕР */
/* ==================== */

footer {
    padding: 20px;
    background-color: var(--footer-color);
    text-align: center;
    margin-top: 20px;
}

/* ==================== */
/* РАЗДЕЛИТЕЛИ */
/* ==================== */

@keyframes lineEffect {
    0% { width: 0; opacity: 0; }
    50% { width: 50%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

.section-divider {
    border: none;
    border-top: 1px solid var(--primary-color);
    width: 50%;
    margin: 20px auto;
    opacity: 0.5;
}

/* ==================== */
/* КОНТАКТЫ */
/* ==================== */

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    gap: 60px;
    background-color: var(--secondary-color);
    padding: 11px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(106, 167, 223, 0.1);
    transition: box-shadow 0.3s ease;
    width: 100%;
    height: 21px;
    max-width: 400px;
}

.contact-item:hover {
    box-shadow: 0 4px 15px rgba(54, 41, 75, 0.2);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.contact-icon img {
    width: 60%;
    height: 60%;
    display: block;
    margin: 0 auto;
}

.contact-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--dark-gray);
}

.contact-icon.telegram,
.contact-icon.phone,
.contact-icon.email {
    background-color: #ffffff;
}

.icon-wrapper {
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.text-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* ==================== */
/* ТИПОГРАФИКА */
/* ==================== */

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--hover-color);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

/* ==================== */
/* ЛАЙТБОКС */
/* ==================== */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.lightbox {
    background-color: #a0a4b61a;
    padding: 20px;
    border-radius: 30px 0 30px 0;
    width: auto;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #c2bdbd;
}

.lightbox .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
}

.lightbox .column {
    animation: fadeInUp 3.6s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.lightbox .column strong {
    display: block;
    font-size: 45px;
    margin-top: 5px;
    background: linear-gradient(90deg, #474749, #3a7bd5);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 4px 4px 3px rgba(0,0,0,0.1);
}

.lightbox .column span {
    font-size: 32px;
    color: #555;
}

.lightbox .column .square-meter {
    font-size: 16px;
    color: #0a0a0a;
    vertical-align: super;
}

/* ==================== */
/* РЕЗИДЕНТЫ */
/* ==================== */

.resident-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.resident-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 0px solid #c0b9b9;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.resident-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.resident-info {
    flex: 1;
}

/* ==================== */
/* БАННЕРЫ И ИЗОБРАЖЕНИЯ */
/* ==================== */

.static-banner {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    border-radius: 5px;
    filter: grayscale(71%);
}

.static-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: 
        linear-gradient(to top, transparent 0%, black 30%, black 95%, transparent 100%),
        linear-gradient(to left, transparent 0%, black 30%, black 95%, transparent 100%);
    mask-image: 
        linear-gradient(to top, transparent 0%, black 30%, black 95%, transparent 100%),
        linear-gradient(to left, transparent 0%, black 30%, black 95%, transparent 100%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    animation: subtleZoom 8s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.word {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.word1 { animation-delay: 0.5s; }
.word2 { animation-delay: 1s; }
.word3 { animation-delay: 1.5s; }
.word4 { animation-delay: 2.0s; }

/* ==================== */
/* АНИМАЦИИ */
/* ==================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Маркер на карте */
.radar {
    position: relative;
    width: 10px;
    height: 10px;
    background: rgb(233, 4, 46);
    border-radius: 50%;
}

.radar::before,
.radar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 0, 21, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarWave 2s infinite;
}

.radar::after {
    animation-delay: 1s;
}

@keyframes radarWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ==================== */
/* ПРЕИМУЩЕСТВА О БИЗНЕС-ЦЕНТРЕ */
/* ==================== */

.about-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.about-benefit-item {
    position: relative;
    padding: 80px 25px 25px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.video-icon-container {
    width: 80px;
    height: 80px;
    margin: -110px auto 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.benefit-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.about-benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.about-benefit-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* ==================== */
/* ЯЗЫКИ */
/* ==================== */
.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-button {
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
}

.lang-button:hover {
  background-color: #dcdcdc;
}

.lang-button.active {
  background-color: #007bff;
  color: white;
}

/* mobile.css - Mobile-specific styles (max-width: 768px) */
@media only screen and (max-width: 768px) {
  /* Base adjustments */
  :root {
    --mobile-padding: 15px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --primary-color: #1C244B;
    --secondary-color: #ffffff;
    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --medium-gray: #777;
  }

  /* Reset and base styles */
  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    padding-top: 60px; /* Для фиксированного хедера */
  }

  /* Hide banner */
  .site-title,
  .static-banner,
  .static-image {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Header styles */
  header {
    padding: 10px var(--mobile-padding);
    padding-top: calc(10px + var(--safe-area-top));
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* Logo adjustments */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 1002;
}

.logo img {
  height: 60px !important;
  margin-top: 0 !important;
}

.logo-text {
  font-size: 16px !important;
  display: block;          /* Можно заменить flex на block или оставить, если нужны иконки рядом */
  text-align: center;
  z-index: 1002;
}

  /* ==================== */
  /* BURGER MENU STYLES */
  /* ==================== */
  .menu-icon {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
    position: relative;
  }

  .menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Active state (open) */
  .menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile navigation */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 80px 25px 40px;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  #menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  #menu li {
    margin-bottom: 8px;
  }

  #menu a {
    display: block;
    padding: 14px 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
  }

  #menu a:hover,
  #menu a:focus {
    background: rgba(28, 36, 75, 0.05);
    color: var(--primary-color);
    transform: translateX(3px);
  }

  /* Language switcher */
  .language-switcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  }

  /* Content sections */
  section {
    padding: 40px var(--mobile-padding) 30px;
    scroll-margin-top: 60px;
  }

  h3 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
  }

  /* Stats grid */
  .lightbox .row {
    flex-direction: column;
    gap: 15px;
  }

  .lightbox .column {
    width: 100%;
  }

  /* Cards */
  .about-benefits-grid,
  .advantages-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
.space-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  
  /* Центрируем содержимое */
  justify-content: center;
  padding-bottom: 10px; /* чтобы карточки не обрезались */
  padding-left: 15px;   /* небольшой отступ слева */
  padding-right: 15px;  /* небольшой отступ справа */
}

.space-grid > .space-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 250px; /* или нужная ширина карточки */
}

  /* Contact section */
  .contact-section {
    align-items: flex-start;
  }

  .contact-item {
    flex-direction: row;
    padding: 12px 15px !important;
    height: auto !important;
    max-width: 100% !important;
    gap: 15px !important;
  }

  /* Map container */
  #map-container {
    height: 300px !important;
    margin: 20px 0;
  }

  /* Scroll buttons */
  .scroll-buttons {
    bottom: 90px;
    right: 20px;
  }

  .scroll-button {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  /* Touch targets */
  a, button, .menu-icon, .scroll-button {
    min-width: 44px;
    min-height: 44px;
  }

  /* Focus states */
  button:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  /* Overlay for menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Safe area adjustments */
@supports (padding: max(0px)) {
  @media only screen and (max-width: 768px) {
    body {
      padding-left: max(var(--mobile-padding), var(--safe-area-left));
      padding-right: max(var(--mobile-padding), var(--safe-area-right));
    }
    
    header {
      padding-left: max(var(--mobile-padding), var(--safe-area-left));
      padding-right: max(var(--mobile-padding), var(--safe-area-right));
    }
  }
}

/* Force burger menu visibility */
@media only screen and (max-width: 768px) {
  .menu-icon {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Hide desktop navigation */
  nav:not(.mobile-nav) {
    display: none !important;
  }
}

/* Desktop styles will be inherited from styles.css */

/* Стили для гамбургера */
.hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
}

/* Стили мобильного меню */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 2rem 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1002;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

/* Кнопка закрытия */
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

/* Затемнение фона */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

/* Видимое меню */
.mobile-nav.open {
    right: 0;
}

.menu-overlay.show {
    display: block;
}

/* Скрытые элементы */
.hidden {
    display: none;
}

/* Показываем только на мобильных */
@media (min-width: 769px) {
    .hamburger,
    .mobile-nav,
    .menu-overlay {
        display: none !important;
    }
}


@media only screen and (max-width: 768px) and (orientation: landscape) {
  .space-grid {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 20px;
  }

  .space-grid > .space-card {
    flex: 0 0 auto;
    min-width: 220px;
    scroll-snap-align: start;
  }

  section {
    padding: 30px var(--mobile-padding) 20px;
  }

  header {
    height: 50px;
    padding: 5px var(--mobile-padding);
  }

  body {
    padding-top: 50px;
  }
}

@media only screen and (max-width: 1024px), (orientation: landscape) and (max-height: 500px) {
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 2rem 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1002;
  }

  .mobile-nav.open {
    right: 0;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
  }

  .mobile-nav li {
    margin: 1rem 0 !important;
  }

  .mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem !important;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
  }

  .menu-overlay.show {
    display: block;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
  }
  .lightbox .column strong{
    font-size: 30px;
    margin-top: 5px;
  }
  .lightbox .column span{
    font-size: 18px;
    margin-top: 5px;
  }
}
@media only screen and (max-device-width: 1024px) and (orientation: landscape) {
  nav:not(.mobile-nav) {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
  }

  .hamburger {
    display: block !important;
  }
}
.tooltip-box {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 260px;
  padding: 16px 20px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(200, 200, 200, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #1c1c1e;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease,
    filter 0.4s ease;
  z-index: 20;
  filter: blur(2px);
}

.space-card:hover .tooltip-box {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


.tooltip-box strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: #007aff;
}

.tooltip-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tooltip-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.tooltip-box i {
  font-size: 14px;
  color: #007aff;
  flex-shrink: 0;
  margin-top: 2px;
}

