/* ========================================================================== 
   CSS-переменные и сброс
   ========================================================================== */
:root {
  /* Цветовая палитра */
  --color-pink:    #f4c7df;
  --color-blue:    #c3e6f8;
  --color-white:   #fefefe;
  --color-text:    #333;

  /* Радиусы скруглений */
  --radius-md:     20px;
  --radius-lg:     40px;
  --z-video: 15;

  /* Стеклянные фоны */
  --navbar-bg:       rgba(255,255,255,0.7);
  --mobile-menu-bg:  rgba(195,230,248,0.7);
  --glass:           rgba(255,255,255,0.8);
  --bg-container:    rgba(255,255,255,0.8);
  /* Стеклянные фоны */
  --star-color:     #ffd700;
  --accent-color:   #327CAD;
}

*,
*::before,
*::after {
  margin:     0;
  padding:    0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
  min-height: 100vh;
  overflow-x: hidden;
}

/* Контейнер */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================================================== 
   Основные стили для текста
   ========================================================================== */

/* ========================================================================== 
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================================================== */

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #f4c7df, #c3e6f8);
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}
#videoModal, #cleaningModal, #photoModal, #vetModal, #groomingModal, #staffModal, #walkModal, #individualModal {
  justify-content: center;
  align-items: center;
  text-align: right;
}
.modal-content > button:first-child {
  padding-right: 10px;
}

.modal-header {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #e91e63;
}

/* Форма */
.booking-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 7px solid rgba(255,255,255,0.8);
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff66cc;
  box-shadow: 0 0 0 3px rgba(255, 102, 204, 0.1);
}

/* Поля дат */
.date-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-inputs input {
  flex: 1;
}

.date-separator {
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Чекбоксы - ИСПРАВЛЕННЫЕ СТИЛИ */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.5);
}

.checkbox-label:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
  display: none; /* Скрываем нативный чекбокс */
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 7px solid #666;
  border-radius: 5px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #ff66cc;
  border-color: #ff66cc;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.checkbox-text {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* Информационный блок для простых животных */
.simple-room-info {
  background: rgba(255,255,255,0.9);
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 4px solid #ff66cc;
}

.simple-room-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.simple-room-info p::before {
  content: '✓';
  color: #ff66cc;
  font-weight: bold;
}

/* Группы услуг */
.services-category {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.services-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.services-category h4 {
  margin: 0 0 0.8rem 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Блок с ценой */
.price-summary {
  background: rgba(255,255,255,0.9);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  border: 2px solid rgba(255,255,255,0.5);
}

.price-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.price-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.price-line.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff3366;
  border-top: 2px solid rgba(255,255,255,0.5);
  padding-top: 0.8rem;
  margin-top: 0.5rem;
}

/* Кнопка отправки */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff3366, #ff6699);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Подсказки */
small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .booking-form {
    padding: 1.5rem;
  }
  
  .date-inputs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .date-separator {
    text-align: center;
    margin: 0.5rem 0;
  }
  
  .price-line {
    font-size: 0.9rem;
  }
  
  .price-line.total {
    font-size: 1.1rem;
  }
}


@media (max-width: 480px) {
  .modal-header {
    padding: 1rem;
  }
  
  .booking-form {
    padding: 1rem;
  }
  
  .checkbox-label {
    padding: 0.6rem;
  }
  
  .checkmark {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .checkbox-text {
    font-size: 0.9rem;
  }
  
  .submit-btn {
    padding: 14px;
    font-size: 1.1rem;
  }
}

.warning-text {
  background-color: rgba(255, 107, 107, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #ff6b6b;
  margin-top: 8px;
}

.price-line.additional {
  color: #ff6b6b;
  font-weight: 500;
}

.price-description {
  font-size: 0.85em;
  color: #666;
  margin-left: 20px;
  margin-bottom: 5px;
}
/* Стили для подсказки с детализацией услуг */
.services-tooltip {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 0.85em;
  max-width: 300px;
}
.details-description {
  margin-top: 10px;
  font-size: 0.85em;
  line-height: 1.4;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #f55f90;
}

.details-description > div {
  margin-bottom: 8px;
}

.details-description div div {
  margin: 3px 0;
  padding-left: 10px;
}
/* ========================================================================== 
   КОНЕЦ ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================================================== */

/* Секция "О нас" */
.about-us {
  padding: 4rem 0;
  background: transparent;
  position: relative; /* Важно для sticky */
}

.about-us h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #333;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Блок с видео */
.about-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.about-video video {
  width: auto;
  height: auto;
  max-height: 95vh;
  max-width: 92vw;
  display: block;
  border-radius: var(--radius-lg);
  margin: 0 auto;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem;
  text-align: center;
}

.video-overlay p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Блок с соцсетями и рейтингом */
.about-social {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  align-self: center; 
  height: fit-content;
}
.social-section,
.rating-section {
  background: rgb(255 255 255 / 60%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.social-section h3,
.rating-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #333;
}

.social-section p,
.rating-section p {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 1rem;
}

/* Социальные ссылки */
.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.9);
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-link.telegram:hover {
  background: #0088cc;
  color: white;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-link.tiktok:hover {
  background: #000;
  color: white;
}

.social-link.vk:hover {
  background: #0077ff;
  color: white;
}

/* Рейтинг */
.rating-widget {
  margin-bottom: 1.5rem;
  text-align: center;
}

.rating-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.3);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff3366;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .social-links {
    grid-template-columns: 1fr;
  }
  
  .rating-stats {
    grid-template-columns: 1fr;
  }
  
  .social-section,
  .rating-section {
    padding: 1.5rem;
  }
  
  .video-overlay {
    padding: 1.5rem;
  }
  
  .video-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-us {
    padding: 2rem 0;
  }
  
  .about-us h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .social-section,
  .rating-section {
    padding: 1rem;
  }
  
  .social-link {
    padding: 0.75rem;
  }
  
  .stat-item {
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
}
.contact-form-section {
  background: rgb(255 255 255 / 60%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form-section h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  color: #333;
  text-align: center;
}

.simple-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simple-contact-form .form-group {
  margin-bottom: 0;
}

.simple-contact-form .form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.simple-contact-form .form-group input {
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
}

.simple-contact-form .submit-btn {
  width: 100%;
  max-width: 350px;
  padding: 12px;
  background: linear-gradient(135deg, #ff3366, #ff6699);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  margin: 0 auto;
}

.simple-contact-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.form-note {
  text-align: center;
  margin-top: 1rem;
}

.form-note p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 1.5rem;
  }
  
  .contact-form-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 1rem;
  }
  
  .contact-form-section h3 {
    font-size: 1.1rem;
  }
}

/* Промо-блок со скидкой */
.promo-discount {
  background: linear-gradient(135deg, #b1e5f5b3, #efd4e9, #f9afd8);
  border-radius: var(--radius-md);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.promo-discount::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float 20s linear infinite;
  pointer-events: none;
}

.promo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.promo-icon {
  font-size: 3rem;
  animation: bounce 2s ease-in-out infinite;
  flex-shrink: 0;
}

.promo-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.promo-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
  color: #333;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.promo-btn {
  background: linear-gradient(135deg, #ff3366, #ff6699);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.promo-note {
  font-size: 0.8rem;
  opacity: 0.8;
  text-align: center;
  color: #333;
}

/* Анимации */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .promo-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .promo-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .promo-icon {
    font-size: 2.5rem;
  }
  
  .promo-text h3 {
    font-size: 1.2rem;
  }
  
  .promo-text p {
    font-size: 0.9rem;
  }
  
  .promo-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .promo-discount {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }
  
  .promo-text h3 {
    font-size: 1.1rem;
  }
  
  .promo-text p {
    font-size: 0.85rem;
  }
}

/* Альтернативный более спокойный вариант дизайна */
/*
.promo-discount {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 0;
  margin-top: 4rem;
}
*/

.hero-text {
  /* Типографика */
  /* Базовые настройки */
  text-align: left;
  max-width: 600px;
  
  /* Управление переносами */
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: manual;
  
  /* Балансировка строк */
  text-wrap: pretty;
}

/* Класс для полной фразы "пока вы в отъезде" */
.phrase-block {
  display: inline-block;
  white-space: nowrap;
}

/* Неразрывная связка для предлога и следующего слова */
.no-break {
  display: inline-block;
  white-space: nowrap;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  .hero-text {
    font-size: 1.1rem;
  }
  
  .phrase-block,
  .no-break {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .hero-text {
    font-size: 1rem;
  }
}

/* Общий класс для блочных строк */
.block-line {
  display: block;
  line-height: inherit; /* Наследует межстрочный интервал */
}

/* Контейнер для строк */
.line-container {
  display: flex;
  flex-direction: column;
}

/* Расстояние между строками */
.line-gap-sm > * + * { margin-top: 0.4rem; }
.line-gap-md > * + * { margin-top: 0.8rem; }
.line-gap-lg > * + * { margin-top: 1.2rem; }

/* Адаптация */
@media (max-width: 480px) {
  .line-gap-sm > * + * { margin-top: 0.3rem; }
  .line-gap-md > * + * { margin-top: 0.6rem; }
}


.rub::after {
  content: "\20BD";
  font-size: 1em;
  vertical-align: sub;
  color: #00D06C;
  font-weight: 600;
  font-family: inherit;
}

.rub-price {
  font-size: 1.5em;
  font-weight: 700;
  color: #00D06C;
  vertical-align: baseline;
}
/* ========================================================================== 
   Навигация (десктоп + мобильная)
   ========================================================================== */
header.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1000;
  transition: transform 0.3s ease;
  background: transparent;
}

.navbar-bg {
  position: absolute;
  inset: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-radius: inherit;
  z-index: 1;
}

header.navbar.hidden {
  transform: translateY(-100%);
}

.logo {
  position: relative;
  z-index: 2;
}

/* Десктоп-меню */
.nav {
  display: none;
  gap: 2rem;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  z-index: 2;
}
.nav a:hover {
  color: var(--color-pink);
}

/* Бургер-кнопка */
#menuBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 4;
}
#burgerIcon {
  position: absolute;
  top: 50%; left: 0;
  width: 24px; height: 2px;
  background-color: #000;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}
#burgerIcon::before,
#burgerIcon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background-color: #000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
#burgerIcon::before { top: -8px; }
#burgerIcon::after  { top:  8px; }
#menuBtn.active #burgerIcon {
  background: transparent;
}
#menuBtn.active #burgerIcon::before {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #e91e63;
}
#menuBtn.active #burgerIcon::after {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #e91e63;
}

/* Мобильное меню */
.nav-links {
  display: flex;
  position: fixed;
  top: 0; right: 0;
  width: 90vw; height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 3;
}
.nav-links.active {
  transform: translateX(0);
}
.nav-links a {
  position: relative;
  display: block;
  width: 60%;
  margin: 0.5rem 0;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #327CAD;
  background: var(--color-blue);
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 6px -1px rgba(102,204,255,0.2),
    0 2px 4px -1px rgba(102,204,255,0.06),
    inset 0 0 12px rgba(255,255,255,0.4);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  z-index: 1;
}
.nav-links a:hover {
  background: var(--color-pink);
  color: #BD6C93;
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px -1px rgba(102,204,255,0.3),
    0 4px 6px -1px rgba(102,204,255,0.1),
    inset 0 0 16px rgba(255,255,255,0.6);
}
.nav-links a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.nav-links a:hover::before {
  left: 100%;
}

/* Показываем/скрываем меню */
@media (min-width: 481px) {
  .nav      { display: flex; }
  #menuBtn  { display: none; }
}

/* Стили для модального окна с описанием номера */
.room-details {
  max-width: 800px;
  padding: 0;
}

.room-details-header {
  background: linear-gradient(135deg, #ff66cc, #ff3366);
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.room-details-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  min-width: 300px;
  max-width: 550px;
  text-align: center;
}

.room-details-content {
  padding: 2rem;
}

.room-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #333;
}

.room-features, .room-conditions {
  margin-bottom: 2rem;
}

.room-features h3, .room-conditions h3 {
  color: #ff3366;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.room-features ul, .room-conditions ul {
  list-style: none;
  padding: 0;
}

.room-features li, .room-conditions li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}


.room-details-footer {
  padding: 0rem 1.5rem 2rem;
  border-radius: 0 0 20px 20px;
}
.takearent {
	margin-top: 1.5rem
}

.contact-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.phone-link {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff3366;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid #ff3366;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.phone-link:hover {
  background: #ff3366;
  color: white;
  transform: translateY(-2px);
}

.contact-info small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.action-buttons .btn {
  text-align: center;
  justify-content: center;
  min-height: 54px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .room-details-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .room-details-content {
    padding: 1.5rem;
  }
  
  .phone-link {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Исправленные стили для модальных окон с описанием номеров */
.modal-content.room-details {
  position: relative;
  max-width: 800px;
  margin: 2% auto;
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content.room-details .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.modal-content.room-details .modal-close:hover {
  color: #e91e63;
}

.consent-checkbox {
  margin: 1.5rem 0;
}

.consent-checkbox .checkbox-text {
  font-size: 0.8rem;
  color: #666;
}

.consent-checkbox .checkbox-text a {
  color: #ff3366;
  text-decoration: none;
}

.consent-checkbox .checkbox-text a:hover {
  text-decoration: underline;
}

/* Стили для модальных окон с политиками */
.policy-modal {
  max-width: 800px;
  max-height: 90vh;
  background: white;
}

.policy-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  text-align: center;
}

.policy-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.policy-content {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.policy-text h3 {
  color: #333;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.2rem;
}

.policy-text h3:first-child {
  margin-top: 0;
}

.policy-text p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.policy-text ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #555;
}

.policy-text li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.policy-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  text-align: center;
  background: #f9f9f9;
}

.policy-footer .btn {
  min-width: 150px;
}

/* Адаптивность для модальных окон с политиками */
@media (max-width: 768px) {
  .policy-modal {
    width: 95%;
    margin: 5% auto;
  }
  
  .policy-header {
    padding: 1.5rem;
  }
  
  .policy-header h2 {
    font-size: 1.5rem;
  }
  
  .policy-content {
    padding: 1.5rem;
    max-height: 50vh;
  }
  
  .policy-footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .policy-modal {
    width: 98%;
    margin: 2% auto;
  }
  
  .policy-header {
    padding: 1rem;
  }
  
  .policy-header h2 {
    font-size: 1.3rem;
  }
  
  .policy-content {
    padding: 1rem;
    max-height: 60vh;
  }
  
  .policy-text h3 {
    font-size: 1.1rem;
  }
}

/* Стили для модальных окон услуг (оставляем как были) */
.service-modal {
  max-width: 500px;
  max-height: 90vh;
  background: white;
}

.service-modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-modal-icon {
  font-size: 4rem;
}

.service-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.service-modal-content {
  padding: 2rem;
  text-align: center;
}

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

.service-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: #f9f9f9;
}

.service-modal-footer .btn {
  min-width: 140px;
}

/* Адаптивность для услуг */
@media (max-width: 480px) {
  .services {
    padding: 2rem 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Десктоп (≥481px) */
@media (min-width: 481px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Средние экраны (≤1024px & ≥481px) */
@media (max-width: 1024px) and (min-width: 481px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Большие экраны (≥1200px) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
  .service-modal {
    width: 95%;
  }
  
  .service-modal-header {
    padding: 1.5rem;
  }
  
  .service-modal-content {
    padding: 1.5rem;
  }
  
  .service-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .service-modal {
    width: 98%;
  }
  
  .service-modal-header {
    padding: 1rem;
  }
  
  .service-modal-icon {
    font-size: 3rem;
  }
  
  .service-modal-header h2 {
    font-size: 1.3rem;
  }
  
  .service-modal-content {
    padding: 1rem;
  }
  
  .service-modal-content p {
    font-size: 0.9rem;
  }
}

.floating-phone {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff3366 0%, #ff6699 100%);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  position: relative;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.floating-phone-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  animation: none;
}

.phone-icon-over {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.floating-phone-btn:hover .phone-icon-over {
  transform: rotate(15deg) scale(1.1);
}

.phone-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #ff6699;
  border-radius: 50%;
  animation: pulse 2s linear infinite;
  opacity: 0;
}

.phone-tooltip {
  position: absolute;
  right: 85px;
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

.phone-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-phone-btn:hover .phone-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Анимация плавающего эффекта */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Анимация пульсации */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .floating-phone {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-phone-btn {
    width: 60px;
    height: 60px;
  }
  
  .phone-icon-over {
    font-size: 28px;
  }
  
  .phone-tooltip {
    right: 75px;
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ========================================================================== 
   PROMO
   ========================================================================== */
   .hero {
  overflow: visible;
  padding: 8rem 0 2rem;
  position: relative;
}

.hero-panel {
  align-items: start;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 55% 45%;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  text-align: left;
  width: calc(100%);
  isolation: auto;
  overflow: visible;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(12px);
  background-color: hsla(39,100%,99%,0.8);
  background-image: radial-gradient(at 9% 6%, hsla(13,100%,82%,1) 0, transparent 50%), 
                  radial-gradient(at 53% 26%, hsla(257,40%,74%,1) 0, transparent 50%), 
                  radial-gradient(at 15% 80%, hsla(330,62%,73%,1) 0, transparent 50%), 
                  radial-gradient(at 22% 40%, hsla(2,100%,79%,1) 0, transparent 50%), 
                  radial-gradient(at 80% 83%, hsla(217,55%,65%,1) 0, transparent 50%), 
                  radial-gradient(at 86% 13%, hsla(195,96%,77%,1) 0, transparent 50%);
  border-radius: var(--radius-lg);
  z-index: 0; /* ниже всего контента */
}

.hero-heading {
  grid-column: 1 / -1;
  position: relative;
}

.hero-heading h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  transition: opacity 0.8s ease;
}

.hero-content {
  display: grid;
  gap: 2rem;
  grid-column: 1 / -1;
  grid-template-columns: 55% 45%;
  z-index: 20;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}

.hero-bg {
  bottom: 0;
  margin-bottom: -40px;
  max-width: 300px;
  min-width: 200px;
  pointer-events: none;
  position: absolute;
  right: -40%;
  transition: transform 1s ease, opacity 1s ease;
  user-select: none;
  width: 90vw;
}

.hero-text {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  position: relative;
  transition: opacity 0.8s ease;
}

.hero-text h1 {
  font-size: 2rem;
}

.hero-text p {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: opacity 0.8s ease;
}

.hero-buttons .btn {
  text-align: center;
  width: 100%;
}

.btn {
  align-items: center;
  backdrop-filter: blur(6px);
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  min-width: 280px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.hero-highlight {
  font-weight: bold;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.pink {
  color: #ff66cc;
}

.blue {
  color: #66ccff;
}

.btn.primary {
  background: linear-gradient( to right, rgba(255,133,198,0.7), rgba(224,195,252,0.7), rgba(195,230,248,0.7) );
  color: #fff;
  padding: 0.5rem 1.25rem;
  margin: 0 auto;
}

.btn.secondary {
  background: linear-gradient( -45deg, rgba(120,230,248,0.7), rgba(0,220,255,0.6), rgba(0,200,250,0.5) );
  color: #fff;
  padding: 0.5rem 1.25rem;
  margin: 0 auto;
}

.btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

.btn-icon {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
}

.btn-icon svg {
  fill: currentColor;
  height: 1em;
  width: 1em;
}

.hero-video-container {
  display: flex;
  height: 100%;
  justify-content: flex-end;
  left: 0;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.8s ease;
  width: 100%;
}

.hero-video-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: auto
}

.hero-video {
  height: 100%;
  max-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  width: 100%;
  width: auto;
}

.hero-video-controls {
  bottom: 20px;
  display: flex;
  gap: 10px;
  left: auto !important; /* left: 50%; */
  right: 20px !important;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: none !important; /* transform: translateX(50%); */
  transition: opacity 0.3s;
  z-index: 10;
}

.hero-video-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-video-control {
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
}

.mobile-hide-content {
  opacity: 0;
  pointer-events: none;
}

.mobile-buttons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  width: 80%;
  max-width: 300px;
  z-index: 20;
}

.mobile-buttons.visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

.heroVideo {
  box-shadow: 0 100px 200px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .hero {
    padding: 8rem 0 2rem;
  }

  .hero-panel {
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-content {
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .hero-bg {
    bottom: auto;
    height: auto;
    margin-top: -1.5rem;
    max-height: 240px;
    max-width: none;
    right: 0;
    top: 0;
    transform-origin: top right;
    transform: translateX(40%);
    width: auto;
  }

  .hero-bg.animate-out {
    opacity: 0 !important;
    transform: translateX(140%) !important;
  }

  p.hero-text {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    max-width: 50%;
  }

  .hero-buttons {
    flex-direction: column;
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-content, 
  .hero-buttons {
    position: relative;
    z-index: 10; 
  }

  .hero-video-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 20px #FFF;
    justify-content: center;
    left: 0;
    object-position: center;
    height: 100%;
    width: 100% !important;
    overflow: hidden;
  }
  .hero-video-container video {
    clip-path: none;
  }
  .mobile-buttons {
    display: flex;
  }

  .hero-video {
    min-width: 100% !important;
    min-width: auto;
    min-width: auto !important;
    object-fit: contain;
    object-fit: cover;
    object-position: center;
    width: 100%;
  }
}

@media (min-width: 481px) {
  .nav {
    display: flex;
  }

  #menuBtn {
    display: none;
  }

  .hero {
    padding: 12rem 0 4rem;
  }

  .hero-panel {
    overflow: hidden;
    grid-template-columns: 50% 50%;
    max-width: 1200px;
    padding: 3rem;
    width: calc(100% - 4rem);
  }

  .hero-content {
    margin-top: 2rem;
  }

  .hero-heading h1 {
    font-size: 2.8rem;
  }

  .hero-text {
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    max-width: 80%;
  }

  .hero-bg {
    max-width: 600px;
    min-width: 300px;
    right: -10%;
    width: 50vw;
    z-index: 1;
  }

  .hero-bg.animate-out {
    opacity: 0 !important;
    transform: translateX(50%) !important;
  }

  .hero-video-container {
    left: auto;
    right: 0;
    width: var(--hero-panel-height);
    position: absolute;
    top: 0;
    left: auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  .hero-video {
    min-width: 390px;
    object-fit: cover;
    object-position: right;
    object-position: right center;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  .mobile-buttons {
    display: none;
  }

  .video-mask {
    background: linear-gradient(to right, rgba(197,176,212,0.7) 0%, rgba(197,176,212,0) 100%);
    background: linear-gradient(to right, rgba(197,176,212,0.7) 0%, rgba(197,176,212,0.4) 50px, rgba(197,176,212,0) 100px );
    display: block;
  }
}

.hero-bg {
  bottom: 0;
  margin-bottom: -40px;
  max-width: 300px;
  min-width: 200px;
  pointer-events: none;
  position: absolute;
  right: -40%;
  transition: transform 1s ease, opacity 1s ease;
  user-select: none;
  width: 90vw;
  isolation: auto;
}

/* Мобильная версия (до 480px) - остаётся без изменений */
@media (max-width: 480px) {
  .hero-bg {
    bottom: auto;
    top: 40%;
    left: 72%;
    transform: translateX(-40%);
    max-height: 240px;
    max-width: none;
    min-width: 200px;
    margin-top: 0;
    width: auto;
  }
}

/* Версия для 481-1099px */
@media (min-width: 481px) and (max-width: 1099px) {
  .hero-bg {
    bottom: 0;
    top: 40%;
    left: 80%;
    transform: translateX(-50%);
    max-width: 540px;
    min-width: 360px;
    right: auto;
    width: 45%;
    z-index: 1;
  }
}

/* Новая версия для ≥1100px */
@media (min-width: 1100px) {
  .hero-bg {
    bottom: 0;
    top: 30%;
    left: 48%; /* Сбрасываем left */
    transform: none; /* Отключаем трансформацию */
    max-width: 680px; /* Увеличиваем максимальный размер */
    min-width: 500px;
    width: 60vw; /* Ширина относительно окна просмотра */
    margin-bottom: -60px; /* Больший отрицательный отступ */
    z-index: 1;
  }
}

/* Общие исправления */
.hero-video-container {
  transform: translateZ(0); /* Аппаратное ускорение */
}

/* Градиенты для кнопок */
.mobile-buttons .btn.primary {
  background: linear-gradient(
    to right,
    rgba(244, 199, 223, 0.7),
    rgba(224, 195, 252, 0.7),
    rgba(195, 230, 248, 0.7)
  ) !important;
}

.mobile-buttons .btn.secondary {
  background: linear-gradient(
    -45deg,
    rgba(120, 230, 248, 0.7),
    rgba(0, 220, 255, 0.6),
    rgba(0, 200, 250, 0.5)
  ) !important;
}

/* Для лучшей видимости */
.mobile-buttons .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Общие стили для всех кнопок */
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  min-width: 280px;
  max-width: 300px;
  min-height: 54px;
  max-height: 54px; /* Фиксированная высота */
  padding: 0.75rem 1.25rem; /* Единый паддинг */
}

/* ================== fix ================== */

.hero-buttons {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 2) MOBILE: скрываем .mobile-buttons по умолчанию, а при .visible показываем */
.mobile-buttons {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* z-index: 20;  можно задать прямо в JS */
}
.mobile-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 3) Чтобы мобильные кнопки точно рисовались поверх видео */
.mobile-buttons {
  z-index: 20;
}
/* Чтобы видеоконтейнер был чуть ниже */
.hero-video-container {
  z-index: 10;
}
/* ================== градиент ================== */
@media (min-width: 481px) {
  /* 
    1. Делаём .hero-video-container position: relative/absolute и overflow: visible,
       чтобы псевдоэлементы не обрезались и располагались относительно контейнера.
    2. Левый край контейнера .hero-video-container совпадает с левой гранью видео.
  */
  .hero-video-container {
    overflow: visible; /* чтобы «внешний» градиент (left: -50px) не обрезался */
    /* 
      У вас уже, скорее всего, стоит position: absolute у .hero-video-container
      (и z-index:10). Оставляем это, чтобы контейнер видео располагался поверх hero-panel.
    */
  }

  /*
    ВНУТРЕННИЙ ГРАДИЕНТ:
    — появится прямо по левой грани видео (от 0 до 50px вправо), чтобы затушевать 
      левый край самого видеопотока.
    — располагается внутри контейнера видео, поверх видео-ролика.
  */
  .hero-video-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;           /* начало прямо у левой грани видео */
    width: 80px;       /* ширина «внутреннего» градиента (можно вынести в переменную) */
    background: linear-gradient(
      to right,
      rgba(212, 166, 210, 1) 0%,   /* 100% белый у левой грани видео */
      rgba(212, 166, 210, 0) 100%  /* до прозрачного (0%) к 50px внутрь видео */
    );
    pointer-events: none; 
    z-index: 30;       /* больше, чем z-index у .hero-content (20) и у .hero-video-container (10) */
  }

  /*
    ВНЕШНИЙ ГРАДИЕНТ:
    — располагается снаружи левой грани видео: от -50px до 0px относительно контейнера,
      чтобы плавно «растушевывать» область между .hero-content (справа) и самим видео.
    — псевдо-элемент залезает за пределы .hero-video-container, поэтому мы включили
      overflow: visible выше.
  */
  .hero-video-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80px;       /* вытягиваем на 50px влево от левой грани видео */
    width: 80px;       /* та же ширина, что и внутренний градиент */
    background: linear-gradient(
      to left,
      rgba(212, 166, 210, 1) 0%,   /* 100% белый с внешней стороны градиента */
      rgba(212, 166, 210, 0) 100%  /* до прозрачного (0%) у левой грани видео */
    );
    pointer-events: none;
    z-index: 30;       /* поверх всего остального, чтобы закрыть и текст, и видео, и фон */
  }
}

/* ========================================================================== 
   Наш сервис / Our Services
   ========================================================================== */
.services {
 max-width: 1080px;
  padding: 0;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  background: var(--glass-menu);
  padding: 1rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform 0.2s ease;
  cursor:pointer;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-icon {
  font-size: 2rem;
}

/* Градиенты карточек */
.card1 {
  background-color: hsla(36,71%,98%,1);
  background-image:
    radial-gradient(at 96% 6%, hsla(9,100%,96%,1) 0, transparent 50%),
    radial-gradient(at 80% 89%, hsla(316,53%,87%,1) 0, transparent 50%),
    radial-gradient(at 98% 43%, hsla(275,60%,81%,1) 0, transparent 50%),
    radial-gradient(at 23% 71%, hsla(344,100%,94%,1) 0, transparent 50%);
}

.card2 {
  background-color: hsla(41,29%,90%,1);
  background-image:
    radial-gradient(at 89% 93%, hsla(161,30%,91%,1) 0, transparent 50%),
    radial-gradient(at 16% 89%, hsla(76,50%,91%,1) 0, transparent 50%),
    radial-gradient(at 91% 6%, hsla(9,59%,92%,1) 0, transparent 50%);
}

.card3 {
  background-color: hsla(32,100%,95%,1);
  background-image:
    radial-gradient(at 83% 47%, hsla(1,100%,93%,1) 0, transparent 50%),
    radial-gradient(at 91% 5%, hsla(3,80%,95%,1) 0, transparent 50%),
    radial-gradient(at 11% 91%, hsla(282,56%,92%,1) 0, transparent 50%),
    radial-gradient(at 89% 93%, hsla(334,68%,91%,1) 0, transparent 50%),
    radial-gradient(at 46% 54%, hsla(0,58%,92%,1) 0, transparent 50%);
}

.card4 {
  background-color: hsla(173,31%,94%,1);
  background-image:
    radial-gradient(at 60% 43%, hsla(183,38%,91%,1) 0, transparent 50%),
    radial-gradient(at 91% 5%, hsla(156,21%,95%,1) 0, transparent 50%),
    radial-gradient(at 11% 91%, hsla(214,66%,89%,1) 0, transparent 50%),
    radial-gradient(at 89% 93%, hsla(180,53%,84%,1) 0, transparent 50%),
    radial-gradient(at 32% 68%, hsla(183,38%,91%,1) 0, transparent 50%);
}

/* Мобильная версия (≤480px) */
@media (max-width: 480px) {
  .services {
    padding: 2rem 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Десктоп (≥481px) */
@media (min-width: 481px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================================================== 
   Стоимость услуг / Services Price
   ========================================================================== */
.services-price {
  padding: 4rem 0;
  text-align: center;
}

.services-price h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Desktop (≥481px) — 3 колонки */
@media (min-width: 481px) {
  .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
  }
}



.services-price .price-card img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: auto;
  height: auto;
  min-width: 100%;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Средние экраны (≤1280px & ≥481px) — 2 колонки */
@media (max-width: 1280px) and (min-width: 481px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Карточки */
.price-card {
  background: var(--glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  height: 450px;
  cursor:pointer;
}
.price-card:hover {
  transform: translateY(-5px);
}

/* Плейсхолдер под картинку */
.img-placeholder {
  width: 100%;
  height: 120px;
  background: #f0f0f0;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Текст внутри карточки */
.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.price-card .price {
  margin-top: -0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f9a6d2;
}

/* фон прайс-карточек */
.price-card.card1 { /*… */ }
.price-card.card2 { /* … */ }
.price-card.card3 { /* … */ }

/* Простые карточки */
.price-card.simple {
  background: var(--glass);
}

/* Мобильная версия (≤480px) */
@media (max-width: 480px) {
  .services-price {
    padding: 2rem 0;
  }
  .price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .price-card {
    padding: 1.5rem;
  }
  .price-card h3 {
    font-size: 1.1rem;
  }
  .price-card p {
    font-size: 0.9rem;
  }
  .price-card .price {
    font-size: 1.3rem;
  }
}

/* ========================================================================== 
   Contacts Section
   ========================================================================== */
.contacts {
  padding: 4rem 0;
}

.contacts h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 
    "map photo"
    "phones photo";
  gap: 2rem;
}

/* Карта */
.map-wrapper {
  grid-area: map;
  position: relative;
  width: 100%;
  padding-bottom: 80%; /* Соотношение 4:3 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-panel);
}
.map {
  position: absolute;
  inset: 0;
}
.map iframe {
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}

/* Фотография здания и оверлей */
.building-wrapper {
  grid-area: photo;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.building-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.address-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Телефоны */
.phones {
  grid-area: phones;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 1rem;
}
.phone-item {
  flex: 1;
  min-width: 0;
}
.phone-item a {
  display: block;
  font-size: 1.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.phone-item:first-child a {
  background: var(--color-blue);
  color: #fff;
  margin-right: -20px;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}
.phone-item:last-child a {
  background: var(--color-pink);
  color: #fff;
  margin-left: -20px;
  padding-left: 1.5rem;
  position: relative;
  z-index: 1;
}
.phone-item a:hover {
  background: #fff !important;
  color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
}
.phone-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transform: scale(1.1);
}

/* ========================================================================== 
   Responsive for Contacts
   ========================================================================== */
/* Mobile (≤480px) */
@media (max-width: 480px) {
  .contact-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
      "map"
      "phones"
      "photo";
    gap: 1.5rem;
    width: 100%;
  }
  .map-wrapper {
    min-height: 350px;
  }
  .phones {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin: 0.5rem 0;
  }
  .phone-item {
    width: 100%;
  }
  .phone-item a {
    font-size: 1.3rem;
    padding: 0.8rem;
    margin: 0 !important;
  }
  .phone-icon {
    transform: rotate(90deg) scale(1);
    margin: 0.5rem 0;
    width: 56px;
    height: 56px;
  }
}

/* Tablet / small desktop (481–950px) */
@media (min-width: 481px) and (max-width: 950px) {
  .contact-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
      "map"
      "phones"
      "photo";
  }
  .map-wrapper {
    padding-bottom: 60%;
  }
}

/* Desktop from 481px */
@media (min-width: 481px) {
  .phone-item:first-child a {
    border-radius: 999px 0 0 999px;
    padding-right: 2rem;
  }
  .phone-item:last-child a {
    border-radius: 0 999px 999px 0;
    padding-left: 2rem;
  }
  .phone-icon {
    margin: 0 -15px;
  }
}

/* Large desktop (≥1200px) */
@media (min-width: 1200px) {
  .phone-item a {
    font-size: 1.5rem;
    padding: 0.85rem 1.5rem;
  }
}

/* ========================================================================== 
   Reviews Section
   ========================================================================== */
.reviews {
  padding: 0;
}
.reviews h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.reviews-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-item {
  display: block;
}
/* Кнопка «Ещё» */
.load-more-btn {
  display: block;
  margin: 24px auto;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
}

/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--glass);
  padding: 1rem;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
}
.lightbox-content img,
.lightbox-content video {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
}


.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  font-size: 32px;       /* больше */
  color: #fff;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1001;
}

.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev  { top: 50%; left: 10px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 10px; transform: translateY(-50%); }

/* Кнопка закрыть */
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 48px;        
  color: #e91e63;         
  cursor: pointer;
  z-index: 1001;
}

/* Скрываем оверлеи, когда открыт лайтбокс */
.lightbox-open .overlay-icon,
.lightbox-open .overlay-count {
  display: none !important;
}

/* Desktop (≥481px) */
@media (min-width: 481px) {
  .review-mobile { display: none; }
  .review-container {
    display: flex;
    background: var(--glass);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 16px;
  }
  .review-side {
    flex: 0 0 150px;
    padding: 16px;
    background: var(--bg-side);
  }
  .review-stars {
    font-size: 20px;
    color: var(--star-color);
  }
  .review-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 8px 0;
  }
  .review-media {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
  }
  .review-media img,
  .review-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .overlay-icon,
  .overlay-count {
    position: absolute;
    top: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
  }
  .overlay-icon { left: 8px; }
  .overlay-count { right: 8px; }
  .review-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .review-label {
    text-align: center;
    font-size: 12px;
    padding: 2px 6px;
    background: #f0f0f0;
    color: #555;
    text-transform: uppercase;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    max-width: none;
  }
  .review-text {
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: #444;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .review-text.collapsed {
    -webkit-line-clamp: 4;
    min-height: calc(var(--font-size) * var(--line-height) * 4);
  }
  .read-more {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 12px;
    align-self: flex-start;
  }
  .review-meta {
    margin-top: auto;
    font-size: 13px;
    color: var(--meta-color);
    display: flex;
    justify-content: space-between;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .reviews-wrapper {
    grid-template-columns: 1fr;
  }
  .review-container {
    display: none;
  }
  .review-mobile {
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .review-first-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-side);
  }
  .review-stars {
    font-size: 24px;
    color: var(--star-color);
  }
  .review-author {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
  }
  .review-header-right {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
  }
  .review-header-right img,
  .review-header-right video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .review-body {
    padding: 0 12px 12px;
  }
  .review-text {
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .review-text.collapsed {
    -webkit-line-clamp: 4;
    min-height: calc(var(--font-size) * var(--line-height) * 4);
  }
  .read-more {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 16px;
    padding: 0;
    text-align: left;
    margin: 8px 0;
  }
  .review-meta {
    font-size: 14px;
    color: var(--meta-color);
    padding: 0 12px 12px;
    display: flex;
    justify-content: space-between;
  }
  .review-label {
    display: none;
  }
  .review-header-right,
  .review-media {
    position: relative;
  }
  .overlay-icon,
  .overlay-count {
    display: block;       /* на случай, если где-то было скрыто */
    position: absolute;
    top: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 2;
  }
  .overlay-icon {
    left: 8px;
  }
  .overlay-count {
    right: 8px;
  }
}

/* ========================================================================== 
   Carousel Section
   ========================================================================== */

/* ====== Carousel Section ====== */
.carousel {
  padding: 4rem 0;
  background: transparent;
}

.carousel h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.carousel-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: center;
  height: 300px;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item:hover {
  transform: scale(1.02);
}

.carousel-item img,
.carousel-item video {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-item.loaded img,
.carousel-item.loaded video {
  opacity: 1;
}

/* Подпись */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Полупрозрачная темная подложка */
  color: white; /* Белый текст */
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
  display: none; /* Скрыто по умолчанию */
}

.carousel-item.loaded .carousel-caption {
  display: block; /* Показываем после загрузки */
}

/* Плейсхолдер */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #f5f5f5 25%, #e8e8e8 25%, #e8e8e8 50%, #f5f5f5 50%, #f5f5f5 75%, #e8e8e8 75%);
  background-size: 24px 24px;
  animation: placeholder-animation 1.2s infinite linear;
  border-radius: 12px;
  z-index: 1;
}

@keyframes placeholder-animation {
  0% { background-position: 0 0; }
  100% { background-position: 24px 24px; }
}

.carousel-item.loaded::before {
  opacity: 0;
  pointer-events: none;
}

/* Видео иконка */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  opacity: 0.8;
}

.video-icon::before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-item {
    height: 230px;
  }
  
  .carousel-caption {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 200px;
  }
  
  .carousel-item {
    height: 180px;
  }
}



/* ====== Carousel Section ====== */
.carousel {
  padding: 4rem 0;
  background: transparent;
}

.carousel h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.carousel-container {
  display: flex;
  gap: 8px; /* Умеренное расстояние */
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: center;
  height: 300px;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-item:hover {
  transform: scale(1.02);
}

.carousel-item img,
.carousel-item video {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-item.loaded img,
.carousel-item.loaded video {
  opacity: 1;
}

/* Подпись */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Полупрозрачный темный фон */
  color: white; /* Белый текст */
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
  display: none; /* Скрыто по умолчанию */
}

/* Плейсхолдер */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f0f0f0;
  border-radius: 12px;
  z-index: 1;
}

.carousel-item.loaded::before {
  opacity: 0;
  pointer-events: none;
}

/* Иконка видео */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  z-index: 11;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.video-icon:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-item {
    height: 230px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 200px;
  }
  
  .carousel-item {
    height: 180px;
  }
  
  .carousel-caption {
    font-size: 12px;
    padding: 6px 10px;
  }
}



/* ====== Carousel Section ====== */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  height: 300px;
  align-items: center;
  padding: 10px 0;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  position: relative;
  height: 280px;
  margin: 0 5px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.carousel-item img,
.carousel-item video {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Подпись */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
  display: none;
}

/* Иконка видео */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  z-index: 11;
}



.services-price .price-card .img-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  /* масштабируем картинку по ширине контейнера */
  width: 100%;
  height: 100%;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

.img-placeholder {
  width: 100%; /* или конкретная ширина */
  height: 70%;
  overflow: hidden; /* скрываем всё что выходит за границы */
  position: relative; /* для позиционирования внутреннего изображения */
}

.img-placeholder img {
  width: 100%; /* растягиваем по ширине блока */
  height: auto; /* сохраняем пропорции */
  position: absolute; /* для анимации */
  top: 0;
 /* animation: scroll-image 6s ease-in-out infinite alternate; */
}
/*
@keyframes scroll-image {
  0% {
    transform: translateY(0); /* начинаем с верха */ /*
  }
  100% {
    transform: translateY(var(--scroll-distance));
  }
}
*/
/* Мобильная версия (≤480px) */
@media (max-width: 480px) {
  .services-price {
    padding: 2rem 0;
  }
  .price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .price-card {
    padding: 1.5rem;
  }
  .price-card h3 {
    font-size: 1.1rem;
  }
  .price-card p {
    font-size: 0.9rem;
  }
  .price-card .price {
    font-size: 1.3rem;
  }
}

/* Стиль для астериска-ссылки (в основном тексте) */
.asterisk-ref {
    vertical-align: super; /* Делает символ надстрочным (как верхний индекс) */
    font-size: 0.75em;    /* Чуть уменьшает размер */
    line-height: 1;        /* Убирает лишний межстрочный интервал вокруг */
    cursor: pointer;       /* Меняет курсор на "руку" (опционально) */
    color: #0066cc;        /* Выделяет цветом (опционально) */
    text-decoration: none; /* Убирает подчеркивание по умолчанию у ссылок */
}

/* Стиль для астериска в определении сноски */
.asterisk-def {
    font-weight: bold;     /* Делает символ в сноске заметнее (опционально) */
    margin-right: 0.25em;  /* Добавляет отступ после символа в сноске */
}

/* Стили для блока сносок */
.footnotes {
    margin-top: 2em;       /* Отделяет блок сносок от основного контента */
    padding-top: 1em;      /* Внутренний отступ сверху */
    border-top: 1px solid #ddd; /* Визуальная разделительная линия */
    font-size: 1.2em;      /* Чуть меньший размер шрифта для сносок */
    color: #666;           /* Приглушенный цвет текста сносок */
}




/* ——————————————————————————————
   auto-scroll animation: only inside .img-placeholder
   —————————————————————————————— */
.services-price .price-card .img-placeholder {
  position: relative;
  width: 100%;
  padding-top: 45%; /* Соотношение 45% высоты к ширине */
  overflow: hidden;
  background: #f0f0f0;
  /* Фиксы для iOS */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.services-price .price-card .img-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Оптимизация для iOS 
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0); */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  /* Убираем transition - он конфликтует с анимацией */
  transition: none !important;
}

/* Основная анимация
@keyframes scroll-image {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -50%, 0);
  }
}

@-webkit-keyframes scroll-image {
  0%, 100% {
    -webkit-transform: translate3d(0, 0, 0);
  }
  50% {
    -webkit-transform: translate3d(0, -50%, 0);
  }
}
*/
.img-placeholder img {
  animation: scroll-image 6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  -webkit-animation: scroll-image 6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Специфичные фиксы для iPhone 7 и старых iOS */
@supports (-webkit-touch-callout: none) and (max-width: 480px) {
  .img-placeholder {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: -moz-hidden-unscrollable;
  }
  
  .img-placeholder img {
    animation: none;
    -webkit-animation: scroll-image-ios 6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
 /* 
  @-webkit-keyframes scroll-image-ios {
    0%, 100% {
      -webkit-transform: translate3d(0, 1px, 0);
    }
    50% {
      -webkit-transform: translate3d(0, -15%, 0);
    }
  }
  
  /* Альтернатива: использовать JavaScript-определение устройства */
}

/* Оптимизация для мобильных */
@media (max-width: 480px) {
  .img-placeholder {
    padding-top: 35%;
  }
  
  .img-placeholder img {
    animation-duration: 7s;
  }
  /*
  @keyframes scroll-image {
    50% {
      transform: translate3d(0, -30%, 0);
    }
  }
  
  @-webkit-keyframes scroll-image {
    50% {
      -webkit-transform: translate3d(0, -30%, 0);
    }
  }
}

/* Отключение анимации для пользователей с настройками доступности */
@media (prefers-reduced-motion: reduce) {
  .img-placeholder img {
    animation: none !important;
   /* transform: translate3d(0, -25%, 0) !important; */
  }
}