/* Основные стили */
:root {
   --primary: #2c3e50;
   --secondary: #1ac3d9;
   --accent: #e74c3c;
   --light: #ecf0f1;
   --dark: #2c3e50;
   --success: #2ecc71;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
   text-decoration: none;
}

ul {
   list-style-type: none;
}

p {
   margin-bottom: 10px;
}

body {
   background-color: #f9f9f9;
   color: var(--dark);
   line-height: 1.6;
   overflow-x: hidden;
}
/* === IBG Style === */
.ibg {
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
   background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));

}

.ibg img {
   display: none;
}

.box_in .title, ul.story_icons {
   display: none!important;
}

.container {
   width: 100%;
   max-width: 1350px;
   margin: 0 auto;
   padding: 0 20px;
}

section:nth-child(odd) {
   background-color: var(--light);
}

.sub-title {
   text-align: center;
   margin-bottom: 30px;
}

.qform__form-label, .qform__form-label a {
   color: transparent!important;
} 

/* Шапка сайта */
header {
   background-color: transparent;
   color: white;
   padding: 15px 0;
   position: fixed;
   width: 100%;
   top: 0;
   z-index: 1000;
   transition: all 0.3s ease;
}

._scrolled {
   background-color: var(--primary);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   padding: 0;
}

header.header._scrolled .btn {
   margin-top: 5px;
}

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

.logo {
   display: flex;
   align-items: center;
   color: #fff;
}

.logo img {
   height: 50px;
   margin-right: 10px;
}

.logo-text h1 {
   font-size: 1.5rem;
   line-height: 1;
}

.logo-text p {
   font-size: 0.9rem;
   opacity: 0.8;
}

/* Навигация */
nav ul {
   display: flex;
   list-style: none;
}

nav ul li {
   position: relative;
   margin-left: 20px;
}

nav ul li a {
   color: white;
   text-decoration: none;
   font-weight: 500;
   transition: color 0.3s;
   display: block;
   padding: 10px 0;
}

nav ul li a:hover {
   color: var(--secondary);
}

/* Выпадающее меню */
.dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   flex-direction: column;
   background-color: white;
   min-width: 200px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   border-radius: 5px;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s;
   z-index: 100;
}

nav ul li:hover .dropdown-menu {
   opacity: 1;
   visibility: visible;
}

.dropdown-menu li {
   margin: 0;
   border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
   border-bottom: none;
}

.dropdown-menu li a {
   color: var(--dark);
   padding: 10px 15px;
}

.dropdown-menu li a:hover {
   color: var(--secondary);
   background-color: #f5f5f5;
}

/* Бургер меню */
.burger {
   display: none;
   cursor: pointer;
   width: 30px;
   height: 20px;
   flex-direction: column;
   justify-content: space-between;
}

.burger span {
   display: block;
   width: 100%;
   height: 3px;
   background-color: white;
   transition: all 0.3s;
}

.mobile-menu {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   background-color: var(--primary);
   padding: 70px 20px 20px 20px;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
   transform: translateY(-150%);
   transition: transform 0.3s;
   z-index: 999;
}

.mobile-menu.active {
   transform: translateY(0);
}

.mobile-menu ul {
   list-style: none;
}

.mobile-menu ul li {
   margin-bottom: 15px;
}

.mobile-menu ul li a {
   color: white;
   text-decoration: none;
   font-size: 1.1rem;
}

.mobile-dropdown {
   padding-left: 15px;
   margin-top: 10px;
   display: none;
}

.mobile-dropdown.active {
   display: block;
}

.mobile-dropdown li {
   margin-bottom: 8px;
}

.mobile-dropdown li a {
   font-size: 0.9rem;
   opacity: 0.8;
}

/* Кнопки */
.btn {
   display: inline-block;
   background-color: var(--accent);
   color: white;
   /* padding: 10px 20px; */
   border-radius: 5px;
   text-decoration: none;
   font-weight: bold;
   transition: all 0.3s;
   border: none;
   cursor: pointer;
}

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

.btn-secondary {
   background-color: var(--secondary);
}

.btn-secondary:hover {
   background-color: #2980b9;
}

/* Герой-баннер */
.hero {
   background-size: cover;
   background-position: center;
   height: 100vh;
   display: flex;
   align-items: center;
   text-align: center;
   color: white;
}

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

.hero h2 {
   font-size: 3rem;
   margin-bottom: 20px;
}

.hero p {
   font-size: 1.2rem;
   margin-bottom: 30px;
}

/* Секция туров */
.section {
   padding: 80px 0;
}

.section-title {
   text-align: center;
   margin-bottom: 50px;
}

.section-title h2 {
   font-size: 2.5rem;
   color: var(--primary);
   position: relative;
   display: inline-block;
   padding-bottom: 15px;
}

.section-title h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 15px;
   background: url(../images/waves-blue.png) no-repeat center bottom transparent;
}

.tours-grid,
.camps-grid {
   display: grid;
   gap: 20px;
}

.tours-grid {
   grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}

.camps-grid {
   grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
}

.tour-card,
.camp-card {
   background-color: white;
   border-radius: 10px;
   overflow: hidden;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s, box-shadow 0.3s;
}

.tour-card:hover,
.camp-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tour-img,
.camp-img {
   height: 200px;
   overflow: hidden;
}

.camp-img {
   height: 400px;
}

.tour-img img,
.camp-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s;
}

.tour-card:hover .tour-img img,
.camp-card:hover .camp-img img {
   transform: scale(1.1);
}

.tour-content,
.camp-content {
   padding: 20px;
}

.tour-content h3,
.camp-content h3 {
   font-size: 1.2rem;
   margin-bottom: 10px;
   color: var(--primary);
}

.tour-location,
.camp-location {
   display: flex;
   align-items: center;
   margin-bottom: 15px;
   color: var(--secondary);
}

.tour-location i,
.camp-location i {
   margin-right: 5px;
}

.tour-dates,
.camp-dates {
   display: flex;
   flex-direction: column;
   margin-bottom: 15px;
   font-weight: 500;
}

.tour-price,
.camp-price {
   font-size: 1.3rem;
   font-weight: bold;
   color: var(--accent);
   margin-bottom: 15px;
}

.tour-anouns {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
   text-align: center;
}

/* Секция преимуществ */

.benefits-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
}

.benefit-card {
   background-color: white;
   padding: 30px;
   border-radius: 10px;
   text-align: center;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
   transition: transform 0.3s;
}

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

.benefit-icon {
   width: 70px;
   height: 70px;
   /* background-color: var(--secondary); */
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 20px;
   font-size: 1.8rem;
}

.benefit-card h3 {
   font-size: 1.3rem;
   margin-bottom: 15px;
   color: var(--primary);
}

.benefit-card p {
   color: #666;
   font-size: 0.95rem;
}

/* Галерея */

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   gap: 15px;
}

.gallery-item {
   position: relative;
   overflow: hidden;
   border-radius: 5px;
   height: 200px;
   cursor: pointer;
}

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

.gallery-item:hover img {
   transform: scale(1.1);
}

.gallery-view {
   position: absolute;
   color: white;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   font-size: 2rem;
   opacity: 0;
}

.gallery-item:hover .gallery-view {
   opacity: 1!important;
}

.gallery-btn {
   margin: 40px auto 0;
   display: block;
   width: fit-content;
}

/* FAQ */
.faq-item {
   margin-bottom: 15px;
   background-color: white;
   border-radius: 5px;
   overflow: hidden;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
   padding: 20px;
   font-size: 1.2rem;
   font-weight: 600;
   color: var(--primary);
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.faq-question span {
   display: none;
}

.faq-question::after {
   content: '+';
   font-size: 1.5rem;
   transition: transform 0.3s;
}

.faq-question.active::after {
   transform: rotate(45deg);
}

.faq-answer {
   padding: 0 20px;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
   padding: 0 20px 20px;
   max-height: 1000px;
}

/* Секция уроков */
.lessons-content {
   display: flex;
   align-items: center;
   gap: 50px;
}

.lessons-img {
   flex: 1;
   border-radius: 10px;
   overflow: hidden;
}

.lessons-img img {
   width: 100%;
   height: auto;
   display: block;
}

.lessons-text {
   flex: 1;
}

.lessons-text h3 {
   font-size: 2rem;
   margin-bottom: 20px;
   color: var(--primary);
}

.lessons-text p {
   margin-bottom: 20px;
   font-size: 1.1rem;
}

/* Подвал */
footer {
   background-color: var(--dark);
   color: white;
   padding: 50px 0 20px;
}

.footer-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 30px;
   margin-bottom: 30px;
}

.footer-col h3 {
   font-size: 1.3rem;
   margin-bottom: 20px;
   position: relative;
   padding-bottom: 10px;
}

.footer-col h3::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 50px;
   height: 2px;
   background-color: var(--secondary);
}

.footer-col ul {
   list-style: none;
}

.footer-col ul li {
   margin-bottom: 10px;
}

.footer-col ul li a {
   color: #ddd;
   text-decoration: none;
   transition: color 0.3s;
}

.footer-col ul li a:hover {
   color: var(--secondary);
}

.social-links {
   display: flex;
   gap: 15px;
   margin-top: 20px;
}

.social-links a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   background-color: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   color: white;
   transition: all 0.3s;
}

.social-links a:hover {
   background-color: var(--secondary);
   transform: translateY(-3px);
}

.copyright {
   text-align: center;
   padding-top: 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   font-size: 0.9rem;
   opacity: 0.8;
}

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

.modal-content {
   background-color: white;
   padding: 30px;
   border-radius: 10px;
   width: 100%;
   max-width: 800px;
   position: relative;
   animation: modalOpen 0.5s;
   overflow-y: scroll;
   height: 90vh;
}

@keyframes modalOpen {
   from {
      opacity: 0;
      transform: translateY(-50px);
   }

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

.close-modal {
   position: absolute;
   top: 15px;
   right: 15px;
   font-size: 1.5rem;
   cursor: pointer;
   color: var(--dark);
   transition: color 0.3s;
}

.close-modal:hover {
   color: var(--accent);
}

.modal h3 {
   font-size: 1.8rem;
   margin-bottom: 20px;
   color: var(--primary);
   text-align: center;
}

.form-group {
   margin-bottom: 20px;
}

.form-group label {
   display: block;
   margin-bottom: 5px;
   font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
   width: 100%;
   padding: 12px;
   border: 1px solid #ddd;
   border-radius: 5px;
   font-size: 1rem;
}

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

.submit-btn {
   width: 100%;
   padding: 12px;
   background-color: var(--accent);
   color: white;
   border: none;
   border-radius: 5px;
   font-size: 1rem;
   font-weight: bold;
   cursor: pointer;
   transition: background-color 0.3s;
}

.submit-btn:hover {
   background-color: #c0392b;
}

/* Туры Бали */
/* Герой-баннер для страницы тура */

.tour-hero-content {
   max-width: 800px;
   margin: 0 auto;
}

.tour-hero h1 {
   font-size: 2.5rem;
   margin-bottom: 20px;
}

.tour-hero-info {
   display: flex;
   justify-content: center;
   gap: 30px;
   margin-bottom: 30px;
}

.red-box {
   margin-top: 40px;
   padding: 20px;
   background: #fff8f8;
   border-left: 4px solid var(--accent);
}

.tour-hero-info-item i {
   margin-right: 10px;
   font-size: 1.5rem;
   color: var(--secondary);
}

/* Секции тура */
.tour-section {
   padding: 60px 0;
   border-bottom: 1px solid #eee;
}

.tour-section:last-child {
   border-bottom: none;
}

/* Таблица цен */
.price-table {
   width: 100%;
   border-collapse: collapse;
   margin: 30px 0;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-table th,
.price-table td {
   padding: 15px;
   text-align: left;
   border: 1px solid #ddd;
}

.price-table th {
   background-color: var(--primary);
   color: white;
   font-weight: 600;
}

.price-table tr:nth-child(even) {
   background-color: #f9f9f9;
}

.price-table tr:hover {
   background-color: #f1f1f1;
}

/* Список преимуществ */
.included-list {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 20px;
   margin: 30px 0;
}

.included-item {
   display: flex;
   align-items: flex-start;
   margin-bottom: 15px;
}

.included-item i {
   color: var(--success);
   margin-right: 10px;
   margin-top: 3px;
}

/* Проживание */
.accommodation {
   display: flex;
   gap: 40px;
   align-items: center;
   margin: 40px 0;
}

.accommodation-img {
   flex: 1;
   border-radius: 10px;
   overflow: hidden;
}

.accommodation-img img {
   width: 100%;
   height: auto;
   display: block;
}

.accommodation-text {
   flex: 1;
}

/* Flex в две колонки */
.flex-wrap {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-around;
}
.flex-item-2col {
   width: 45%;
}
/* Программа */
.program-item {
   margin-bottom: 30px;
   padding-left: 20px;
   border-left: 3px solid var(--secondary);
}

.program-item h3 {
   font-size: 1.3rem;
   margin-bottom: 10px;
   color: var(--primary);
}

/* Адаптивность */
@media (max-width: 992px) {
   .hero h2 {
      font-size: 2.5rem;
   }

   .lessons-content {
      flex-direction: column;
   }

   .lessons-img,
   .lessons-text {
      flex: none;
      width: 100%;
   }

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

   .accommodation {
      flex-direction: column;
   }

   .accommodation-img,
   .accommodation-text {
      width: 100%;
   }
}

@media (max-width: 768px) {
   nav ul {
      display: none;
   }

   .burger {
      display: flex;
   }

   .hero {
      height: 80vh;
   }

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

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

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

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

   .section-title h2 {
      font-size: 2rem;
   }

   .price-table {
      display: block;
      overflow-x: auto;
   }

   .flex-item-2col {
      width: 100%;
   }
}

@media (max-width: 576px) {

   .tours-grid,
   .camps-grid {
      grid-template-columns: 1fr;
   }

   .tour-hero h1, .hero h2 {
      font-size: 1.6rem;
   }

   .section-title h2 {
      font-size: 2rem;
   }

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

   .tour-anouns {
   grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
   }

   .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
   }
}