/* ============================================
   ПОЛНЫЙ CSS СО ВСЕМИ СТИЛЯМИ
   Версия: COMPLETE - включает ВСЕ секции
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #272727;
  color: #ffffff;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER / НАВИГАЦИЯ
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 120px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
}

.nav-links {
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
}

.burger {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

#navLinks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 40%;
}

#navLinks li {
  list-style: none;
}

#navLinks a {
  text-transform: uppercase;
}

.logo {
  max-width: 50px;
}
.logo img {
  width: 100%;
}

.main-nav a,
nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  position: relative;
  padding-bottom: 0.5rem;
}

#navLinks a:hover,
#navLinks a.active,
nav a:hover {
  color: #ffffff;
}

#navLinks a::after,
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff4444;
  transform: scaleX(0);
  transition: transform 0.3s;
}

#navLinks a:hover::after,
#navLinks a.active::after {
  transform: scaleX(1);
}

nav {
  display: flex;
  gap: 3rem;
}

.page-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero h1 .highlight {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px #ffffff;
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.7;
}

.swipe-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.swipe-line {
  width: 80px;
  height: 1px;
  background: #ffffff;
}

/* Side Navigation */
.side-nav {
  position: fixed;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 300;
}

.side-nav-item {
  text-align: right;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
}

.side-nav-item.active,
.side-nav-item:hover {
  opacity: 1;
}

/* ============================================
   WELCOME SECTION
   ============================================ */

.welcome-section {
  background: #000000;
  padding: 8rem 4rem;
}

.welcome-card {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 3px solid #ff4444;
  padding-left: 3rem;
}

.welcome-card h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.welcome-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0.8;
}

/* ============================================
   ABOUT / RETREAT SECTION
   ============================================ */

.about-retreat {
  background: #0a0a0a;
  padding: 8rem 4rem;
}

.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.about-container h2 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.retreat-definition {
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0.7;
  margin-bottom: 5rem;
  font-style: italic;
  max-width: 900px;
}

.retreat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.retreat-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.retreat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.retreat-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.retreat-item p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.8;
}

/* ============================================
   LOCATIONS / TOURS SECTION
   ============================================ */

.locations {
  background: #1f1f1f;
  padding: 8rem 4rem;
  display: flex;
  flex-direction: column;
}

.locations-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.locations h2,
.locations-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.view-all {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.7;
  transform: translateX(0px);
  transition: all 0.3s;
}

.container-button {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.view-all:hover {
  opacity: 1;
  transform: translateX(5px);
}

.tour-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.tour-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.tour-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tour-rating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.rating-value {
  font-weight: 600;
}

.tour-content {
  padding: 2rem;
}

.tour-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tour-address {
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.tour-description {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.tour-meta {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tour-price {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.tour-capacity {
  font-size: 14px;
  opacity: 0.7;
}

/* ============================================
   LOCATION DETAILS (для страницы локаций)
   ============================================ */

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.location-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.location-item.collapsed .location-gallery {
  height: 250px;
}

.location-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  transition: height 0.3s ease;
}

.gallery-slider {
  height: 100%;
  width: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  top: 105%;
  max-width: 100%;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.gallery-dot {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: #ffffff;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-arrow-prev {
  left: 15px;
}

.gallery-arrow-next {
  right: 15px;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

.gallery-arrow .hide {
  display: none;
}

.location-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.location-address {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  font-weight: 300;
}
.housing-type-select option {
  background-color: rgba(255, 255, 255, 0.05);
}
.location-description {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 300;
  opacity: 0.8;
  margin-top: 10px;
  max-width: 500px;
}

.location-pricing {
  margin-top: 10px;
}

.location-details p strong,
.location-short-details p strong {
  color: #ffb3b3;
}

.location-short-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.location-short-details p {
  margin: 0;
}

.location-full-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.location-full-content .location-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.location-full-content.show {
  display: block;
  max-height: 1000px;
  opacity: 1;
  margin-top: 0;
  padding-top: 0;
}

.location-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-details {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-details .btn-arrow {
  transition: transform 0.3s;
}

.btn-details.active .btn-arrow {
  transform: rotate(180deg);
}

.btn-book {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 1rem 3rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  flex: 1;
}

.btn-book:hover {
  color: #ffffff;
  transform: translateX(10px);
}

/* Скрытие элементов галереи когда аккордеон свернут */
.location-item.collapsed .gallery-arrow,
.location-item.collapsed .gallery-dots {
  display: none !important;
}

/* ============================================
   MODAL / ФОРМА БРОНИРОВАНИЯ
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  max-width: 600px;
  margin-top: 450px;
  width: 100%;
  position: relative;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.close:hover {
  opacity: 1;
}

.modal h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

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

.modal .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.modal .form-group #agreement {
  width: auto;
}
.modal .form-group #agreement[type="checkbox" i] {
  background-color: #ff0000;
}
.modal .form-group select option {
  background-color: #000000;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.08);
}

.modal .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 4rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.copyright {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.7;
  margin: 0;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #ff4444;
}

.footer-nav span {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.contacts {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.7;
  margin: 0;
  color: #ff4444;
  text-decoration: none;
}

.contacts:hover {
  opacity: 1;
}

/* ============================================
   ФОРМА РАЗМЕЩЕНИЯ (form-map template)
   ============================================ */

.form-container {
  padding-top: 150px;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.form-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.7;
  margin-bottom: 4rem;
  line-height: 1.6;
}

.required {
  color: #ff4444;
}

.form-section:not(:last-of-type) {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
  border-bottom: none;
}

#accommodationForm {
  padding-bottom: 60px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: #ffffff;
}

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

#housing_type option {
  background-color: #000000;
}

.hover-red :hover {
  background-color: #ff4444 !important;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

/* Чекбоксы и радио-кнопки */
.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.checkbox-personal {
  display: flex;
  gap: 10px;
}
.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 0;
}

.checkbox-item:hover,
.radio-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-item input,
.radio-item input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff4444;
  flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
  margin: 0;
  font-weight: 400;
  text-transform: none;
  opacity: 1;
  cursor: pointer;
  white-space: nowrap;
}

/* Для радио-кнопок (санузел, кухня) - всегда 2 колонки */
.radio-group {
  grid-template-columns: repeat(2, 1fr);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-range input {
  flex: 1;
}

.date-range span {
  opacity: 0.5;
}

.file-upload {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ff4444;
}

.file-upload input[type="file"] {
  display: none;
}

.file-label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.file-info {
  font-size: 0.85rem;
  opacity: 0.6;
}

.preview-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  padding-bottom: 200px;
  max-width: 300px;
  display: flex;
  justify-content: end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.remove-image {
  width: 30px;
  height: 30px;
  border: 0;
  margin-left: auto;
  z-index: 100;
  font-size: 25px;
  background-color: #ff0000;
  border-radius: 100%;
  color: #ffffff;
  position: relative;
  margin: 10px 10px 0 0;
  cursor: pointer;
}

.preview-item .remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ff4444;
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.preview-item .remove-btn:hover {
  background: #ff0000;
  transform: scale(1.1);
}

.error-message {
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 1.25rem 3rem;
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #ff4444;
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* ============================================
   MEDIA QUERIES - АДАПТИВНОСТЬ
   ============================================ */

/* Большие планшеты и маленькие десктопы (до 1200px) */
@media (max-width: 1200px) {
  .form-container {
    max-width: 90%;
    padding: 40px 20px;
  }

  h1 {
    font-size: 3rem;
  }

  .retreat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .retreat-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .retreat-type-item {
    min-height: 170px;
  }

  .retreat-type-item-large {
    grid-column: span 1;
  }

  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-item {
    gap: 3rem;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .about-container h2,
  .locations h2 {
    font-size: 3rem;
  }

  /* Чекбоксы: 3 колонки */
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  /* Радио-кнопки остаются в 2 колонки */
  .radio-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  body {
    padding: 0;
    margin-top: 100px;
  }

  .form-container {
    padding: 30px 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .form-subtitle {
    font-size: 0.95rem;
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .header {
    padding: 1.5rem 2rem;
    height: 100px;
  }

  .main-nav {
    gap: 2rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  /* Чекбоксы: 3 колонки */
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  /* Радио-кнопки: 2 колонки */
  .radio-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .checkbox-item,
  .radio-item {
    padding: 0.875rem 0.75rem;
    font-size: 0.95rem;
  }

  .preview-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .location-item {
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .about-retreat,
  .locations {
    padding: 6rem 2rem;
  }

  .welcome-section {
    padding: 6rem 2rem;
  }

  .welcome-card {
    padding-left: 2rem;
  }

  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin-top: 80px;
  }

  .form-container {
    max-width: 100%;
    padding: 20px 15px;
    padding-top: 30px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .form-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .form-section:not(:last-of-type) {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  #accommodationForm {
    padding-bottom: 40px;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

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

  .form-group label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  /* Чекбоксы: 2 колонки (5 элементов будут 2-2-1) */
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Радио-кнопки: 1 колонка для удобства */
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .checkbox-item,
  .radio-item {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .checkbox-item label,
  .radio-item label {
    font-size: 0.9rem;
  }

  .checkbox-item input,
  .radio-item input {
    width: 18px;
    height: 18px;
  }

  /* Радио-кнопки выравниваем по левому краю */
  .radio-item {
    justify-content: flex-start;
  }

  .date-range {
    flex-direction: column;
    gap: 0.75rem;
  }

  .date-range input {
    width: 100%;
  }

  .date-range span {
    display: none;
  }

  .file-upload {
    padding: 2rem 1rem;
  }

  .file-label {
    font-size: 1rem;
  }

  .file-info {
    font-size: 0.8rem;
  }

  .preview-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .preview-item {
    max-width: 100%;
  }

  .remove-image {
    width: 25px;
    height: 25px;
    font-size: 20px;
    margin: 5px 5px 0 0;
  }

  .submit-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  /* Header */
  .header {
    padding: 1rem 1.5rem;
    height: 80px;
  }

  header {
    padding: 1.5rem 2rem;
  }

  .main-nav {
    gap: 1.5rem;
  }

  .main-nav a,
  nav a {
    font-size: 0.8rem;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
  }

  .burger span {
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background-color: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  #navLinks {
    display: none;
    position: fixed;
    width: 100% !important;
    top: 80px;
    left: 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 15, 13, 0.95);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
    z-index: 1000;
    animation: fadeInMenu 0.25s ease forwards;
  }

  #navLinks.active {
    display: flex;
  }

  #navLinks a {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    width: 100%;
    text-align: center;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

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

  .page-title {
    font-size: 1.5rem;
  }

  /* Hero Section */
  .hero {
    padding: 0 1.5rem;
    height: auto;
    min-height: 70vh;
    flex-direction: column;
    justify-content: center;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .swipe-indicator {
    font-size: 0.8rem;
  }

  .swipe-line {
    width: 60px;
  }

  .side-nav {
    display: none;
  }

  /* Welcome Section */
  .welcome-section {
    padding: 4rem 1.5rem;
  }

  .welcome-card {
    padding-left: 1.5rem;
    border-left-width: 2px;
  }

  .welcome-card h2 {
    font-size: 1.8rem;
  }

  .welcome-card p {
    font-size: 1rem;
  }

  /* Tours */
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tour-card {
    margin-bottom: 1rem;
  }

  .tour-image {
    height: 250px;
  }

  .tour-content {
    padding: 1.5rem;
  }

  .tour-content h3 {
    font-size: 1.3rem;
  }

  .tour-description {
    font-size: 0.9rem;
  }

  .tour-meta {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .tour-price {
    font-size: 14px;
  }

  /* About Section */
  .about-retreat {
    padding: 4rem 1.5rem;
  }

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

  .retreat-definition {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

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

  .retreat-item {
    padding: 1.5rem;
  }

  .retreat-item h3 {
    font-size: 0.95rem;
  }

  .retreat-item p {
    font-size: 0.95rem;
  }

  .retreat-types-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .retreat-type-item {
    padding: 1.5rem;
    min-height: 160px;
  }

  .retreat-type-item-large {
    grid-column: span 1;
  }

  .retreat-type-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .retreat-type-item h3 {
    font-size: 1rem;
  }

  .retreat-type-subtitle {
    font-size: 0.85rem;
  }

  .user-category-item {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .user-category-item:hover {
    transform: translateY(-5px);
  }

  .user-category-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .user-category-item p {
    font-size: 1rem;
  }

  /* Locations */
  .locations {
    padding: 4rem 1rem;
  }

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

  .locations-list {
    gap: 50px;
  }

  .location-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location-info h3 {
    font-size: 1.8rem;
  }

  .location-address {
    font-size: 0.85rem;
  }

  .location-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .location-details,
  .location-short-details {
    font-size: 0.85rem;
  }

  .price-item {
    font-size: 0.85rem;
  }

  .location-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-details,
  .btn-book {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .gallery-arrow {
    width: 35px;
    height: 35px;
  }

  .gallery-arrow svg {
    width: 20px;
    height: 20px;
  }

  .gallery-arrow-prev {
    left: 10px;
  }

  .gallery-arrow-next {
    right: 10px;
  }

  .gallery-dots {
    gap: 0.5rem;
  }

  .gallery-dot {
    width: 30px;
  }

  /* Modal */
  .modal {
    padding: 1rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    margin: 350px 1rem 0;
  }

  .modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .modal .form-group {
    margin-bottom: 1rem;
  }

  .close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-nav span {
    display: none;
  }

  .copyright,
  .contacts {
    font-size: 0.8rem;
  }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .form-container {
    padding: 15px 10px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group input[type="tel"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  /* Чекбоксы: 2 колонки с меньшими отступами */
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  /* Радио-кнопки: остаются в 1 колонку */
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .checkbox-item,
  .radio-item {
    padding: 0.7rem 0.4rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .checkbox-item label,
  .radio-item label {
    font-size: 0.85rem;
    white-space: normal;
  }

  .checkbox-item input,
  .radio-item input {
    width: 16px;
    height: 16px;
  }

  .preview-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .submit-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }

  .header {
    padding: 1rem;
    height: 70px;
  }

  .logo {
    font-size: 0.9rem;
  }

  .burger {
    width: 25px;
    height: 20px;
  }

  .location-info h3 {
    font-size: 1.5rem;
  }

  .gallery-arrow {
    width: 30px;
    height: 30px;
  }

  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }

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

  .about-container h2,
  .locations h2 {
    font-size: 1.75rem;
  }

  .welcome-card h2 {
    font-size: 1.5rem;
  }

  .retreat-item h3 {
    font-size: 0.9rem;
  }

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

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  /* Чекбоксы: 1 колонка для очень маленьких экранов */
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .checkbox-item {
    justify-content: flex-start;
    padding: 0.75rem;
  }

  .checkbox-item label {
    white-space: normal;
  }
}

/* Для Touch-устройств */
@media (hover: none) and (pointer: coarse) {
  .checkbox-item,
  .radio-item {
    padding: 1rem 0.75rem;
    min-height: 48px;
  }

  .checkbox-item input,
  .radio-item input {
    width: 22px;
    height: 22px;
  }

  .file-upload {
    padding: 2.5rem 1.5rem;
  }

  .submit-btn,
  .btn-book,
  .btn-details {
    padding: 1rem 2rem;
    min-height: 48px;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
  }
}

/* Ландшафтная ориентация для мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  .location-gallery {
    height: 300px;
  }

  .hero {
    min-height: 60vh;
  }

  .form-container {
    padding-top: 20px;
  }

  /* В ландшафте можно показать 3 колонки чекбоксов */
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Очень широкие экраны (от 1600px) */
@media (min-width: 1600px) {
  .form-container {
    max-width: 1000px;
  }

  .container,
  .locations-container {
    max-width: 1400px;
  }

  .location-gallery {
    height: 700px;
  }
}

/* ============================================
   НОВЫЙ ВИЗУАЛ В СТИЛЕ INSPIRATION SHOT
   ============================================ */
:root {
  --bg-primary: #030b0a;
  --bg-secondary: #081715;
  --bg-panel: rgba(7, 25, 22, 0.9);
  --bg-card: rgba(6, 22, 20, 0.8);
  --text-primary: #f3f9f7;
  --text-muted: rgba(243, 249, 247, 0.7);
  --accent: #50f4d2;
  --accent-strong: #1da17e;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --shadow-deep: 0 50px 120px rgba(0, 0, 0, 0.65);
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top,
    #0d3832 0%,
    #030b0a 55%,
    #010605 100%
  );
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../image/bg.jpg") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(3, 11, 10, 0.95) 15%,
    rgba(3, 11, 10, 0.7) 60%,
    rgba(7, 25, 22, 0.85) 100%
  );
  z-index: -1;
}

section {
  backdrop-filter: blur(10px);
}

.header {
  background: linear-gradient(
    140deg,
    rgba(3, 10, 9, 0.95),
    rgba(3, 10, 9, 0.6)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 4rem;
  height: 84px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.nav-links {
  align-items: center;
  gap: 3rem;
}

#navLinks {
  gap: 2.5rem;
  width: auto;
}

#navLinks a {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
}

#navLinks a:hover,
#navLinks a.active {
  color: var(--text-primary);
}

#navLinks a::after {
  height: 3px;
  background: var(--accent);
}

.logo img {
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
}

.hero {
  position: relative;
  min-height: 90vh;
  padding: 140px 4rem 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 11, 10, 0.1) 0%,
    rgba(3, 11, 10, 0.9) 85%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-shadow: 0 25px 80px rgba(0, 0, 0, 0.75);
}

.hero h1 .highlight {
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-style: normal;
  text-shadow: 0 0 30px rgba(80, 244, 210, 0.7);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 620px;
}

.swipe-indicator {
  margin-top: 3rem;
  padding: 1.25rem 1.75rem;
  background: rgba(4, 19, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--accent);
  box-shadow: var(--shadow-deep);
}

.about-retreat {
  padding: 7rem 4rem;
  position: relative;
  
  background: linear-gradient(
    180deg,
    rgba(5, 17, 16, 0.95) 0%,
    rgba(3, 11, 10, 0.9) 100%
  );
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.about-retreat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../image/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.18;
  z-index: 0;
  filter: blur(3px) brightness(0.6) saturate(0.9);
  transform: scale(1.02);
}

/* Альтернативный вариант - если изображение задано через inline стиль */
.about-retreat[style*="background-image"]::before {
  background-image: inherit;
}

.about-retreat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 11, 10, 0.85) 0%,
    rgba(5, 17, 16, 0.9) 50%,
    rgba(3, 11, 10, 0.85) 100%
  );
  z-index: 1;
}

.about-retreat .container {
  position: relative;
  z-index: 2;
}

.about-container h2,
.locations h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--accent);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.retreat-definition {
  color: var(--text-muted);
  font-style: normal;
  border-left: 3px solid rgba(80, 244, 210, 0.35);
  padding-left: 1.5rem;
}

.retreat-grid {
  gap: 1.5rem;
}

.retreat-item {
  background: rgba(6, 22, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(80, 244, 210, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.retreat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(80, 244, 210, 0.3);
  box-shadow: 0 25px 70px rgba(80, 244, 210, 0.2),
              0 0 0 1px rgba(80, 244, 210, 0.2) inset;
  background: rgba(6, 22, 20, 0.85);
}

.retreat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(80, 244, 210, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.retreat-item:hover::before {
  opacity: 1;
}

.retreat-item h3 {
  color: var(--accent);
}

.retreat-item p {
  color: var(--text-muted);
}

/* Стили для блока "Виды ретрита" */
.retreat-types-section {
  margin-top: 5rem;
  position: relative;
  padding: 4rem 0;
  border-radius: 24px;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.retreat-types-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.retreat-types-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.25;
  z-index: 0;
  transform: scale(1.05);
}

.retreat-types-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.retreat-types-section > * {
  position: relative;
  z-index: 2;
}

.retreat-types-title {
  color: var(--accent);
  margin-bottom: 3rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.retreat-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.retreat-type-item {
  background: rgba(6, 22, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(80, 244, 210, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 180px;
}

.retreat-type-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(80, 244, 210, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.retreat-type-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(80, 244, 210, 0.5);
  box-shadow: 0 30px 80px rgba(80, 244, 210, 0.3),
              0 0 40px rgba(80, 244, 210, 0.15);
  background: rgba(6, 22, 20, 0.85);
}

.retreat-type-item:hover::before {
  opacity: 1;
}

.retreat-type-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.retreat-type-item:hover .retreat-type-icon {
  transform: scale(1.15) rotate(5deg);
}

.retreat-type-item h3 {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.retreat-type-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}

/* Варианты карточек с разными акцентами */
.retreat-type-item-large {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(80, 244, 210, 0.15), rgba(6, 22, 20, 0.8));
  border-color: rgba(80, 244, 210, 0.3);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(80, 244, 210, 0.2) inset,
              0 0 30px rgba(80, 244, 210, 0.1);
}

.retreat-type-item-accent {
  background: linear-gradient(135deg, rgba(29, 161, 126, 0.15), rgba(6, 22, 20, 0.8));
  border-color: rgba(29, 161, 126, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(29, 161, 126, 0.2) inset;
}

.retreat-type-item-accent::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(29, 161, 126, 0.3), transparent);
  border-radius: 0 20px 0 100%;
}

.retreat-type-item-highlight {
  background: linear-gradient(135deg, rgba(80, 244, 210, 0.18), rgba(6, 22, 20, 0.85));
  border-color: rgba(80, 244, 210, 0.4);
  border-width: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 2px rgba(80, 244, 210, 0.3) inset,
              0 0 40px rgba(80, 244, 210, 0.15);
}

.retreat-type-item-highlight::before {
  background: radial-gradient(
    circle at top,
    rgba(80, 244, 210, 0.2),
    transparent 60%
  );
}

.retreat-type-item-accent-2 {
  background: linear-gradient(135deg, rgba(80, 244, 210, 0.12), rgba(29, 161, 126, 0.12));
  border-color: rgba(80, 244, 210, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(80, 244, 210, 0.2) inset;
}

.retreat-type-item-accent-2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(80, 244, 210, 0.25), transparent);
  border-radius: 0 100% 0 20px;
}

/* Стили для блока "Категории пользователей" */
.user-categories-section {
  margin-top: 5rem;
  position: relative;
  padding: 4rem 0;
  border-radius: 24px;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.user-categories-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.user-categories-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.25;
  z-index: 0;
  transform: scale(1.05);
}

.user-categories-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1;
}

.user-categories-section > * {
  position: relative;
  z-index: 2;
}

.user-categories-title {
  color: var(--accent);
  margin-bottom: 3rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.user-categories-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-category-item {
  background: rgba(6, 22, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(80, 244, 210, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.user-category-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #2bd1aa);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-category-item:hover {
  transform: translateX(8px) scale(1.01);
  border-color: rgba(80, 244, 210, 0.5);
  box-shadow: 0 25px 70px rgba(80, 244, 210, 0.25),
              0 0 30px rgba(80, 244, 210, 0.1);
  background: rgba(6, 22, 20, 0.85);
}

.user-category-item:hover::before {
  opacity: 1;
}

.user-category-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #2bd1aa);
  color: #03100e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(80, 244, 210, 0.3);
  transition: transform 0.3s ease;
}

.user-category-item:hover .user-category-icon {
  transform: scale(1.1) rotate(5deg);
}

.user-category-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.user-category-item-secondary {
  background: linear-gradient(135deg, rgba(80, 244, 210, 0.1), rgba(6, 22, 20, 0.8));
  border-color: rgba(80, 244, 210, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(80, 244, 210, 0.15) inset;
}

.user-category-item-secondary .user-category-icon {
  background: linear-gradient(135deg, #2bd1aa, var(--accent));
}

.locations {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(3, 9, 9, 0.95) 0%,
    rgba(5, 19, 18, 0.9) 100%
  );
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.locations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 0;
  filter: blur(2px) brightness(0.5);
}

.locations::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 9, 9, 0.88) 0%,
    rgba(5, 19, 18, 0.85) 100%
  );
  z-index: 1;
}

.locations-container {
  position: relative;
  z-index: 2;
}

.tours-grid {
  gap: 1.5rem;
}

.tour-card {
  position: relative;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform-origin: center;
}

.tour-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 10, 12, 0) 45%,
    rgba(4, 10, 12, 0.95) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tour-image {
  height: 360px;
  filter: saturate(0.9);
}

.tour-content {
  position: relative;
  z-index: 2;
}

.tour-content h3 {
  color: var(--text-primary);
}

.tour-address,
.tour-description {
  color: var(--text-muted);
}

.tour-meta {
  justify-content: space-between;
  color: var(--accent);
}

.tour-price {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.tour-capacity {
  color: var(--text-muted);
}

.btn-book,
.btn-details,
.view-all {
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
  border: none;
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(80, 244, 210, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-book:hover,
.btn-details:hover,
.view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 35px 70px rgba(80, 244, 210, 0.45);
  color: #03100e;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0.85rem 2.4rem;
  min-height: 46px;
  font-size: 0.78rem;
  position: relative;
  overflow: hidden;
}

.btn-inline.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.btn-inline.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.btn-inline.btn-primary {
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
  border: none;
  box-shadow: 0 18px 40px rgba(80, 244, 210, 0.35);
}

.btn-inline.btn-primary:hover {
  box-shadow: 0 35px 70px rgba(80, 244, 210, 0.45);
  transform: translateY(-3px);
}

.view-all {
  padding: 1rem 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modal {
  background: rgba(1, 5, 5, 0.95);
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-deep);
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.modal .form-group label {
  color: var(--text-muted);
}

.locations-table-card {
  background: rgba(5, 19, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-deep);
}

.locations-table tbody tr {
  background: rgba(6, 24, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  color: var(--text-muted);
}

footer {
  background: #010605;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 15px 40px rgba(0, 0, 0, 0.55);
}

.form-container {
  background: rgba(5, 19, 18, 0.85);
  padding: 60px 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-deep);
  border-radius: 30px;
}

.form-container h1 {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 1rem;
}

.form-subtitle {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
}

.form-section {
  padding: 2.25rem;
  margin-bottom: 2rem;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-deep);
}

.section-title {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  color: var(--text-primary);
  letter-spacing: 0.2em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: border 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.checkbox-group,
.radio-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1rem;
}

.checkbox-item,
.radio-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: border 0.3s ease, transform 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover,
.checkbox-item input:checked + label,
.radio-item input:checked + label {
  color: var(--accent);
}

.file-upload {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.preview-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.remove-image {
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
}

.submit-btn {
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
  margin-top: 2rem;
  box-shadow: 0 20px 45px rgba(80, 244, 210, 0.25);
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 120px 1.5rem 80px;
  }

  .about-retreat,
  .locations {
    padding: 4rem 1.5rem;
  }

  /* Отключаем fixed background на мобильных для лучшей производительности */
  .about-retreat::before,
  .retreat-types-section::before,
  .user-categories-section::before,
  .locations::before {
    background-attachment: scroll;
    filter: blur(2px) brightness(0.4);
    opacity: 0.2;
  }

  .retreat-types-section,
  .user-categories-section {
    padding: 3rem 0;
  }

  .form-container {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .retreat-types-grid{
    grid-template-columns: 1fr;
  }
}
/* Полноэкранная галерея */
.fullscreen-gallery {
  display: none;
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.fullscreen-gallery.active {
  display: flex;
}

.fullscreen-gallery .close-btn {
  position: fixed;
  top: 5%;
  right: 5%;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.fullscreen-gallery .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.fullscreen-gallery .swiper {
  width: 100%;
  height: 100%;
  padding: 70px 40px 50px;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  z-index: 10001;
  pointer-events: none;
}

.fullscreen-gallery .swiper-slide,
.fullscreen-gallery .swiper-slide img,
.fullscreen-gallery .swiper-button-next,
.fullscreen-gallery .swiper-button-prev,
.fullscreen-gallery .swiper-pagination {
  pointer-events: auto;
}

.fullscreen-gallery .swiper-wrapper {
  display: flex;
  align-items: center;
}

.fullscreen-gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.fullscreen-gallery .swiper-slide img {
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .fullscreen-gallery .swiper {
    padding: 60px 20px 50px;
  }

  .fullscreen-gallery .swiper-slide img {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 110px);
  }

  .fullscreen-gallery .close-btn {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}

/* Стили для модального окна результата (успех/ошибка) */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 5, 5, 0.9);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(6px);
}

.success-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-modal-content {
  background: rgba(6, 22, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.4s ease;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

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

.success-icon {
  margin: 0 auto 2rem;
  animation: scaleIn 0.5s ease 0.2s both;
}

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

.success-modal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.success-modal-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(243, 249, 247, 0.8);
  margin-bottom: 1rem;
}

.success-btn {
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 999px;
  letter-spacing: 0.3em;
  box-shadow: 0 20px 45px rgba(80, 244, 210, 0.35);
}

.success-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 35px 70px rgba(80, 244, 210, 0.45);
}

/* Стили для QR-кода */
.qr-code-container {
  text-align: center;
  padding: 2rem;
  background: rgba(6, 22, 20, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  max-width: 500px;
}

.qr-code-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.qr-code-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.qr-download-btn {
  background: linear-gradient(120deg, var(--accent), #2bd1aa);
  color: #03100e;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 999px;
  letter-spacing: 0.2em;
  box-shadow: 0 10px 30px rgba(80, 244, 210, 0.3);
  margin-bottom: 1rem;
}

.qr-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(80, 244, 210, 0.4);
}

.qr-code-url {
  font-size: 0.9rem;
  color: rgba(243, 249, 247, 0.7);
  word-break: break-all;
  margin: 0;
}

@media (max-width: 768px) {
  .qr-code-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .qr-code-title {
    font-size: 1.2rem;
  }
  
  .qr-code-wrapper {
    padding: 1rem;
  }
}
.user-category-item span{
  color: white;
  font-weight: 500;
}