/* ==========================================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Скрытый H1 для SEO */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* НАСТРОЙКА ДЛЯ ИЗОБРАЖЕНИЙ НА iOS */
@supports (-webkit-touch-callout: none) {
  img, .zoomable-img img, .category-image img, .parallax-bg {
    max-width: 100%;
    height: auto;
  }
  
  .category-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #000000;
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   HEADER / ШАПКА
   ========================================================================== */
.header {
  position: static;
  padding: 15px 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  margin-bottom: 0;
}

.logo-link {
  text-decoration: none;
  display: block;
}

.logo {
  height: 100px;
  width: auto;
  filter: brightness(1.2);
  will-change: transform;
}

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА */
.lang-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 101;
}

.lang-switcher a {
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

.lang-switcher a:hover {
  background: rgba(0, 123, 255, 0.2);
}

/* ==========================================================================
   PARALLAX SECTION / ПАРАЛЛАКС
   ========================================================================== */
.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('/image/hotel/soho-main.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.overlay-description {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-description h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.overlay-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   ОСНОВНОЙ КОНТЕНТ - НОМЕРА
   ========================================================================== */
.all-categories-section {
  padding: 60px 20px;
  background-color: #000;
  max-width: 1600px;
  margin: 0 auto;
}

.all-categories-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.all-categories-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.category-card {
  background: linear-gradient(145deg, #1a1a1a, #222);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  will-change: transform, opacity;
}

.category-card.show {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.room-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
  white-space: nowrap;
}

/* Более простое и надежное решение с flex для группы бейджей */
.room-badge-group {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px; /* Расстояние между бейджами */
  z-index: 2;
}

.room-badge-group .room-badge {
  position: static; /* Убираем absolute */
  margin: 0; /* Убираем margin */
  transform: none; /* Убираем transform */
}

.badge-stds { background: linear-gradient(135deg, #3498db, #2980b9); }
.badge-stdt { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.badge-busd { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.badge-bufv { background: linear-gradient(135deg, #f39c12, #d35400); }
.badge-bups { background: linear-gradient(135deg, #1abc9c, #16a085); }
.badge-bupv { background: linear-gradient(135deg, #d35400, #a35200); }
.badge-bupms { background: linear-gradient(135deg, #34495e, #2c3e50); }
.badge-bupmv { background: linear-gradient(135deg, #8e44ad, #732d91); }

.category-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.zoomable-img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

.zoomable-img:hover img {
  transform: scale(1.05);
}

.category-content {
  padding: 25px;
}

.category-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px; /* Фиксированная высота */
  line-height: 1.3;
}

.category-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 15px;
  min-height: 70px; /* Фиксированная высота */
  text-align: center;
}

/* ==========================================================================
   СИСТЕМА ИКОНОК УДОБСТВ С УЛУЧШЕННЫМИ ЭФФЕКТАМИ
   ========================================================================== */

.amenities-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.amenity-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Эффекты для иконок обычных номеров (синие) */
.amenity-icon i {
  font-size: 1.3rem;
  color: #007bff;
  transition: all 0.3s ease;
}

.amenity-icon:hover {
  background-color: rgba(0, 123, 255, 0.2);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.amenity-icon:hover i {
  color: #fff;
  transform: scale(1.2);
  text-shadow: 0 0 8px #007bff;
}

/* Подсказки */
.amenity-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  margin-bottom: 5px;
  pointer-events: none;
}

.amenity-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

.room-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-icon {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: #aaa;
  display: block;
}

/* ==========================================================================
   ПРЕЗИДЕНТСКИЙ НОМЕР
   ========================================================================== */
.president-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.president-card {
  background: linear-gradient(145deg, #2a1a0a, #1a0a00);
  border-radius: 15px;
  padding: 40px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  will-change: transform, opacity;
}

.president-card.show {
  opacity: 1;
  transform: translateY(0);
}

.president-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.president-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.president-image {
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.president-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.president-image .zoomable-img:hover img {
  transform: scale(1.05);
}

.president-details {
  padding: 10px;
}

.president-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffd700;
  text-align: left;
}

.president-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #ddd;
  text-align: left;
}

/* Иконки удобств для президентского номера */
.president-amenities {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.president-amenities .amenity-icon i {
  color: #ffd700;
}

.president-amenities .amenity-icon {
  background-color: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.president-amenities .amenity-icon:hover {
  background-color: rgba(255, 215, 0, 0.2);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.president-amenities .amenity-icon:hover i {
  color: #fff;
  text-shadow: 0 0 8px #ffd700;
}

/* Золотые спецификации для президентского номера */
.president-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.05));
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  flex-wrap: wrap;
}

.president-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.president-stat-icon {
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 5px;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.president-stat-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
  display: block;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.president-stat-label {
  font-size: 0.85rem;
  color: #d4af37;
  display: block;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img-container {
  position: relative;
  width: 100%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  animation: zoomIn 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2002;
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.close:hover {
  color: #ddd;
}

.indicators {
  margin-top: 15px;
  display: flex;
  gap: 8px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #555;
  cursor: pointer;
}

.indicator-dot.active {
  background-color: #fff;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 1400px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .president-content {
    grid-template-columns: 1fr;
  }
  
  .president-image {
    height: 300px;
  }
  
  .president-title,
  .president-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .parallax-bg {
    background-size: cover;
    background-position: center center;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .category-image {
    height: 260px;
  }
  
  .logo {
    height: 80px;
  }
  
  .overlay-description {
    padding: 20px;
    margin: 0 15px;
  }
  
  .overlay-description h2 {
    font-size: 2rem;
  }
  
  .overlay-description p {
    font-size: 1rem;
    text-align: center;
  }
  
  .all-categories-title {
    font-size: 2.2rem;
  }
  
  .room-stats {
    gap: 15px;
  }
  
  .stat-item {
    min-width: 85px;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 70%;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .close {
    font-size: 30px;
    top: 15px;
    right: 20px;
  }
  
  .category-description {
    text-align: center;
  }
  
  /* Адаптивность иконок */
  .amenity-icon {
    width: 32px;
    height: 32px;
  }
  
  .amenity-icon i {
    font-size: 1.1rem;
  }
  
  .amenity-icon:hover {
    transform: scale(1.2);
  }
  
  /* Адаптивность президентского номера */
  .president-card {
    padding: 25px 15px;
  }
  
  .president-image {
    height: 250px;
  }
  
  .president-title {
    font-size: 2rem;
  }
  
  .president-description {
    font-size: 1rem;
  }
  
  .president-stat-item {
    min-width: 80px;
  }
  
  .president-stat-icon {
    font-size: 1.5rem;
  }
  
  .president-stat-value {
    font-size: 1rem;
  }
}

@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .category-image {
    height: 200px;
  }
  
  .category-image img {
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .parallax-bg {
    background-attachment: scroll !important;
  }
  
  .president-image {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .lang-switcher {
    top: 10px;
    right: 12px;
  }
  
  .lang-switcher a {
    font-size: 0.85rem;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .category-image {
    height: 200px;
  }
  
  .category-image img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    object-fit: cover;
    object-position: center;
  }
  
  .category-content {
    padding: 20px 15px;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .room-stats {
    gap: 10px;
  }
  
  .amenity-icon {
    width: 30px;
    height: 30px;
  }
  
  .amenity-icon i {
    font-size: 1rem;
  }
  
  .amenities-icons,
  .president-amenities {
    gap: 10px;
  }
  
  .amenity-icon:hover {
    transform: scale(1.15);
  }
  
  .president-card {
    padding: 20px;
  }
  
  .president-title {
    font-size: 1.8rem;
  }
  
  .president-image {
    height: 200px;
  }
  
  .president-stats {
    gap: 15px;
    padding: 15px;
  }
  
  .president-stat-item {
    min-width: 70px;
  }
  
  .president-stat-icon {
    font-size: 1.4rem;
  }
  
  .president-stat-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .lang-switcher a {
    font-size: 0.8rem;
    padding: 2px 5px;
  }
  
  .category-image {
    height: 180px;
  }
  
  .president-image {
    height: 180px;
  }
  
  .amenity-icon {
    width: 28px;
    height: 28px;
  }
  
  .amenity-icon i {
    font-size: 0.9rem;
  }
  
  .amenity-icon:hover {
    transform: scale(1.1);
  }
}

/* ==========================================================================
   SEARCH FORM (если нужно)
   ========================================================================== */
.search-form-container {
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
}

.tl-container {
  max-width: 1200px;
  margin: 0 auto;
}