:root {
--max-width: 1200px;
--gap: 1.5rem;
--slider-height: 350px;
--apple-blue: #007AFF;
--apple-blue-dark: #0051d5;
--hover-fill: rgba(0, 122, 255, 0.1);
--gradient-primary: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-blue-dark) 100%);
--gray-secondary: #8E8E93;
--gray-light: #F2F2F7;
--gray-medium: #E5E5EA;
--text-primary: #1C1C1E;
--text-secondary: #48484A;
--text-tertiary: #8E8E93;
--section-spacing: 4rem;
--border-radius: 1rem;
--shadow-light: 0 4px 16px rgba(0,0,0,0.04);
--shadow-medium: 0 8px 32px rgba(0,0,0,0.08);
--shadow-strong: 0 12px 48px rgba(0,0,0,0.12);
--gradient-bg: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
}

/* Стили для кнопок в шапке */
nav .header-button,
.mobile-menu .header-button {
  padding: 0.6rem 1.2rem !important;
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.8rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3) !important;
  overflow: hidden !important;
  vertical-align: middle !important;
}

nav .header-button::before,
.mobile-menu .header-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

nav .header-button:hover::before,
.mobile-menu .header-button:hover::before {
  left: 100%;
}

nav .header-button:hover,
.mobile-menu .header-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4) !important;
}

nav .header-button:active,
.mobile-menu .header-button:active {
  transform: translateY(0) !important;
}

nav .telegram-bot,
.mobile-menu .telegram-bot {
  background: var(--gradient-primary) !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3) !important;
}

nav .telegram-bot:hover,
.mobile-menu .telegram-bot:hover {
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4) !important;
}

/* ВРЕМЕННО: Скрыть кнопку telegram-bot */
nav .telegram-bot,
.mobile-menu .telegram-bot {
  display: none !important;
}

nav .telegram-channel,
.mobile-menu .telegram-channel {
  background: var(--gradient-primary) !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3) !important;
}

nav .telegram-channel:hover,
.mobile-menu .telegram-channel:hover {
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4) !important;
}

/* Стили для иконки профиля */
.profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 50%;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.profile-icon:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: scale(1.05);
}

.profile-icon svg {
  width: 20px;
  height: 20px;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #F8F8F8;
color: #1C1C1E;
}

/* Анимации */
@keyframes subtleBounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-2px); }
}
header {
background: rgba(255,255,255,0.7);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.3rem 2rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 10;
}
.logo { 
  font-weight: 600; 
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1C1C1E;
  margin: 0;
}

.logo-sub {
  font-size: 0.9rem;
  color: rgb(142, 142, 147);
  font-weight: 300;
  margin: 0;
}
nav { 
  display: flex; 
  gap: 1.5rem; 
  align-items: center;
}
nav a { color: var(--apple-blue); text-decoration: none; font-weight: 500; }
.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.burger div { width: 22px; height: 2px; background: #1C1C1E; }
.mobile-menu {
display: none;
position: fixed;
top: 0; right: 0;
width: 200px; height: 100vh;
background: white;
box-shadow: -2px 0 10px rgba(0,0,0,0.1);
padding: 2rem 1rem;
z-index: 999;
flex-direction: column; gap: 1rem;
}
.mobile-menu .close {
align-self: flex-end;
width: 22px; height: 22px;
display: flex; align-items: center; justify-content: center;
cursor: pointer;
position: relative;
}
.mobile-menu .close::before,
.mobile-menu .close::after {
content: '';
position: absolute;
width: 18px; height: 2px;
background: #1C1C1E;
}
.mobile-menu .close::before { transform: rotate(45deg); }
.mobile-menu .close::after { transform: rotate(-45deg); }
.mobile-menu a { color: var(--apple-blue); text-decoration: none; font-weight: 500; }
.container { max-width: var(--max-width); margin: 0 auto; padding: var(--gap); display: flex; flex-direction: column; gap: var(--gap); }
.desktop-grid { display: flex; flex-direction: column; gap: var(--gap); }
@media (min-width: 1024px) {
.desktop-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap); }
nav { display: flex; }
.burger { display: none; }
}

.left, .right { display: flex; flex-direction: column; gap: var(--gap); }
.card-header, .metric, .section, .map {
background: rgba(255,255,255,0.6); backdrop-filter: blur(12px);
border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.04);
padding: 1.2rem;
}
.card-header h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.card-header .id { font-size: 0.9rem; color: #8E8E93; margin-bottom: 1.5rem; }
.card-header .price-label { font-size: 0.9rem; color: #8E8E93; }
.card-header .price-value { font-size: 1.6rem; font-weight: bold; margin-top: 0.25rem; }
.cian-button {
margin-top: 1rem; padding: 0.5rem 1rem;
background-color: transparent; color: var(--apple-blue);
border: 2px solid var(--apple-blue); border-radius: 0.6rem;
font-weight: 600; font-size: 0.9rem;
cursor: pointer; text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
display: inline-block;
}
.cian-button:hover { background-color: var(--apple-blue); color: white; }
.metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width:768px) { .metrics { grid-template-columns: repeat(3,1fr); } }
.metric strong { display: block; font-weight: bold; font-size: 0.95rem; }
.metric span { font-size: 1.4rem; color: var(--apple-blue); display: block; margin-top: 0.3rem; }
.metric:hover { background-color: var(--hover-fill); }
.slider {
position: relative; height: var(--slider-height);
overflow: hidden; border-radius: 1rem;
}
#advice-text {color: rgb(28, 28, 30)!important;}
.slider img {
width: 100%; height: var(--slider-height);
object-fit: cover; cursor: pointer;
display: block; transition: transform 0.3s ease;
}
.slider img:hover { transform: scale(1.01); }
.slider button {
position: absolute; top: 50%; transform: translateY(-50%);
background: #fff; border: none;
border-radius: 50%; padding: 0.3rem 0.6rem;
color: var(--apple-blue);
box-shadow: 0 2px 6px rgba(0,0,0,0.1); cursor: pointer;
}
.slider .prev { left: 1rem; } .slider .next { right: 1rem; }
.slider button svg { width: 20px; height: 20px; fill: var(--apple-blue); }
.map { height: var(--slider-height); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.section h2 { font-size:1.2rem; margin-bottom:0.5rem; }
.section ul { list-style:none; padding:0; margin:0; }
.section li { padding:0.4rem 0; display:flex; justify-content:space-between; border-bottom:1px solid #eee; font-size:0.9rem; }
.modal {
display:none; position:fixed; top:0; left:0; width:100vw; height:100vh;
background:rgba(0,0,0,0.8); backdrop-filter: blur(4px);
justify-content:center; align-items:center; z-index:9999;
}
.modal .close {
position:absolute; top:1rem; right:1rem;
width:24px; height:24px;
display:flex; align-items:center; justify-content:center;
cursor:pointer;
}
.modal .close::before,
.modal .close::after {
content: '';
position: absolute;
width: 18px; height: 2px;
background: #1C1C1E;
}
.modal .close::before { transform: rotate(45deg); }
.modal .close::after { transform: rotate(-45deg); }
.modal img {
max-width:90%; max-height:90vh;
border-radius:1rem; cursor: pointer;
}
.modal button {
position:absolute; top:50%; transform:translateY(-50%);
background: #fff; border:none; border-radius:50%; padding: 0.3rem 0.6rem;
color: var(--apple-blue);
box-shadow:0 2px 6px rgba(0,0,0,0.1); cursor:pointer;
}
.modal .prev { left:1rem; } .modal .next { right:1rem; }
.modal button svg { width:20px; height:20px; fill: var(--apple-blue); }

/*Стили для блока Похожие квартиры*/
@media (min-width:1024px) {
.desktop-grid .section.full-width {
grid-column: 1 / -1;
font-size: 0.8rem;
}
}

/* Thumbnail styles as table cells */
.similar-block li img {
display: block;        /* чтобы img вел себя как прямоугольник, а не ячейка */
width: 30px;
height: 30px;
object-fit: cover;
border-radius: 0.25rem; /* скругление углов */
overflow: hidden;       /* на случай, если img окажется больше контейнера */
margin: 0.5rem;         /* отступ, чтобы не прилипать к краям */
font-size: 0.8rem;
}

/* Table layout */
.similar-block ul {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: collapse;
margin: 0;
padding: 0;
}

.similar-block li {
display: table-row;
}
.similar-block li span {
display: table-cell;
padding: 0.5rem;
vertical-align: middle;
/* border-bottom: 1px solid #eee; */
font-size:0.8rem;
overflow-wrap: break-word;
}

.sim-link-button {
margin-top: 1rem; padding: 0.5rem 1rem;
background-color: transparent; color: var(--apple-blue);
border: 2px solid var(--apple-blue); border-radius: 0.6rem;
font-weight: 600; font-size: 0.9rem;
cursor: pointer; text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
display: inline-block;
}

.sim-link-button:hover { background-color: var(--apple-blue)!important; color: white; }

/* Button styling with consistent border */
.similar-block li a.sim-link-button {
display: inline-block !important;
margin: 0.25rem 0.5rem;
padding: 0.3rem 0.8rem;
font-size: 0.6rem;
border-radius: 0.6rem;
white-space: nowrap;
vertical-align: middle;
border: 1px solid #eee;
}

/* Remove bottom border from non-button cells in last row only */
/* .similar-block ul li:last-child span,
.similar-block ul li:last-child img {
border-bottom: none;
} */

/* Header row styles */
.similar-block li.similar-header span {
font-weight: 500;
background: rgba(255,255,255,0.6);
}

/* базовая иконка */
.sim-link-icon {
display: inline-block;
width: 16px;
height: 16px;
background-image: url("icons/external_link_blue.png")!important;
background-size: contain;
background-repeat: no-repeat;
}

/* при hover меняем на белый вариант */
.sim-link-icon:hover {
background-image: url("icons/external_link_white.png")!important;
}

.similar-block li a.sim-link-button.sim-link-icon {
width: auto !important;
height: auto !important;
background-position: center center !important;
background-size: 0.7rem !important;
margin: 0.25rem 0.5rem;
padding: 0.7rem 1rem;
border: 1px solid #eee;
}

.icon-metro {
background: url(icons/icon-metro-50x50.png);
background-position: center center !important;
background-size: 1.4rem !important;
margin: 0rem 0.3rem 0rem 0.5rem;
padding: 0.1rem 0.5rem;
background-repeat: no-repeat;
background-color: transparent;
}

@media (max-width: 1023px) {
nav { display: none; }
.burger { display: flex; }

/* 1) Включаем прокрутку у обёртки */
.similar-block {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

/* 2) Делаем ul не «table», а «inline-table» */
.similar-block ul {
display: block;  /* вместо table */
width: auto;            /* пусть сам себе подберёт нужную ширину */
table-layout: auto;    /* если нужен фиксированный layout */
}

}

.contacts {
  backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 2rem 2rem 0rem;
    background: rgba(255, 255, 255, 0.6);
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
}


.contacts-button {
  padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--apple-blue);
    border: 2px solid var(--apple-blue);
    border-radius: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    margin: 2rem 2rem;

}

.contacts-button:hover {
      background: var(--apple-blue);
      color: #fff;
    }

.contacts-button img {
      width: 1.3em;
      margin-right: 0.6em;
    }

@media (max-width: 600px) {
.contacts-button {
        width: 60%;
        justify-content: center;
        padding: 1rem 0;
        font-size: 1rem;
      }
}

/* Стили для иконок информации и подсказок */
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}


.section h2 {
  font-size: 1.5rem;
}

.info-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
  opacity: 0.6;
}

.info-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Стили для всплывающих подсказок */
.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.tooltip-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 1rem 20px;
  border-bottom: 1px solid #e5e5e7;
}

.tooltip-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1C1C1E;
}

.tooltip-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f2f2f7;
  color: #8e8e93;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tooltip-close:hover {
  background-color: #e5e5e7;
  color: #1C1C1E;
}

.tooltip-body {
  padding: 20px;
  line-height: 1.6;
  color: #3a3a3c;
  font-size: 0.95rem;
}

.tooltip-link {
  color: var(--apple-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--apple-blue);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tooltip-link:hover {
  background-color: var(--apple-blue);
  color: white;
  text-decoration: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .tooltip-content {
    margin: 20px;
    max-width: none;
  }
  
  .tooltip-header {
    padding: 15px 15px 1rem 15px;
  }
  
  .tooltip-body {
    padding: 15px;
  }
  
  .info-icon {
    width: 14px;
    height: 14px;
  }
}





/* ===== СТИЛИ ИЗ TEMPLATE.HTML ===== */

/* Базовые стили для блока "Разница" с полупрозрачностью */
.metric[data-color="red"] {
  background: rgba(255, 235, 238, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  color: #d32f2f !important;
  transition: all 0.3s ease;
}

.metric[data-color="green"] {
  background: rgba(232, 245, 232, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(46, 125, 50, 0.3) !important;
  color: #2e7d32 !important;
  transition: all 0.3s ease;
}

/* Hover эффекты для красного блока */
.metric[data-color="red"]:hover {
  background: rgba(255, 205, 210, 0.9) !important; /* Более контрастный красный фон */
  border-color: rgba(211, 47, 47, 0.5) !important; /* Более темная красная граница */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

/* Hover эффекты для зеленого блока */
.metric[data-color="green"]:hover {
  background: rgba(200, 230, 201, 0.9) !important; /* Более контрастный зеленый фон */
  border-color: rgba(46, 125, 50, 0.5) !important; /* Более темная зеленая граница */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Усиление цвета текста при hover */
.metric[data-color="red"]:hover span {
  color: #c62828 !important; /* Более темный красный текст */
}

.metric[data-color="green"]:hover span {
  color: #2e7d32 !important; /* Более темный зеленый текст */
}

/* Стили для блока с советом - стеклянный стиль */
.advice-metrics {
  grid-template-columns: repeat(1, 1fr) !important;
  margin-top: 1rem;
}

.advice-metric {
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advice-metric span {
  font-size: 1em;
  line-height: 1.5;
  font-weight: 500;
}

/* Стили для разных типов советов - стеклянный стиль */
.advice-metric[data-advice="negative"] {
  background: rgba(255, 235, 238, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  color: #c62828 !important;
}
/* Убираем дублирующий селектор - цвет уже задан выше */

.advice-metric[data-advice="positive"] {
  background: rgba(232, 245, 232, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(46, 125, 50, 0.3) !important;
  color: #2e7d32 !important;
}

/* Базовый стиль для нейтральных советов */
.advice-metric:not([data-advice]) {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1C1C1E !important;
}

/* Стили для цены за м² - стеклянный стиль */
.price-m2-styled {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0.25rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

/* Динамические цвета для цены за м² - стеклянный стиль */
.price-m2-styled[data-price-status="higher"] {
  background: rgba(255, 235, 238, 0.8) !important;
  /* border: 1px solid rgba(211, 47, 47, 0.3) !important; */
  color: #c62828 !important;
}

.price-m2-styled[data-price-status="lower"] {
  background: rgba(232, 245, 232, 0.8) !important;
  /* border: 1px solid rgba(46, 125, 50, 0.3) !important; */
  color: #2e7d32 !important;
}

.price-m2-styled[data-price-status="equal"] {
  background: rgba(0, 122, 255, 0.1) !important;
  /* border: 1px solid rgba(0, 122, 255, 0.3) !important; */
  color: #007AFF !important;
}

/* Стили для массива цен в заголовках */
.price-m2-array {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  margin: 0.25rem 0.5rem;
  background-color: var(--apple-blue);
  color: #eee;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  white-space: nowrap;
  vertical-align: middle;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦ АУТЕНТИФИКАЦИИ ===== */

/* Основной контейнер для страниц аутентификации */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Контейнер формы */
.auth-container {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 20px 20px 0 0;
}

/* Заголовок формы */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 0.5rem 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: #8E8E93;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Форма */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Группы полей */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #1C1C1E;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #E5E5EA;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #1C1C1E;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--apple-blue);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 4px rgba(0, 122, 255, 0.1),
    0 4px 12px rgba(0, 122, 255, 0.15);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: #8E8E93;
  font-weight: 400;
}

/* Кнопка */
.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.auth-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.auth-button:hover::before {
  left: 100%;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:disabled {
  background: #8E8E93;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-button:disabled::before {
  display: none;
}

/* Анимация загрузки */
.loading {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Сообщения */
.auth-message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
  animation: slideDown 0.3s ease;
}

.auth-message.success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.auth-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Футер формы */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E5EA;
}

.auth-footer p {
  color: #8E8E93;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.auth-footer a {
  color: var(--apple-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--apple-blue-dark);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #8E8E93;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--apple-blue);
  transform: translateX(-2px);
}

/* Адаптивность для страниц аутентификации */
@media (max-width: 768px) {
  .auth-page {
    padding: 1rem;
    min-height: calc(100vh - 80px);
  }
  
  .auth-container {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .form-group input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .auth-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem 1rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-header p {
    font-size: 0.9rem;
  }
}

/* ===== СТИЛИ ПОДВАЛА ===== */

/* Footer */
.footer {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4rem;
  padding: 3rem 0 1rem;
  position: relative;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section {
  text-align: center;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand-structura {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #1C1C1E;
}

.footer-brand-capital {
  display: block;
  font-size: 0.9rem;
  color: #8E8E93;
  letter-spacing: 0.3em;
  margin-top: 0.1em;
  line-height: 1.1;
}

.footer-description {
  color: #8E8E93;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  color: var(--apple-blue);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #0056b3;
}

.footer-link img {
  width: 1.2em;
  margin-right: 0.5em;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.footer-copyright {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright span {
  color: #8E8E93;
  font-size: 0.9rem;
}

.footer-status {
  color: var(--apple-blue);
  font-weight: 500;
}

.footer-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-info-label {
  color: #8E8E93;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-info-value {
  color: #1C1C1E;
  font-size: 0.95rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    text-align: left;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-links {
    align-items: flex-start;
  }
  
  .footer-copyright {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== СТИЛИ ДЛЯ PAY_SUCCESS.HTML ===== */

/* Кнопка tg-button */
.tg-button {
  padding: 1.1rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin: 3rem 3rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  overflow: hidden;
}

.tg-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.tg-button:hover::before {
  left: 100%;
}

.tg-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 122, 255, 0.4);
  animation: subtleBounce 0.6s ease-in-out;
}

.tg-button:active {
  transform: translateY(0);
}

.tg-button img {
  width: 1.3em;
  margin-right: 0.6em;
}

/* Разделитель секций */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.1) 50%, transparent 100%);
  margin: var(--section-spacing) 0;
  border: none;
}

/* Telegram CTA секция */
.telegram-cta {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin: 3rem 3rem;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.telegram-icon-wrapper {
  margin-bottom: 2rem;
}

.telegram-main-icon {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 122, 255, 0.3));
}

.telegram-cta-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.telegram-cta-description {
  font-size: 1rem;
  color: #86868b;
  margin: 0 0 2.5rem 0;
  font-weight: 400;
  line-height: 1.4;
}

.telegram-cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.telegram-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255,255,255,0.6);
  border-radius: 0.8rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.benefit-icon {
  font-size: 1.5rem;
}

.benefit-text {
  font-size: 1rem;
  font-weight: 500;
  color: #1C1C1E;
}

.telegram-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: #007aff;
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.telegram-cta-button:hover {
  background: #0051d5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.telegram-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Адаптивность для telegram-cta */
@media (min-width: 768px) {
  .telegram-cta-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .telegram-cta {
    padding: 4rem 3rem;
  }
}

@media (max-width: 600px) {
  .telegram-cta {
    margin: 2rem 0;
    padding: 3rem 2rem;
  }
  
  .telegram-cta-title {
    font-size: 1.5rem;
  }
  
  .telegram-cta-description {
    font-size: 1rem;
  }
  
  .telegram-cta-button {
    width: 50%;
    justify-content: center;
    padding: 1.2rem 2rem;
  }

  .telegram-cta-benefits {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .telegram-benefit {
    padding: 0.8rem;
  }
}

/* ===== СТИЛИ ДЛЯ PAY_ERROR.HTML ===== */

/* Кнопки поддержки */
.support-button {
  padding: 1rem 2.5rem;
  background: var(--apple-blue);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.support-button:hover {
  background: #0056CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.support-button img {
  width: 1.3em;
  margin-right: 0.6em;
}

.retry-button {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--apple-blue);
  border: 2px solid var(--apple-blue);
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
}

.retry-button:hover {
  background: var(--apple-blue);
  color: #fff;
}

/* Контейнеры для кнопок */
.support-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .support-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== СТИЛИ ДЛЯ 404 СТРАНИЦЫ ===== */

/* Основной контейнер 404 страницы */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  margin: 2rem 0;
}

.error-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* Иконка с номером ошибки */
.error-icon {
  margin-bottom: 2rem;
}

.error-number {
  font-size: 8rem;
  font-weight: 700;
  color: var(--apple-blue);
  text-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
  display: block;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Заголовок ошибки */
.error-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

/* Описание ошибки */
.error-description {
  font-size: 1.1rem;
  color: #8E8E93;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* Блок с предложениями */
.error-suggestions {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.error-suggestions h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
  text-align: center;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-suggestions li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  color: #48484A;
  position: relative;
  padding-left: 1.5rem;
}

.error-suggestions li:last-child {
  border-bottom: none;
}

.error-suggestions li::before {
  content: '•';
  color: var(--apple-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.8rem;
}

.error-suggestions a {
  color: var(--apple-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.error-suggestions a:hover {
  color: var(--apple-blue-dark);
  text-decoration: underline;
}

/* Кнопки действий */
.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.error-button {
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.error-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.error-button.primary:hover::before {
  left: 100%;
}

.error-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.error-button.secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 2px solid var(--apple-blue);
}

.error-button.secondary:hover {
  background: var(--apple-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.error-button img {
  width: 1.2em;
  height: 1.2em;
}

/* Секция помощи */
.help-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.help-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
}

.help-section p {
  font-size: 1.1rem;
  color: #8E8E93;
  margin: 0 0 2rem 0;
}

.help-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.help-option {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.help-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.3);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.help-option h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
}

.help-option p {
  font-size: 1rem;
  color: #8E8E93;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.help-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.help-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.help-link:hover::before {
  left: 100%;
}

.help-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  text-decoration: none;
  color: white;
}

/* Адаптивность для 404 страницы */
@media (max-width: 768px) {
  .error-page {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  .error-number {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .error-description {
    font-size: 1rem;
  }
  
  .error-suggestions {
    padding: 1.5rem;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-button {
    width: 100%;
    max-width: 300px;
  }
  
  .help-section {
    padding: 2rem 1rem;
  }
  
  .help-section h2 {
    font-size: 1.5rem;
  }
  
  .help-options {
    gap: 1.5rem;
  }
  
  .help-option {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .error-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .help-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Стили для аналитики */
.breadcrumbs {
  margin: 20px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumbs .current {
  color: #333;
  font-weight: 500;
}

.analytics-hero {
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(255,255,255,0.8) 50%, 
    rgba(0, 122, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.analytics-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #1d1d1f 0%, var(--apple-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  color: #8E8E93;
  margin: 0;
  line-height: 1.6;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #8E8E93;
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  display: inline-block;
}

.stat-change.positive {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.stat-change.neutral {
  background: rgba(0, 122, 255, 0.1);
  color: var(--apple-blue);
}

.analytics-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters-sidebar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
  position: sticky;
  top: 100px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.filters-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1C1C1E;
}

.reset-filters {
  background: none;
  border: none;
  color: var(--apple-blue);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-filters:hover {
  background: rgba(0, 122, 255, 0.1);
}

.filters-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.filter-group label {
  font-weight: 600;
  color: #1C1C1E;
  font-size: 0.95rem;
}

.district-search-input {
  padding: 0.8rem 1rem;
  border: 1px solid #E5E5EA;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.district-search-input:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.district-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E5E5EA;
  border-radius: 0.6rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.district-suggestion {
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #F2F2F7;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.district-suggestion:hover {
  background: rgba(0, 122, 255, 0.1);
}

.district-suggestion:last-child {
  border-bottom: none;
}

.district-suggestion.highlighted {
  background: rgba(0, 122, 255, 0.1);
}

.checkbox-group {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #E5E5EA;
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin: 0.3rem 0;
  padding: 0.3rem 0;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 0.8rem;
  transform: scale(1.1);
  accent-color: var(--apple-blue);
}

.checkbox-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  flex: 1;
  font-size: 0.9rem;
}

.checkbox-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-radius: 0.4rem;
  padding: 0.3rem 0.5rem;
  margin: 0.3rem -0.5rem;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.range-input {
  flex: 1;
}

.range-input input {
  width: 75%;
  padding: 0.8rem 1rem;
  border: 1px solid #E5E5EA;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
}

.range-input input:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.range-separator {
  color: #8E8E93;
  font-weight: 500;
  font-size: 0.9rem;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.filter-button {
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.filter-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.filter-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.filter-button.secondary {
  background: transparent;
  color: #8E8E93;
  border: 2px solid #E5E5EA;
}

.filter-button.secondary:hover {
  background: #F2F2F7;
  color: #1C1C1E;
}

.results-area {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
  overflow: hidden;
}

.results-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 122, 255, 0.1);
  background: rgba(248, 249, 250, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1C1C1E;
}

.results-count {
  font-size: 0.9rem;
  color: #8E8E93;
  font-weight: 500;
}

.results-content {
  min-height: 500px;
  padding: 3rem 2rem;
}

.empty-state {
  text-align: center;
  color: #8E8E93;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.empty-state h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: #1C1C1E;
  font-weight: 600;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.applied-filters {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 122, 255, 0.05);
  border-radius: 0.8rem;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.applied-filters h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1C1C1E;
}

.applied-filters ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: none;
}

.applied-filters li {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: #8E8E93;
}

.applied-filters li strong {
  color: #1C1C1E;
}

/* Адаптивность для аналитики */
@media (max-width: 1024px) {
  .analytics-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filters-sidebar {
    position: static;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}

/* ===== СТИЛИ ИЗ DASHBOARD.HTML ===== */
.welcome-section {
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(255,255,255,0.8) 50%, 
    rgba(0, 122, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.welcome-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.welcome-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #1d1d1f 0%, var(--apple-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-text p {
  font-size: 1.1rem;
  color: #8E8E93;
  margin: 0;
  line-height: 1.6;
}

.welcome-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--apple-blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #8E8E93;
  font-weight: 500;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.tools-section {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 0.5rem 0;
}

.section-header p {
  font-size: 1rem;
  color: #8E8E93;
  margin: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Стили для tools-section внутри left блока */
.left .tools-section {
  margin-top: 0;
}

.left .tools-section .section-header {
  margin-bottom: 1rem;
}

.left .tools-section .section-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.left .tools-section .section-header p {
  font-size: 0.9rem;
  color: #8E8E93;
}

.left .tools-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .left .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .left .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card.primary {
  border: 2px solid var(--apple-blue);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(255,255,255,0.9) 100%);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--apple-blue) 0%, #0051d5 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: rgba(0, 122, 255, 0.2);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 2rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
  opacity: 1;
}

.tool-badge {
  background: var(--apple-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.tool-badge.development {
  background: #ff9700;
  color: white;
}

.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 0.8rem 0;
}

.tool-card p {
  font-size: 0.95rem;
  color: #8E8E93;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature {
  font-size: 0.8rem;
  color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
}

.tool-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 122, 255, 0.1);
  color: var(--apple-blue);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-card, .activity-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.stats-card h3, .activity-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0 0 1rem 0;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-name {
  font-size: 0.9rem;
  color: #8E8E93;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1C1C1E;
}

.stat-value.positive {
  color: #2e7d32;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.activity-icon {
  font-size: 1.2rem;
  opacity: 0.7;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1C1C1E;
  margin-bottom: 0.2rem;
}

.activity-time {
  font-size: 0.8rem;
  color: #8E8E93;
}

.access-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.access-modal {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1C1C1E;
  margin: 0;
}

.modal-content p {
  font-size: 1rem;
  color: #8E8E93;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-button {
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.modal-button.primary {
  background: var(--gradient-primary);
  color: white;
}

.modal-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.modal-button.secondary {
  background: transparent;
  color: #8E8E93;
  border: 2px solid #E5E5EA;
}

.modal-button.secondary:hover {
  background: #F2F2F7;
  color: #1C1C1E;
}

@media (max-width: 768px) {
  .welcome-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .welcome-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    gap: 1rem;
  }
  
  .stat-item .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
    width: 120px;
    min-width: 120px;
    font-variant-numeric: tabular-nums;
  }
  
  .stat-item .stat-label {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: left;
    font-weight: 500;
    flex: 1;
    min-width: 0;
  }

  .welcome-text h1 {
    font-size: 1.8rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Стили для сообщения "Скоро появится" */
.coming-soon-message {
  text-align: center;
  padding: 2rem 1rem;
  color: #8e8e93;
}

.coming-soon-message p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== СТИЛИ ИЗ ANALYTICS.HTML ===== */
.stats-section.variant1 {
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

/* Карточки квартир */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .apartments-grid {
    grid-template-columns: 1fr;
  }
}

.apartment-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(0, 122, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.apartment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.3);
}

.apartment-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-info {
  padding: 1.5rem;
}

.apartment-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007AFF;
  margin-bottom: 0.5rem;
}

.apartment-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007AFF;
  margin-bottom: 0.5rem;
}

.apartment-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #1d1d1f;
}

.apartment-details div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apartment-details strong {
  color: #8E8E93;
  font-weight: 600;
}

.apartment-address {
  font-size: 0.9rem;
  color: #1d1d1f;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.apartment-link {
  display: block;
  background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 1rem;
}

.apartment-link:hover {
  background: linear-gradient(135deg, #0056CC 0%, #0044AA 100%);
  transform: translateY(-2px);
}

/* Пагинация */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-btn {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.3);
  color: #007AFF;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.5);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #8E8E93;
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  color: #8E8E93;
  font-size: 1.1rem;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Иконка метро */
.icon-metro {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/style/icons/icon-metro-50x50.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
  vertical-align: middle;
}

.stats-section.variant1 .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-section.variant1 .section-header h3 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1d1d1f 0%, #007AFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stats-section.variant1 .section-header p {
  color: #8E8E93;
  font-size: 1.1rem;
}

/* Горизонтальные фильтры для analytics-test.html */
.filters-section-horizontal {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e5e7;
}

.filters-form-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

.filters-form-horizontal .filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.filters-form-horizontal .filter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.filters-form-horizontal .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 120px;
  overflow-y: auto;
}

.filters-form-horizontal .range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-form-horizontal .range-input {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  transition: border-color 0.2s;
  min-width: 80px;
}

.filters-form-horizontal .range-input:focus {
  outline: none;
  border-color: #007AFF;
}

.filters-form-horizontal .range-separator {
  color: #8e8e93;
  font-size: 0.9rem;
}

.filters-form-horizontal .filter-button {
  background: #007AFF;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  height: fit-content;
}

.filters-form-horizontal .filter-button:hover {
  background: #0056CC;
}

/* Стили карточек из variant6 */
.apartments-grid.variant6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}


/* Адаптивность для горизонтальных фильтров */
@media (max-width: 768px) {
  .filters-form-horizontal {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filters-form-horizontal .filter-group {
    min-width: auto;
  }
  
  .apartments-grid.variant6 {
    grid-template-columns: 1fr;
  }
}

/* Guest CTA Section Styles */
.guest-cta-section {
  background: var(--gradient-bg);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gray-medium);
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cta-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
}

.cta-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.cta-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.cta-button.secondary {
  background: white;
  color: var(--apple-blue);
  border: 2px solid var(--apple-blue);
}

.cta-button.secondary:hover {
  background: var(--hover-fill);
  transform: translateY(-2px);
}


/* Mobile Responsive for CTA */
@media (max-width: 768px) {
  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-button {
    justify-content: center;
  }
  
}

/* Стили для модального окна доступа */
.access-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.access-modal {
  background: white;
  border-radius: 1rem;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.access-modal .modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.access-modal .modal-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.access-modal .modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.access-modal .modal-content {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.access-modal .modal-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.5;
}

.access-modal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.access-modal .modal-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.access-modal .modal-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  font-size: 1rem;
  padding: 0.9rem 2rem;
  font-weight: 700;
}

.access-modal .modal-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
}

.access-modal .modal-button.secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
}

.access-modal .modal-button.secondary:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

