/* ============== ОСНОВНЫЕ СТИЛИ - ТЕМНАЯ ТЕМА iOS СТИЛЬ ============== */
:root {
  --primary-color: #8e8e93; /* Серый для акцентов */
  --accent-color: #b3b3b3; /* Светло-серый */
  --background-color: #000000; /* Чистый черный */
  --surface-color: rgba(18, 18, 18, 0.85); /* Полупрозрачный черный */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-color: rgba(255, 255, 255, 0.15);
  --overlay-color: rgba(0, 0, 0, 0.7);
  --success-color: #34c759;
  --warning-color: #ff9f0a;
  --danger-color: #ff3b30;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============== ЗАСТАВКА ============== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.splash-content {
  text-align: center;
  animation: scaleUp 1s ease-out;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px; /* Уменьшил отступ */
}

.splash-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 10px; /* Уменьшил отступ */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.logo span {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.2; /* Добавил для лучшего выравнивания */
}

.splash-subtitle {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 10px 0; /* Убрал верхний отступ, уменьшил нижний */
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.line {
  width: 80px;
  height: 2px;
  background: var(--primary-color);
  margin: 10px auto 0 auto; /* Уменьшил отступ сверху */
}
/* ============== HEADER ============== */
.ios-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-header-img {
  width: 36px;
  height: 36px;
}

.logo-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 0;
}

/* Кнопка меню */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.menu-toggle.text-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Навигация */
.ios-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ios-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.ios-nav a:hover,
.ios-nav a.active {
  color: white;
  background: rgba(142, 142, 147, 0.2);
}

/* ============== СЛАЙДЕР ============== */
.main-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 60px;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Текст поверх слайдов */
.slide-text-overlay {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 40%;
  z-index: 2;
}

.slide-content {
  text-align: right;
  padding: 20px;
}

.phone-number {
  margin-bottom: 20px;
}

.phone-number a {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.phone-number a:hover {
  opacity: 0.9;
}

.slide-title {
  font-size: 38px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.title-line-1,
.title-line-2 {
  display: block;
}

.slide-subtitle {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

.slide-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

/* Кнопки iOS стиль */
.ios-button {
  background: rgba(142, 142, 147, 0.9);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ios-button:hover {
  background: rgba(142, 142, 147, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.ios-button.primary {
  background: rgba(90, 90, 95, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============== МОДАЛЬНЫЕ ОКНА ============== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-full {
  max-width: 1000px;
  width: 95%;
}

.modal-sm {
  max-width: 450px;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-header h3 {
  color: white;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header i {
  color: var(--primary-color);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 90px);
}

/* Стили для списка памятников */
.monuments-list,
.services-ritual-list,
.supplies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monument-category,
.service-ritual-item,
.contact-item,
.supply-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
}

.monument-category i,
.service-ritual-item i,
.contact-item i {
  font-size: 28px;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.monument-category-text,
.service-ritual-text,
.contact-text,
.supply-info {
  flex: 1;
}

.monument-category-text h4,
.service-ritual-text h4,
.contact-text h4,
.supply-info h4 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.monument-category-text p,
.service-ritual-text p,
.contact-text p,
.supply-info p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.category-link {
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.3s;
}

.category-link:hover {
  opacity: 0.8;
}

.category-link-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  margin-top: 6px;
}

.installation-info {
  margin-top: 30px;
  padding: 20px;
  background: rgba(142, 142, 147, 0.1);
  border-radius: 12px;
}

.installation-info p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.installation-info i {
  color: var(--primary-color);
}

/* Стили для принадлежностей */
.supply-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.price {
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

.add-to-cart-btn {
  background: rgba(142, 142, 147, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.divider-modal {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.divider-light {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

/* Стили для корзины */
#cart-items-container {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 10px;
}

.cart-item-info h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-remove {
  background: rgba(255, 59, 48, 0.2);
  border: none;
  color: var(--danger-color);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.cart-item-remove:hover {
  background: var(--danger-color);
  color: white;
}

.empty-cart {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
}

.cart-total {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 20px;
  font-weight: 700;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.cart-actions .ios-button {
  flex: 1;
  justify-content: center;
}

/* Стили для каталога */
.catalog-gallery {
  margin-top: 10px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.catalog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.catalog-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.catalog-item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.catalog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.catalog-item:hover .catalog-item-image img {
  transform: scale(1.05);
}

.catalog-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.catalog-item:hover .catalog-item-overlay {
  opacity: 1;
}

.catalog-item-overlay i {
  color: white;
  font-size: 32px;
  background: rgba(0, 0, 0, 0.6);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-item-info {
  padding: 16px;
}

.catalog-item-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}

.catalog-item-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.catalog-item-price {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.add-to-cart-small {
  background: rgba(142, 142, 147, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: fit-content;
}

.add-to-cart-small:hover {
  background: var(--primary-color);
}

/* Стили для контактов */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-actions .ios-button {
  justify-content: center;
  width: 100%;
}

/* Стили для формы */
#consultationForm .form-group {
  margin-bottom: 20px;
}

#consultationForm input,
#consultationForm textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

#consultationForm input:focus,
#consultationForm textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
}

#consultationForm input::placeholder,
#consultationForm textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ============== МОБИЛЬНОЕ МЕНЮ ============== */
.ios-nav.mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 100px 24px 30px; /* отступы слева/справа только у контейнера */
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ios-nav.mobile.active {
  display: flex !important;
  right: 0;
}

.ios-nav.mobile a {
  padding: 16px 0; /* вертикальные отступы, горизонтальные убраны – текст будет на уровне отступа контейнера */
  font-size: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  width: 100%; /* занимаем всю ширину */
  box-sizing: border-box; /* учитываем padding в ширине */
  text-align: left; /* явное выравнивание по левому краю */
}

.ios-nav.mobile a:hover,
.ios-nav.mobile a.active {
  background: rgba(142, 142, 147, 0.2);
  color: white;
  transform: translateX(-5px); /* сдвиг влево при наведении */
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* ============== FOOTER ============== */
.ios-footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-links-row a:hover {
  color: white;
}

.footer-links-row span {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============== АДАПТИВНОСТЬ ============== */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex !important;
  }

  .ios-nav:not(.mobile) {
    display: none !important;
  }

  .slide-text-overlay {
    width: 60%;
  }

  .slide-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 10px 16px;
  }

  .logo-header h1 {
    font-size: 18px;
  }

  /* Слайдер: текст справа вверху, без центрирования */
  .slide-text-overlay {
    top: 15%; /* оставляем как на десктопе */
    right: 5%;
    left: auto; /* убираем автоматический left */
    bottom: auto;
    transform: none; /* отключаем трансформацию */
    width: 80%; /* ширина немного больше, чем на десктопе, чтобы текст не обрезался */
    text-align: right; /* выравнивание текста вправо */
  }

  .slide-content {
    text-align: right; /* выравнивание контента вправо */
  }

  .slide-title {
    font-size: 26px; /* немного уменьшаем для мобильных */
  }

  .slide-subtitle {
    font-size: 16px;
  }

  .slide-buttons {
    align-items: flex-end; /* кнопки прижаты к правому краю */
  }

  .phone-number a {
    font-size: 22px; /* чуть меньше, чем на планшетах */
  }

  /* Кнопки в слайдере */
  .ios-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  /* Модальные окна и остальные элементы оставляем как есть */
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .monument-category,
  .service-ritual-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links-row span {
    display: none;
  }
}
@media (max-width: 480px) {
  .splash-logo {
    width: 60px;
    height: 60px;
  }

  .logo span {
    font-size: 32px;
  }

  .splash-subtitle {
    font-size: 18px;
  }

  .slide-title {
    font-size: 24px;
  }

  .slide-subtitle {
    font-size: 16px;
  }

  .phone-number a {
    font-size: 20px;
  }

  .ios-button {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ============== АНИМАЦИИ ============== */

@keyframes scaleUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============== PWA / SAFE AREA ============== */
@supports (padding: env(safe-area-inset-top)) {
  .ios-header {
    padding-top: env(safe-area-inset-top);
  }

  .ios-nav.mobile {
    padding-top: max(100px, env(safe-area-inset-top) + 80px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .splash-screen {
    padding-top: env(safe-area-inset-top);
  }
}

/* ============== УЗКИЕ МОДАЛЬНЫЕ ОКНА ============== */

/* Основной класс для узких модальных окон */
.modal-content {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  width: 90%;
  max-width: 480px; /* Уменьшено с 600px */
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Очень узкие модальные окна (для маленького контента) */
.modal-sm {
  max-width: 360px; /* Уменьшено с 450px */
}

/* Полноразмерные модальные окна (оставляем широкими для каталогов) */
.modal-full {
  max-width: 1000px;
  width: 95%;
}

/* Адаптация контента под узкие окна */
.modal-body {
  padding: 20px; /* Немного уменьшено с 24px */
  overflow-y: auto;
  max-height: calc(80vh - 90px);
}

/* Уменьшаем отступы в модальных окнах для мобильных */
@media (max-width: 768px) {
  .modal-content {
    max-width: 400px; /* Еще уже на мобильных */
  }

  .modal-sm {
    max-width: 320px;
  }

  .logo span {
    font-size: 42px; /* Адаптация для мобильных */
  }

  .splash-subtitle {
    font-size: 16px;
    letter-spacing: 6px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 340px;
  }

  .logo span {
    font-size: 36px; /* Адаптация для маленьких экранов */
    letter-spacing: 4px;
  }
}
/* Заставка - ЧЕРНАЯ РОЗА в стиле iOS */
.logo span {
  font-size: 52px;
  font-weight: 700; /* Используем стандартный жирный вес iOS */
  font-family: -apple-system, "Helvetica Neue", "SF Pro Display", sans-serif;
  letter-spacing: 2px; /* Уменьшил, для строгости, но можно подобрать */
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  text-transform: uppercase;
  display: inline-block;
}
/* Альтернатива без градиента, но с обводкой */
.logo span {
  font-size: 52px;
  font-weight: 700;
  font-family: -apple-system, "Helvetica Neue", "SF Pro Display", sans-serif;
  letter-spacing: 2px;
  color: white;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  text-transform: uppercase;
}
.header-subtitle {
  letter-spacing: -0.5px; /* Уменьшает межбуквенный интервал */
}
/* Синий цвет для телефона */
.phone-number a {
  color: #007aff; /* iOS blue */
}

/* Синие кнопки */
.ios-button {
  background: rgba(0, 122, 255, 0.9);
  border: 1px solid rgba(0, 122, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ios-button:hover {
  background: rgba(0, 122, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.ios-button.primary {
  background: rgba(0, 122, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Синее выделение пунктов меню при наведении и активном состоянии */
.ios-nav a:hover,
.ios-nav a.active {
  background: rgba(0, 122, 255, 0.2);
  color: white;
}
.slide-subtitle span {
  display: block;
  margin-bottom: 4px; /* регулируйте отступ между строками */
}
.image-preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.image-preview-modal.active {
  display: flex;
}
.category-link-large {
  font-size: 18px;
  color: #007aff;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.image-preview-modal {
  display: none;
  /* ... */
}
.image-preview-modal.active {
  display: flex;
}
/* Стили для модального окна выбора категорий ритуальных принадлежностей */
.ritual-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ritual-category-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
}

.ritual-category-item i {
  font-size: 28px;
  color: #007aff;
  min-width: 40px;
  text-align: center;
}

.ritual-category-text {
  flex: 1;
}

.ritual-category-text h4 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ritual-category-text .category-link {
  color: #007aff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.ritual-category-text .category-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .ritual-category-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* === УМЕНЬШАЕМ ОТСТУПЫ, ЧТОБЫ ВСЁ ПОМЕЩАЛОСЬ БЕЗ ПРОКРУТКИ === */
/* Общие сокращённые отступы для всех модальных окон */
.modal-body {
  padding: 16px 20px; /* было 24px, уменьшили вертикальный padding */
}

/* Элементы списков в модальных окнах */
.monument-category,
.service-ritual-item,
.ritual-category-item,
.contact-item {
  padding: 12px 0; /* было 16px 0 */
}

/* Заголовки в элементах */
.monument-category-text h4,
.service-ritual-text h4,
.ritual-category-text h4,
.contact-text h4 {
  font-size: 18px; /* немного уменьшили, было 20px */
  margin-bottom: 4px;
}

/* Описания */
.monument-category-text p,
.service-ritual-text p,
.contact-text p,
.supply-info p {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Блок с информацией об установке (в памятниках) */
.installation-info {
  margin-top: 16px; /* было 30px */
  padding: 16px; /* было 20px */
}

.installation-info p {
  font-size: 14px;
  margin-bottom: 6px;
}
/* === ЕДИНЫЙ СТИЛЬ ССЫЛОК В МОДАЛЬНЫХ ОКНАХ === */
.modal-body .category-link,
.modal-body .category-link-btn,
.modal-body .modal-category-link,
.modal-body span.category-link {
  color: #007aff !important; /* фирменный синий */
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 15px;
  display: inline-block;
}

.modal-body .category-link:hover,
.modal-body .category-link-btn:hover,
.modal-body .modal-category-link:hover,
.modal-body span.category-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Кнопка «Открыть список →» теперь синяя */
.category-link-btn {
  color: #007aff;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  margin-top: 6px;
  cursor: pointer;
}

/* === МОДАЛЬНОЕ ОКНО «РИТУАЛЬНЫЕ ПРИНАДЛЕЖНОСТИ» ЕЩЁ КОМПАКТНЕЕ === */
#modalRitualCategories.modal-overlay .modal-body {
  padding: 12px 16px;
}

#modalRitualCategories .ritual-category-item {
  padding: 8px 0; /* ещё меньше отступов */
}

#modalRitualCategories .ritual-category-text h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

#modalRitualCategories .ritual-category-text .category-link {
  font-size: 14px;
}

/* Если нужно убрать прокрутку совсем, можно чуть увеличить высоту окна */
#modalRitualCategories .modal-content {
  max-height: 90vh; /* чуть больше, но контент должен влезать */
}
.work-detail .product-detail-price,
.work-detail #detailAddToCart {
  display: none;
}
/* Модальное окно детального просмотра */
.product-detail-modal .modal-content {
  max-width: 900px;
  width: 90%;
  background: #1e1e1e;
}

.product-detail-body {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 30px;
}

.product-detail-image {
  flex: 1 1 300px;
  max-width: 400px;
  margin: 0 auto;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.product-detail-info {
  flex: 1 1 300px;
  color: white;
}

.product-detail-info h4 {
  font-size: 1.8rem;
  margin: 0 0 15px;
}

.product-detail-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  white-space: pre-line;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .product-detail-body {
    flex-direction: column;
    gap: 20px;
  }
  .product-detail-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .product-detail-modal .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }
} /* Кнопка "Назад" в модальном окне */
.modal-back {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.modal-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Скрываем цену и кнопку "В корзину" для режима просмотра работ */
.work-detail .product-detail-price,
.work-detail #detailAddToCart {
  display: none;
}
@media (max-width: 768px) {
  .modal-back {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }
}
/* Стили для формы заказа доставки в морг */
#modalMorgueOrder .form-group {
  margin-bottom: 20px;
}

#modalMorgueOrder input,
#modalMorgueOrder textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

#modalMorgueOrder input:focus,
#modalMorgueOrder textarea:focus {
  outline: none;
  border-color: #007aff; /* фирменный синий */
  background: rgba(255, 255, 255, 0.12);
}

#modalMorgueOrder input::placeholder,
#modalMorgueOrder textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
/* ===== СТИЛИ ДЛЯ КОРЗИНЫ (ДОПОЛНИТЕЛЬНЫЕ) ===== */
.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: #007aff;
  border-color: #007aff;
}

.cart-item-quantity span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: white;
}

.cart-item-remove {
  background: rgba(255, 59, 48, 0.2);
  border: none;
  color: #ff3b30;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: #ff3b30;
  color: white;
}

/* Общий контейнер корзины */
#cart-items-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Полоса прокрутки */
#cart-items-container::-webkit-scrollbar {
  width: 6px;
}
#cart-items-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
#cart-items-container::-webkit-scrollbar-thumb {
  background: #007aff;
  border-radius: 10px;
}
.contact-text a {
  color: #007aff; /* фирменный синий */
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
