/* Общие стили */
body {
    margin: 0;
    font-family: "Nunito Sans1";
    color: #333;
}

html{
    scroll-behavior: smooth;
}

/* Шрифты */
@font-face {
    font-family: "Nunito Sans";
    src: url("fonts/NunitoSans-Regular.ttf") format("truetype");
    font-weight: 400;
}
@font-face {
    font-family: "Nunito Sans1";
    src: url("fonts/NunitoSans-Black.ttf") format("truetype");
    font-weight: 700;
}
@font-face {
    font-family: "Milker";
    src: url("fonts/Milker.otf") format("truetype");
    font-weight: 400;
}
/* Шапка */
header {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(6px);
    color: rgb(62, 62, 62);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
}
.lang-switch {
    position: absolute;
    right: 5%;            /* Отступ справа */
    top: 24px;            /* Чуть опустить, чтобы ровно в хедере */
    
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border: 2px solid rgb(62, 62, 62);  /* Толщина рамки */
    border-radius: 10px;      /* Скругление */

    height: 20px;            /* Как ты хотел */
    width: 40px;

    font-size: 14px;
    color: #404040;             /* Ставь свой цвет */
}

.lang-switch img {
    height: 20px;    /* м аленький флаг */
    width: auto;
}
.Logo {
    position: absolute;  /* сохраняем твою абсолютную позицию */
    top: 20%;            /* отступ сверху */
    left: 5%;
    width: 5%;           /* ширина логотипа */
    cursor: pointer;
    overflow: visible;
    display: inline-block;
    transition: transform 0.2s ease; /* для плавного увеличения */
    transform-origin: top left;
}

.Logo img {
    width: auto;       /* ширина автоматически */
    height: 50px;      /* фиксированная высота */
    display: block;    /* чтобы убрать лишние отступы снизу */
}

.Logo::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0); /* изначально прозрачное */
    transition: background-color 0.2s ease;
    pointer-events: none; /* чтобы клики проходили через псевдоэлемент */
}

.Logo.active::after {
    background-color: rgba(255, 255, 255, 0.2); /* белое наложение 20% */
}

.nav-menu {
    display: flex;
    gap: 20px;
}
.nav-menu a {
    color: rgb(62, 62, 62);
    text-decoration: none;
    align-items: center;
    margin-left: 20px;
    font-weight: 600;
}
.nav-menu.active {
    display: block;
}
.f-menu {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-menu::after {
    content: "";
    position: absolute;
    bottom: 0%; /* чуть ниже ссылок */
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right, 
        rgba(225, 225, 225, 0.5),
        #cbcbcb,
        rgba(225, 225, 225, 0.5)
    );
}
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.burger span {
    width: 25px;
    height: 3px;
    background: rgb(0, 0, 0);
    margin: 4px 0;
}

/* ====== ПАРАЛЛАКС-БЛОК ====== */

.parallax-section {
    position: relative;
    clip-path: inset(0 0 0 0);
    min-height: 70vh;
    overflow: visible;
    margin-top: 0;
}

/* Фон */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url("img/fon1.png");
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translateY(0);
}

/* Самолёт */
.parallax-plane {
    position: absolute;
    right: 8%;
    top: 4%;
    width: 600px;      /* подгонишь если надо */
    transform: translateY(-50%);
    z-index: 3;        /* самолёт ниже облаков */
    pointer-events: none;
}

/* Текст */
.parallax-text {
    position: absolute;
    top: 15%;
    left: 6%;
    color: #ffffff;
    z-index: 4;
    max-width: 800px;
}

.parallax-text h1 {
    font-size: 52px;
    margin: 0 0 -20px;
    line-height: 1.3;
}

.parallax-text p {
    font-size: 20px;
    line-height: 1.5;
}

.clouds {
    position: absolute;
    bottom: 150px; /* чтобы облака сидели прямо на границе секции */
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none; /* чтобы по облакам нельзя было нажимать */
    overflow: hidden;
    z-index: 5;
    
}

.cloud-img {
    width: 120%;
    height: auto;
    object-fit: cover;
    opacity: 1;
    transform: translateX(-10%);
}

.tours-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.tours-section h2 {
    text-align: center;
    font-weight: 700;
    color: #AC7F5E;
    margin-bottom: 40px;
    font-size: 32px;
}
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.tour-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #fff;
}
.tour-card:hover {
    transform: translateY(-5px);
}
.tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.tour-card .content {
    padding: 20px;
}
.tour-card h3 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #AC7F5E;
}
.tour-card p {
    font-weight: 400;
    color: #333;
    font-family: 'font-two';
}

.tour-card p b {
    font-weight: 400;
    color: #333;
    font-family: 'font-one';

}

/* Преимущества */
.advantages {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}
.advantages h2 {
    color: #AC7F5E;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 32px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.adv-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

/* Контакты */
.contact {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.contact h2 {
    text-align: center;
    font-weight: 700;
    color: #222;
    opacity: 90%;
    font-family: "milker";
    margin-bottom: 40px;
    font-size: 32px;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}
.contact-form button {
    padding: 12px;
    font-size: 16px;
    background: #AC7F5E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}
.contact-info {
    flex: 1;
    font-size: 16px;
    font-family: "font-one";
}

/* Футер */
footer {
    background: #1e1e1e;
    color: white;
    padding: 20px 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.footer-container a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .tours-grid, .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #1e1e1e;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        border-radius: 5px;
        padding: 10px 0;
    }
    .nav-menu a {
        margin: 10px 20px;
    }
}
@media (max-width: 600px) {
    .tours-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимация иконок */
.icon {
    transition: transform 0.3s, box-shadow 0.3s;
}

.features-section {
    width: 100%;
    background: #ffffff;
    min-height: 100px;      /* по твоему запросу */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;        /* аккуратные отступы */
}

.features-container {
    width: 90%;             /* 5% слева и справа */
    display: flex;
    justify-content: space-between; /* равномерное распределение */
    align-items: center;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
}


.feature img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}


/* Подключение двух шрифтов */
@font-face {
    font-family: 'font-one';
    src: url('fonts/NunitoSans-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'font-two';
    src: url('fonts/NunitoSans-Regular.ttf') format('truetype');
}

.icon {
    width: 50px;
    height: 50px;
}

.text-block {
    display: flex;
    flex-direction: column;
    max-width: 220px;
}


.text-top {
    font-family: 'font-one';
    font-size: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.text-bottom {
    font-family: 'font-two';
    font-size: 15px;
    margin-bottom: 5px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;              
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;      
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-card {
  background: #fff;
  padding: 20px;
  width: 60%;          /* ширина модалки */
  max-width: 600px;    /* максимум */
  border-radius: 10px;
  text-align: center;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;           /* расстояние между элементами */
}

.modal-card img {
  width: 100%;          /* картинка занимает ширину модалки */
  height: auto;         /* сохраняет пропорции */
  border-radius: 10px;
  object-fit: cover;    /* чтобы картинка не растягивалась */
}

.modal-card h3, .modal-card p {
  margin: 0;
}

.modal-overlay.visible .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.ok-btn {
  background-color: #28a745; /* зелёная */
  color: white;
  opacity: 90%;
  border: none;
  padding: 10px 50px;
  border-radius: 10px;
  cursor: default; /* пока без действия */
  font-weight: bold;
}

.close-btn {
  background-color: #dc3545; /* красная */
  color: white;
  opacity: 90%;
  border: none;
  padding: 10px 50px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.video-btn {
  background-color: #0077ff; /* синяя */
  color: white;
  border: none;
  opacity: 90%;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.certificates-section {
    padding: 40px 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Кнопки-стрелки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); /* светлая кнопка, чтобы видно было на белой рамке */
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 28px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    opacity: 1; /* стрелки видимы всегда */
}


.carousel-btn:hover {
    background: rgba(255,255,255,1);
    color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}


/* Лево и право - чуть ближе к границе рамки */
.carousel-btn.left {
    left: 5px; /* ближе к левому бордеру */
}

.carousel-btn.right {
    right: 5px; /* ближе к правому бордеру */
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
    filter: brightness(1.1) contrast(1.05) saturate(1.05);
    transition: filter 0.3s ease;
}

.carousel-item:hover img {
    filter: brightness(1.3) contrast(1.1) saturate(1.2);
}

.certificates-title {
    font-family: "Milker";
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10;
    color: #222; /* тёмно-серый для контраста */
    opacity: 90%;
    line-height: 1.1;
}