/* Цветовая палитра */
:root {
  --background-main: #0b2c37;
  --text-color: #f0f0f0;
  --accent-color: #c78030;
  --accent-gradient: linear-gradient(to right, var(--accent-color), #FEE97D);
  --card-background: #124559;
  --button-bg: #1a4e66;
  --button-hover: #226688;
  --button-accent: #4caf50;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-big: 5px 14px 8px var(--shadow-color);
  --transition-base: 0.4s ease;
  --border-radius: 6px;
  --border-radius-circle: 50%;
  --width-focus: 67%;
  --width-other: 33%;
}
/* ====== 2. Базовые стили ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-main);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  text-align: center;
  margin-top: 3rem;
}

h1, h4 {
  font-size: 4rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1rem;
}

p {
  text-indent: 16px;
  line-height: 1.6;
  -webkit-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto; 
}

img {
  display: block;
}

.accent {
  color: var(--accent-color);
  font-size: 1.1lh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.fadein {
  -webkit-animation: fadin 1.5s 1 ease-out forwards;
          animation: fadin 1.5s 1 ease-out forwards;
}
@-webkit-keyframes fadin {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes fadin {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Navigation */
.navbar {
  display: flex;
  align-items:center;
  justify-content: space-around;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 auto;
  z-index: 1000;
  background: var(--background-main);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.navbar-subscribe{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.menu-bar {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
  cursor: pointer;
}

.menu-bar_list {
  position: relative;
  color: var(--accent-color);
}

.menu-bar_link {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 1.2; /* Улучшено для лучшего выравнивания текста */
  display: block; /* Для правильного позиционирования :after */
  padding: 0.25rem 0; /* Немного отступа для увеличения области клика */
}

.menu-bar_link:after,
.menu-bar_link_active:after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
   width: 0%;
  background: var(--accent-gradient);
  transition: .4s;
}

.menu-bar_link:hover:after {
  width: 80%;
}

.menu-bar_link_active:after {
  width: 80%;
}

@media (max-width: 888px) {
  .navbar {
    padding: 0.5rem 0;
  flex-direction: column;}
  .menu-bar {
    flex-wrap: wrap;
  }
  .menu-bar_link {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.02em;
  }
  .menu-bar_link:after {
    height: 1px;
  }
}
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: auto;
}

  /* ====== 4. Секция "О нас" ====== */
.about-section {
  margin-top: calc(1.25rem + 29px);
  padding: 4rem 0;
  background-color: var(--card-background);
  background-image: url('img/glav_head.png');
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  text-align: center;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-text {
  max-width: 800px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 2rem 3rem;
  text-align: left;
  background-color: rgba(18, 69, 89, 0.5);
}

.rout {
  background-image: url('img/routes/bg.jpg');
}


.rout  h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 1rem;
}

.rout img{
  max-width: 300px;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.cont {
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.cont a {
  display: block;
}

/* Load More Button */
.button,
.load-more,
.subscribe-form button,
.accent-btn,
#ok {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  display: inline-block;
  text-decoration: none; /* Для ссылок-кнопок */
  transition: background var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
  box-shadow: 0 4px 10px var(--shadow-color);
  font-family: inherit; /* Наследование шрифта от body */
  font-size: 1rem; /* Единый размер шрифта */
}

.button,
.btn,
#ok {
  background: var(--button-bg);
  color: var(--text-color);
}

.load-more{
  background: var(--button-bg);
  color: var(--text-color);
}

.load-more:hover,
.button:hover,
.btn:hover,
#ok:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

.load-more,
.btn {
  display: flex;
  justify-content: center;
  align-items: center;  
  margin: 1lh auto 0;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 4px 10px var(--shadow-color);
  color: var(--text-color);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
   box-shadow: var(--shadow-big);
    font-size: 1rem;
}
.load-more:hover {
  background: var(--button-hover);
}
.accent-btn {
  background-color: var(--button-accent);
}
.btn {
    background-color: var(--button-accent);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

/* кнопки карточки маршрутов */
.btns {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.btns a .load-more{
  display: block;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

/* Средние экраны (планшеты) */
@media (max-width: 990px) {
  .about-text {
    padding: 2rem 2rem;
  }
  .about-text h1 {
    font-size: 2.5rem;
  }
  .about-text p {
    font-size: 1rem;
  }
}

/* container-projects */
.container-projects {
  margin: auto 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 30px;
}

/* project */
.project {
  flex: 1 1 75%;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  padding: 1rem;
}

.project-keis {
  margin-bottom: 3rem;
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-big);
}

.project-keis .cont {
  justify-content: flex-start;
  gap: 30px;
}
.project_promo {
  text-align: center;
  margin-bottom: 2rem;
}

.project_item {
  margin-bottom: 3rem;
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow-color);
}


.project_item_description {
  display: flex;
  gap: 20px;
  align-content: flex-start;
  flex-wrap: wrap;
}

.project_item_description_image_project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 250px;
}

.project_item_description_image_project .button {
  box-shadow: inset 0 -4px 10px 4px var(--shadow-color);
  border: none;
}

.project_item_description_image_project img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.project_item_description_text {
  align-self: center;
  flex: 1;
  min-width: 280px;
}

.project_desc {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.project_desc img {
  display: block;
  width: 45%;
  min-width: 280px;
  max-width: 100%;
  height: auto;
  margin: 10px;
  align-self: center;
  box-shadow: var(--shadow-big);
  border-radius: 8px;
}

.project_desc_text {
  align-self: center;
  padding: 10px;
  flex: 1;
  min-width: 280px;
}

.geo {
  align-self: flex-start;
}

.project_desc ul li {
  list-style: none;
}

.project_desc ul li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent-hover);
}

.icons {
  width: 68px;
  margin: 10px;
  margin-left: 0;
}

.connect {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.link {
  padding: 40px;
  align-self: center;
}

.link a {
  text-align: right;
  margin: 0 auto;
  text-decoration: underline;
}

/* main aside */
.list_project {
  list-style: none;
  padding: 1rem;
  margin: 0;
  background-color: transparent;
  border-radius: 8px;
}

.list_project li {
  margin-bottom: 0.5rem;
}

.list_project li a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 2px 10px;
}

.list_project li a:hover {
  color: var(--accent-color);
}

.list_project li a::after {
  content: '';
  display: block;
  width: 0%;
  height: 1px;
  background: var(--accent-gradient);
  margin-top: 2px;
  transition: width var(--transition-base);
}

.list_project li a:hover::after {
  width: 60%;
}

.menu {
  display: flex;
  flex-direction: column;
  flex: 0 0 25%;
  border-radius: 10px;
  margin-left: 40px;
  background: var(--card-background);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: var(--shadow-big);
}

.hamburger {
  display: none;
}

#toggle {
  display: none;
}
@media (max-width: 1400px) {
  .container-projects {
    flex-direction: column;
    padding: 10px;
  }

  .menu {
    margin-left: 0;
    margin-top: 1rem;
    flex: none;
    width: 100%;
    padding: 1rem;
  }

  .project {
    flex: 1;
    padding: 1rem;
    margin: 0 auto;
  }

  .tabs {
    justify-content: center;
    font-size: 0.95em;
  }

  .project_item {
    padding: 1rem;
  }

  .project_item_description,
  .project_desc {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .project_item_description_image_project img,
  .project_desc img {
    width: 100%;
    max-width: 300px;
  }

  .project_item_description_text,
  .project_desc_text {
    align-self: center;
  }

  .connect {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .link {
    padding: 20px 10px;
  }

  .project {
    padding: 1rem;
  }

  .menu {
    position: fixed;
    top: 60px;
    left: -320px;
    width: 300px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
    margin: 0;
    padding: 1.5rem;
    box-shadow: inset 0 -4px 10px 4px var(--shadow-color);
    background-color: var(--background-main);
  }

  #toggle:checked ~ .menu {
    left: 0;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: calc(1rem + 35px);
    left: 15px;
    width: 40px;
    cursor: pointer;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 5px;
    background-color: rgba(7, 49, 63, 0.8);
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.5s all;
  }

  #toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  #toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .project {
    padding: 1rem;
    margin: 0;
  }

  .project_desc,
  .project_item_description {
    gap: 1rem;
  }

  .project_desc img,
  .project_item_description_image_project img {
    max-width: 100%;
    width: 100%;
    margin: 10px 0;
  }

  .galleryLite {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .galleryLite_item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .link {
    padding: 15px 0;
  }
}

/* ====== 10. Футер ====== */
.footer-flex {
  display: flex;
  background: var(--background-main);
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1rem;
  padding: 1rem;
  align-items:stretch;
  box-shadow: var(--shadow-big);
}

.footer-flex h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.flexUl {
  flex-grow: 2 0 fit-content;
  display: flex;
  flex-flow: column wrap;
  height: 400px;
}


.flexUl li a {
  margin: 0 10px;
}
iframe {
  margin: 0 auto; /* Помогает при выравнивании flexbox */
  width: 100%;
  height: 400px;
  box-shadow: var(--shadow-big);
}


/* ====== 11. Кнопка "Наверх" ====== */
.pageUp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--accent-gradient);
  color: #07313f;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: background var(--transition-base), transform 0.2s ease;
}

.pageUp:hover {
  transform: scale(1.1);
  background: linear-gradient(to right, #ffe35e, var(--accent-color));
}

/* gallery-lightbox */
.galleryLite {
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.galleryLite a {
  text-decoration: none;
  display: inline-block;
}

.galleryLite_item {
  width: 100%;
  max-width: 300px;
  

}

.galleryLite_item img{
  box-shadow: var(--shadow-big);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;

}
.galleryLite_item img:hover {
  transform: scale(1.5);
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 30px;
  gap: 20px;
}
.gallery-item {
  text-align: center;
  transition: transform 0.3s ease;
}
.gallery-img {
  width: 100%;
  max-height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.gallery-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  color: var(--purple);
}
/* Адаптивность */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-img {
    border-radius: 8px;
  }
  .gallery-img:hover {
  transform: scale(1);
}
}
.img-zoom {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.img-zoom:hover {
  transform: scale(2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.tabRoutes {
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  position: relative;
}

.tabRoutes::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  margin-top: 4px;
  transition: 0.4s ease;
}

.tabRoutes:hover::after {
  width: 100%;
}

.tabRoutes_content {
  display: none;

}

.tabRoutes_content_active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem
}
.hostel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
}

.tabRoutes_active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  margin-top: 4px;
  transition: 0.4s ease;
}


.tabRoutes_content_item {
  background: #124559;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center
}

.button {
  background: linear-gradient(to right, #fee97d, gold);
  color: #07313f;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem
}

.tabRoutes_content_item img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 200px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .3)
}

.tabRoutes_content_item h3 {
  margin-top: 5px
}

.tabRoutes_content_item p {
  text-align: left
}

@media (max-width: 1100px) {
  .tabs {
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
  justify-content: center;
}
}

@media (max-width: 768px) {

.tabRoutes {
  font-weight: 500;
  font-size: 16px;
}

  
}
/* Popup */
.popup {  
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  background-color: rgba(0, 0, 0, 0.5);
}
.popup img {
  max-width: 100vh;
  max-height: 100vh;
  margin: 0 auto;
}
.catalog_item {
  background: var(--card-background);
  padding: 1.5rem;
  box-shadow: 0 4px 10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-big);
}


.catalog_item:hover {
  transform: translateY(-3px); /* Немного подъема при наведении */
}

.catalog_item img{
  width:350px;
}
#aboutHost,
#aboutHouse,
#aboutHouseGul,
#aboutHostAbaz1,
#aboutHostAbaz2 {
  display: none;
}
#aboutHost span,
#aboutHouse span,
#aboutHouseGul span,
#aboutHostAbaz1 span,
#aboutHostAbaz2 span {
  display: inline-block;
  width: 150px;

}

  
.catalog_item .aboutHostTo,
.catalog_item .aboutHouseTo,
.catalog_item .aboutHouseGulTo,
.catalog_item .aboutHostAbaz1To,
.catalog_item .aboutHostAbaz2To{
    position: relative;
    display: none;
    top: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.5s ease;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--background-main);
    box-shadow: inset 0 -4px 10px 4px var(--shadow-color);
  }

#aboutHostAbaz2:checked ~ .aboutHostAbaz2To {
    display:flex;
    flex-direction: column;
    -webkit-animation: fadin 1.5s 1 ease-out forwards;
            animation: fadin 1.5s 1 ease-out forwards;
}

#aboutHostAbaz1:checked ~ .aboutHostAbaz1To {
    display:flex;
    flex-direction: column;
    -webkit-animation: fadin 1.5s 1 ease-out forwards;
            animation: fadin 1.5s 1 ease-out forwards;
}

  #aboutHost:checked ~ .aboutHostTo {
    display:flex;
    flex-direction: column;
    -webkit-animation: fadin 1.5s 1 ease-out forwards;
            animation: fadin 1.5s 1 ease-out forwards;
}
 #aboutHouse:checked ~ .aboutHouseTo {
    display:block;
    -webkit-animation: fadin 1.5s 1 ease-out forwards;
            animation: fadin 1.5s 1 ease-out forwards;
}
 #aboutHouseGul:checked ~ .aboutHouseGulTo {
    display:block;
    -webkit-animation: fadin 1.5s 1 ease-out forwards;
            animation: fadin 1.5s 1 ease-out forwards;
}
/* ====== 13. Адаптивность (Media Queries) ====== */

@media (max-width: 1200px) {
  .slider-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 998px) {
  .footer-flex {
    justify-content: space-around;
    gap: 1rem;
  }
.flexUl {
  height: 100%;
}
  .footer-flex > div {
    min-width: auto; /* Позволить колонкам быть меньше */
    text-align: center; /* Центрировать текст в колонках */
  }

  .footer-flex ul {
    text-align: left; /* Списки внутри колонок - по левому краю */
    display: inline-block; /* Чтобы центрирование .footer-flex > div работало */
  }

  .footer-flex iframe {
    align-self: center; /* Центрировать карту */
    margin: 0 auto; /* Центрировать карту */
  }
}

@media (max-width: 992px) {
  .menu-bar_link {
    font-size: 18px;
  }

  .about-section {
    scroll-margin-top: 80px; /* Чтобы при якорном переходе всё было видно */
  }

  .about-text {
    padding: 2rem;
  }

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

  .about-text p {
    font-size: 1rem;
  }

  .slider-container {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    gap: 20px;
  }

  .slider-container-prim,
  .slider-thumbnails {
    width: 100%;
    flex: none; /* Убрать flex-grow/shrink */
    padding: 10px;
  }

  .slider-thumbnails {
    align-self: stretch; /* Растянуть на всю ширину контейнера */
  }

  .slider-item img {
    min-height: 250px;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  /* Корректировка отображения вкладок каталога на мобильных */
  .catalog_content {
    display: none; /* Проще использовать display */
  }

  .catalog_content_active {
    display: grid; /* Проще использовать display */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Минимальная ширина меньше */
    gap: 1rem; /* Меньше отступы */
  }

  .catalog_tabs {
    flex-wrap: wrap; /* Перенос вкладок при необходимости */
    justify-content: center;
    gap: 1rem;
  }

  .catalog_tab {
    font-size: 18px; /* Меньший размер шрифта */
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0; /* Уменьшить паддинг */
    font-size: 18px; /* Уменьшить размер шрифта */
  }

  .menu-bar_link:after {
    height: 1px;
  }

  .menu-bar {
    -moz-column-gap: 1rem;
         column-gap: 1rem; /* Меньше отступы между ссылками */
  }

  .about-section {
    padding: 3rem 0;
    scroll-margin-top: 80px;
  }

  .about-text {
    padding: 2rem 1.5rem;
    margin-top: 1.5rem;
  }

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

  .about-text p {
    font-size: 0.95rem;
  }

  .news-cards {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 1rem;
  }

  .news-card {
    padding: 1.5rem;
  }

  .subscribe-form {
    gap: 0.8rem;
  }

  .subscribe-form input[type="email"] {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .button,
  .load-more,
  .subscribe-form button,
  #ok {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .catalog_content_active {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 1rem;
  }

  .catalog_item {
    padding: 1.2rem;
  }

  .catalog_item h3 {
    font-size: 1.1rem;
  }

  .catalog_item p {
    font-size: 0.9rem;
  }

  .footer-flex {
    flex-direction: column; /* Вертикальное расположение на маленьких экранах */
    align-items: center;
    text-align: center;
  }

  .footer-flex > div {
    width: 100%;
  }

  .footer-flex ul {
    display: block; /* Сброс inline-block для центрирования списка */
    margin: 0 auto; /* Центрирование списка */
  }


  .footer-flex iframe {
    width: 100%; /* Карта на всю ширину колонки */
    max-width: 400px; /* Максимальная ширина */
    height: 250px; /* Высота */
  }

  .pageUp {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.5rem; /* Еще меньше паддинг */
  }

  h1, h4 {
    font-size: 2.5rem; /* Уменьшить заголовки */
  }

  .about-text h1 {
    font-size: 1.8rem; /* Уменьшить заголовок в "О нас" */
  }

  .about-text {
    padding: 1.5rem 1rem; /* Еще меньше паддинг */
  }

  .menu-bar {
    -moz-column-gap: 0.8rem;
         column-gap: 0.8rem; /* Еще меньше отступы */
    font-size: 16px; /* Еще меньше размер шрифта */
  }

  .catalog_tabs {
    gap: 0.8rem;
    font-size: 16px;
  }

  .catalog_item {
    padding: 1rem;
  }

  .slider-thumbnails {
    padding: 1rem;
  }

  .slider-container-prim {
    padding: 0 0.5rem;
  }
}


/* ====== 12. Модальные окна ====== */
.modal,
#orderPhone,
#thanks {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  color: #0b2c37;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  -webkit-animation: modalopen 0.4s;
          animation: modalopen 0.4s;
}

@-webkit-keyframes modalopen {
  from {opacity: 0; transform: translateY(-60px);}
  to {opacity: 1; transform: translateY(0);}
}

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

.modal-content h2 {
  color: #0b2c37;
  margin-top: 0;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #0b2c37;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #0b2c37;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box; /* Убедиться, что padding входит в ширину */
}

button[type="submit"] {
  background-color: var(--button-bg);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: background-color var(--transition-base);
  font-family: inherit;
  font-size: 1rem;
}

button[type="submit"]:hover {
  background-color: var(--button-hover);
}

#confirmationModal .modal-content,
#thanks .modal-content {
  text-align: center;
  padding: 30px;
}

.around {
  position: relative;
  display: flex;
  width: 100%;
  margin: 1rem 0;
}


/* половинки для маршрутов - конные и пешие */
.offer {
  height: 45vh;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #fff;
  box-sizing: border-box;
  transition: .4s ease;
}
.about-offer {
  background-color: rgba(18, 69, 89, 0.5);
  width: 70%;
  padding: 1rem;
}
.offer h2 {
  text-align: left;
}

.horse{
  background:  linear-gradient(rgba(125, 154, 172, 0.5), rgba(77, 81, 83, 0.9)),
  url("./img/routes/horses/horseHead.jpg") center/cover no-repeat;
}

.onFoot {
   background:  linear-gradient(rgba(125, 154, 172, 0.5), rgba(77, 81, 83, 0.9)),
  url("./img/routes/horses/peshkom.jpg") center/cover no-repeat;
}

.horse-hover .horse {
  width: var(--width-focus);
  background:  linear-gradient(rgba(125, 154, 172, 0.15), rgba(77, 81, 83, 0.3)),
  url("./img/routes/horses/horseHead.jpg") top/cover no-repeat;
}

.horse-hover .onFoot {
  width: var(--width-other);
  background:  linear-gradient(rgba(125, 154, 172, 0.4), rgba(77, 81, 83, 0.7)),
  url("./img/routes/horses/peshkom.jpg") top/cover no-repeat;
}

.onfoot-hover .onFoot{
  width: var(--width-focus);
   background:  linear-gradient(rgba(125, 154, 172, 0.15), rgba(77, 81, 83, 0.3)),
  url("./img/routes/horses/peshkom.jpg") center/cover no-repeat;
}

.onfoot-hover .horse{
  width: var(--width-other);
  background:  linear-gradient(rgba(125, 154, 172, 0.4), rgba(77, 81, 83, 0.7)),
  url("./img/routes/horses/horseHead.jpg") center/cover no-repeat;
}

.onfoot-hover .horse .about-offer {
  width: 100%;
}

@media (max-width: 1400px) {
  .about-offer {
    width: 100%
  }
}

@media (max-width: 998px) {
  .around {
    flex-direction: column;
  }
  .offer {
    width: 100%;
    height: auto;
    padding: 1rem;
  }
  .onfoot-hover .onFoot,
  .horse-hover .horse,
  .onfoot-hover .horse,
  .horse-hover .onFoot {
    width: 100%;
  }
}

/* Стикеры на карточках */
.route-sticker {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.catalog_item {
  position: relative;
}

.sticker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticker-popular {
  background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
  color: var(--card-background);
}

.sticker-new {
  background: var(--button-accent);
  color: white;
}

.sticker-eco {
  background: linear-gradient(135deg, var(--text-color) 0%, var(--button-accent) 100%);
  color: var(--card-background);
}

/* Блок цен */
.price-block {
  display: flex;
  gap: 15px;
  margin: 15px 0 0;
  flex-wrap: wrap;
  justify-content: space-between;
}

.price-option {
  flex: 1;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
  background: var(--button-hover);
}

.price-option.active {
  background: var(--background-main);
  border-width: 3px;
  box-shadow: 0 4px 10px var(--shadow-color);
  -webkit-animation: pulse 0.5s ease-in-out;
          animation: pulse 0.5s ease-in-out;
}

@-webkit-keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.price-icon {
  font-size: 32px;
  line-height: 1;
  width:50px;
}

.price-icon img{
  width:100%;
}

.price-details {
  flex: 1;
}

.price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.price-info {
  font-size: 12px;
  color: var(--text-color);
  line-height: 1.4;
}

.price-option.active .price-amount {
  color: var(--accent-color);
}

/* Модальное окно */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}

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

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

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  -webkit-animation: slideUp 0.3s ease;
          animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: var(--button-hover);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.close-btn:hover {
  color: var(--card-background);
}

.modal-content h2 {
  margin: 0 0 15px 0;
  color: var(--background-main);
  text-align: left;
  font-size: 24px;
}

.modal-content > p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
}

/* Селектор типа тура в модальном окне */
.tour-type-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tour-option {
  flex: 1;
  min-width: 220px;
  position: relative;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.tour-option:hover,
.tour-option.selected{
  border-color: var(--card-background);
  background: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tour-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tour-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.tour-option-icon {
  font-size: 36px;
  line-height: 1;
}

.tour-option-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.tour-option-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--background-main);
  margin-bottom: 6px;
}

.tour-option.selected .tour-option-title {
  color: var(--background-main);
}

.tour-option-price {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.tour-option.selected .tour-option-price {
  color: var(--accent-color);
}

.tour-option-info {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

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

#btnsSubmit {
  width: 100%;
  padding: 15px;
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#btnsSubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#btnsSubmit:active {
  transform: translateY(0);
}

/* Улучшение блоков offer */
.offer .load-more {
  position: relative;
  overflow: hidden;
}

.offer .load-more::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.offer .load-more:hover::after {
  width: 300px;
  height: 300px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .price-option {
    min-width: 100%;
    justify-content: space-around;
  }
  
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .route-sticker {
    top: 10px;
    right: 10px;
  }
  
  .sticker {
    font-size: 10px;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .price-icon {
    font-size: 24px;
  }

  .price-block {
    flex-direction: column;
    align-items:center;
  }
  
  .price-amount {
    font-size: 18px;
  }
  
  .modal-content h2 {
    font-size: 20px;
  }
}