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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("/static/img/background_pattern_sand.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: sans-serif;
    padding-top: 0px; /* Учитываем фиксированный хедер */
}

/* Хедер */
header {
  background: rgba(255, 255, 255, 0.7); /* полупрозрачный */
  backdrop-filter: blur(8px); /* эффект стекла */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    padding-top: 0px; /* чтобы контент не прилипал к хедеру */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-img {
    height: 80px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
  background: rgba(255, 255, 255, 0.8); /* стекло с лёгкой прозрачностью */
  backdrop-filter: blur(10px);         /* размытие фона */
  padding: 14px 32px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  width: fit-content;
  font-size: 16px;
  z-index: 999;
}

.nav-link:hover {
    background-color: #f0c674;
    color: #3a291c;
}

/* Контент страницы */
.page-content {
    padding: 20px;
    text-align: center;
}

/* Таблица туров */
.table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.tours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tours-table th, .tours-table td {
    padding: 1px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tours-table th {
    background-color: #f3dfc1;
    color: #4e382a;
}

/* Картинки в таблице */
.thumb {
    width: 200px;
    height: 30px;
    object-fit: cover;
    border-radius: 20px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6d523b;
    font-size: 14px;
    margin-top: 50px;
    border-top: 1px solid #e0be8c;
}

<style>

.gallery-slider {
    position: relative;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slider-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 220px; /* высота фиксирована */
    border-radius: 12px;
}
.gallery-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 800px;
    height: 100%;
    object-fit: cover; /* ВАЖНО: обрезает, но не тянет */
    border-radius: 12px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
</style>

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.place-card, .news-slide, .hotel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
}

.place-card img, .news-slide img, .hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.news-slider, .hotels-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-top: 20px;
}

.news-slide, .hotel-card {
    min-width: 250px;
}

.place-card:hover,
.news-slide:hover,
.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.place-card,
.news-slide,
.hotel-card {
    transition: all 0.3s ease;
}

.places-grid,
.news-slider,
.hotels-slider {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
    display: flex; /* Добавляем это свойство для расположения слайдов в ряд */
}

.banner-slide {
    min-width: 100%;
    height: 70%;
    transition: transform 0.5s ease;
    flex-shrink: 0; /* Запрещаем сжать слайды */
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.detail-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff8ee;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.detail-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #5c4326;
}

.detail-container p {
    font-size: 16px;
    line-height: 1.6;
    color: #4e382a;
    text-align: left;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tours-table tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tours-table tr:hover {
    background-color: #f9e8d2; /* светлый песочный */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.thumb-img {
    width: 100px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.welcome-section {
	margin-top: 0px;
	padding-top: 0;
	text-align: center;
}

.welcome-section h1 {
	margin-top: 0;
	font-size: 32px;
	color: #3d2c1c;
}

.welcome-section h2 {
	margin-top: 0px;
	font-size: 20px;
	color: #6a5037;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.card {
  width: 280px;
  background: #fffefc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding: 10px;
  transition: transform 0.2s ease;
  margin: 0;        /* ← обязательно убрать */
  padding: 10px;
}

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

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f8f8f8;
}

.card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.card-button {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #f0a500;
  color: white;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.card-button:hover {
  background: #d98e00;
}

.swiper {
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .gallery-image {
    height: 160px;
  }
}

.card {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .card img {
    height: 180px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card-button {
    font-size: 14px;
    padding: 6px 12px;
  }
}

.tour-detail-container, .admin-container, .places-section {
  padding: 20px;
}

@media (max-width: 768px) {
  .tour-detail-container {
    padding: 15px 10px;
  }
}

@media (max-width: 600px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

header {
  background: rgba(255, 255, 255, 0.7); /* полупрозрачный */
  backdrop-filter: blur(8px); /* эффект стекла */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }

header {
  background: rgba(255, 255, 255, 0.8); /* стекло с лёгкой прозрачностью */
  backdrop-filter: blur(10px);         /* размытие фона */
  padding: 14px 32px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  width: fit-content;
  font-size: 16px;
  z-index: 999;
}

  .logo {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .tour-table {
    display: none;
  }

  .tour-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tour-card {
    background: #fff8f0;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    font-size: 14px;
  }

  .tour-card p {
    margin: 5px 0;
  }
}

@media (min-width: 769px) {
  .tour-cards {
    display: none;
  }
}

/* карточки скрыты на десктопе */
.tour-cards-mobile {
  display: none;
}

@media (max-width: 768px) {
  .tours-table {
    display: none;
  }

  .tour-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .tour-card-link {
    text-decoration: none;
    color: inherit;
  }

  .tour-card {
    background: #fffefc;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
  }

  .tour-card p {
    margin: 5px 0;
    font-size: 14px;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff8f0;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

nav#main-menu {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav#main-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
  }

  nav#main-menu.open {
    display: flex;
  }
}

.card-image-mobile {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff8f0;
  padding: 10px 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}

nav#main-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Мобилка */
@media (max-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .burger {
    display: block;
    font-size: 26px;
    cursor: pointer;
  }

  nav#main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff8f0;
    padding: 10px 0;
    margin-top: 10px;
  }

  nav#main-menu.open {
    display: flex;
  }
}

/* Десктоп — вернуть нормальный вид */
@media (min-width: 769px) {
  nav#main-menu {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-end;
  }
}

.banner {
  max-width: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

.tour-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}


.tour-card-visual {
  width: 100%;
  max-width: 320px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tour-card-visual:hover {
  transform: translateY(-3px);
}

.tour-image-box {
  position: relative;
}

.tour-image-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tour-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tour-location {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 6px;
}

.tour-info {
  padding: 12px 14px;
}

.tour-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.tour-price {
  color: #2ecc71;
  font-size: 18px;
  font-weight: bold;
}

.tour-old-price {
  text-decoration: line-through;
  font-size: 14px;
  color: #888;
}

.tour-discount {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.tour-monthly {
  font-size: 14px;
  color: #f39c12;
  margin-top: 6px;
}

.tour-image-box {
  position: relative;
  overflow: hidden;
}

.tour-badge-left,
.tour-badge-right {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  z-index: 2;
}

.tour-badge-left {
  left: 10px;
  background: #f39c12;
}

.tour-badge-right {
  right: 10px;
  background: #e74c3c;
}

.tour-info {
  padding: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.tour-price {
  color: #27ae60;
  font-size: 18px;
  font-weight: bold;
}

.tour-old-price {
  text-decoration: line-through;
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

.tour-discount {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
}

.tour-monthly {
  color: #f39c12;
  font-size: 14px;
  margin-top: 6px;
}

.tour-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.tour-card-link:hover {
  transform: scale(1.02);
}

/* Для кнопки "Назад" */
.btn-back {
  font-size: 14px;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.btn-back:hover {
  text-decoration: underline;
}

/* Слайдерные изображения */
.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

/* Кнопки навигации слайдера */
.swiper-button-next,
.swiper-button-prev {
  color: #3498db;
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 6px;
  top: 45%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

/* Поля формы */
#bookingForm input,
#bookingForm textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

#bookingForm textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

/* Кнопки */
.btn-book {
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.btn-submit {
  background: #2ecc71;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.btn-book {
  background: red !important;
  color: white !important;
  padding: 15px !important;
  font-size: 20px !important;
}

.btn-back {
  background: #ecf0f1;
  color: #3498db;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #dfe6e9;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(90deg, #f9e8d9, #fdf6ed);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  font-family: 'Segoe UI', sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #3498db;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background: #2c3e50;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 24px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: flex;
  }

.banner-slider {
  width: 100%;
  overflow: hidden;
  display: flex;
  margin-bottom: 0px; /* было больше — уменьшаем */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .banner-slide img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
	margin-bottom: 10px;
  }
}

.hero-section {
  padding-top: 60px;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .welcome-section {
    margin-top: 0px;
    padding-top: 0px;
}

.banner-slider {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0 !important;
}

.banner-slider img,
.banner-slider picture,
.banner-slider source {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.banner-slide {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 320px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  object-fit: cover;
}

.banner-slider {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0 !important;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}

/* убиваем дефолтные отступы h1 */
.welcome-section h1 {
  margin-top: 0 !important;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .tour-cards-grid {
    grid-template-columns: repeat(2, 1fr); /* планшет — по 2 */
  }
}

@media (max-width: 600px) {
  .tour-cards-grid {
    grid-template-columns: repeat(2, 1fr); /* ← теперь 2 карточки в ряд */
  }
}

#tours-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  #tours-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #tours-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #tours-list {
    grid-template-columns: 1fr;
  }
}

.thumb-swiper {
  background: #fff;
  padding: 10px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.thumb-swiper .swiper-slide {
  height: 60px;
  cursor: pointer;
}

.thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.thumb-swiper .swiper-slide img:hover {
  transform: scale(1.05);
}











