/* Стили для модального окна отправки координат */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.location-modal-content {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.location-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.location-close-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: rotate(90deg);
}

.location-modal-title {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #f8fafc;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    padding: 15px;
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group small {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Блок с информацией об устройстве */
.location-info {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.info-item i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
}

.location-status {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.location-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.location-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.location-status:empty {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#send-location-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#send-location-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

#send-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .location-modal {
        padding: 15px;
    }
    
    .location-modal-content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .location-modal-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 12px;
    }
    
    .location-info {
        padding: 12px;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
    
    #send-location-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .location-modal-content {
        padding: 20px 15px;
    }
    
    .location-modal-title {
        font-size: 1.2rem;
    }
    
    .location-close-btn {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}

/* Анимация загрузки */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Кнопка ГЕО */
 .btn-winter {
      background: linear-gradient(135deg, var(--winter), var(--winter-dark));
      color: white;
      border: none;
      box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    .btn-winter:hover {
      box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
    }


/* Рекламный баннер - ИСПРАВЛЕННЫЕ СТИЛИ */
    .winter-banner {
      position: fixed;
      top: -130px;
      left: 0;
      width: 100%;
      background: linear-gradient(135deg, var(--winter), var(--winter-dark));
      color: white;
      padding: 12px 0;
      text-align: center;
      z-index: 999;
      box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
      transition: top 0.5s ease;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }

    .winter-banner.show {
      top: 60px; /* Высота header */
    }

    .winter-banner-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
    }

    .winter-banner-text {
      flex: 1;
      text-align: center;
      padding-right: 40px; /* Место для крестика */
    }

    .winter-banner-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .winter-banner-desc {
      font-size: 0.85rem;
      opacity: 0.9;
    }

    /* ИСПРАВЛЕННЫЙ КРЕСТИК - теперь в правом верхнем углу баннера */
    .winter-banner-close {
      position: absolute;
      top: 0px;
      left: 5px;
      background: none;
      border: none;
      color: white;
      font-size: 1rem;
      cursor: pointer;
      padding: 5px;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .winter-banner-close:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.1);
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    
   /* Премиум вариант Яндекс виджета */
.yandex-rating-premium {
  display: inline-flex;
  align-items: center; /* Выравниваем по центру вертикально */
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, #1a1f2e, #0f172a);
  border: 2px solid;
  border-color: var(--primary);
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 52px; /* Фиксированная высота */
  min-width: 180px;
  max-width: 100%;
  box-sizing: border-box;
}

.yandex-rating-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.rating-badge {
  display: flex;
  align-items: center; /* Выравниваем по центру вертикально */
  gap: 11px;
  justify-content: center;
  height: 100%; /* Занимает всю высоту контейнера */
}

.rating-stars {
  color: #ffd700;
  font-size: 1.4rem; /* УВЕЛИЧИЛ звёзды */
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center; /* Центрируем по вертикали */
  height: 100%; /* Занимает всю высоту контейнера */
  padding-top: 2px; /* Легкая корректировка по вертикали */
}

.rating-value {
  font-weight: 700;
  font-size: 1.6rem; /* УВЕЛИЧИЛ оценку */
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center; /* Центрируем по вертикали */
  height: 100%; /* Занимает всю высоту контейнера */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .yandex-rating-premium {
    width: 100% !important;
    max-width: 480px !important;
    justify-content: center;
    padding: 10px 18px;
    height: 48px; /* Фиксированная высота для мобилки */
    gap: 14px;
    display: flex !important;
    margin: 0 auto !important;
  }
  
  .rating-badge {
    height: 100%; /* Занимает всю высоту */
  }
  
  .rating-stars {
    font-size: 2.0rem; /* Больше звёзды на мобилке */
    align-items: center;
    height: 100%;
    padding-top: 1px;
  }
  
  .rating-value {
    font-size: 1.5rem; /* Больше оценка на мобилке */
    align-items: center;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .yandex-rating-premium {
    max-width: 280px !important;
    padding: 9px 16px;
    height: 46px;
    gap: 12px;
  }
  
  .rating-stars {
    font-size: 1.6rem;
    padding-top: 1px;
  }
  
  .rating-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .yandex-rating-premium {
    padding: 8px 15px;
    height: 44px;
    gap: 10px;
  }
  
  .rating-stars {
    font-size: 1.5rem;
  }
  
  .rating-value {
    font-size: 1.3rem;
  }
}

/* Стили для региональных ссылок */
.article-link-region {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08); /* Полупрозрачный белый фон */
    backdrop-filter: blur(5px); /* Легкое размытие для эффекта стекла */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-link-region::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%; /* Начинаем с середины */
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%); /* Центрируем */
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}

.article-link-region:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15); /* Более яркий фон при наведении */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px); /* Легкий подъем */
}

.article-link-region:hover::after {
    width: 100%; /* Расширяем до полной ширины */
    left: 0; /* Начинаем слева */
    transform: translateX(0); /* Убираем трансформацию */
    height: 3px; /* Немного толще при наведении */
}

/* Альтернативный вариант с подчеркиванием */
.article-link-region-underline {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.article-link-region-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.article-link-region-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Вариант с иконкой локации */
.article-link-region-icon {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 4px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.article-link-region-icon:hover {
    color: var(--primary-dark);
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.article-link-region-icon::before {
    content: '📍';
    font-size: 0.9em;
}
 
 /* Ссылки на услуги */
.article-link-service {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
}

.article-link-service:hover {
    color: var(--accent-dark);
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* Ссылки на контакты */
.article-link-contact {
    color: var(--winter);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--winter);
    transition: all 0.3s ease;
}

.article-link-contact:hover {
    color: var(--winter-dark);
    border-bottom: 1px solid var(--winter-dark);
}

/* Ссылки на статьи */
.article-link-internal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.article-link-internal::after {
    content: ' ↗';
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.article-link-internal:hover::after {
    opacity: 1;
}    

