/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    text-decoration: none;
}

.logo1 {
    width: 70px;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #e9ecef;
    color: #2c5aa0;
}

.nav-menu a.active {
    background-color: #2c5aa0;
    color: white;
}

/* Кнопка "Ещё" */
.nav-more-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #555;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-more-btn:hover {
    background-color: #e9ecef;
    color: #2c5aa0;
}

/* Выпадающее меню */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.nav-more:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-list {
    list-style: none;
    padding: 10px;
}

.nav-dropdown-list a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.nav-dropdown-list a:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.nav-dropdown-list a.active {
    background-color: #2c5aa0;
    color: white;
}

/* Главная секция с видео фоном */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-slogan {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-image {
    margin: 40px 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 40px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.8;
}

/* Кнопка CTA */
.cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Секция преимуществ */
.features {
    padding: 80px 0;
     background-image: url('https://eurokurort.by/images/fotobank/nation/135/19958_big.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 24px;
}

/* Страницы контента */
.content-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    

}

.content-page h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.content-page h2 {
    font-size: 28px;
    color: #2c5aa0;
    margin: 30px 0 20px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* FAQ секция */
.faq-item {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5aa0;
}

.faq-item h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

/* Таблицы */
.price-table,
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-table th,
.schedule-table th {
    background-color: #2c5aa0;
    color: white;
    padding: 15px;
    text-align: left;
}

.price-table td,
.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.price-table tr:hover,
.schedule-table tr:hover {
    background-color: #f8f9fa;
}

/* Правила - списки */
.rules-list {
    list-style-type: decimal;
    margin-left: 30px;
    margin-bottom: 30px;
}

.rules-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Форма */
.buy-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Отзывы */
.review-card {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #6c757d;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

/* Карточки сотрудников */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.staff-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-photo {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.staff-photo1 {
    width: 300px;
    height: 200px;
}

.staff-info {
    padding: 20px;
}

.staff-info h3 {
    color: #333;
    margin-bottom: 5px;
}

.staff-position {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Кружки */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.club-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.club-card:hover {
    transform: translateY(-5px);
}

.club-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    background-color: #e9ecef;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Архив по годам */
.year-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.year-section h2 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

/* Переключатель языков с JavaScript */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.lang-btn:hover {
    background-color: #e9ecef;
    border-color: #2c5aa0;
}

.lang-btn.active {
    background-color: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* Флаги */
.lang-flag {
    width: 20px;
    height: 14px;
    display: inline-block;
    border-radius: 2px;
}

.lang-flag-uz {
    background: linear-gradient(
    to bottom,
    #0099b5 0%,
    #0099b5 25%,
    #ce1126 25%,
    #ce1126 27.08%,
    #ffffff 27.08%,
    #ffffff 72.92%,
    #ce1126 72.92%,
    #ce1126 75%,
    #1eb53a 75%,
    #1eb53a 100%
  );
  border: 1px solid #000; /* опционально */
}

.lang-flag-ru {
   background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 33.33%,
    #0039a6 33.33%,
    #0039a6 66.66%,
    #d52b1e 66.66%,
    #d52b1e 100%
  );
  border: 1px solid #000; /* опционально, чтобы рамка была */

}

.lang-flag-en {
   background:
    /* Синее поле */
    linear-gradient(to bottom, #3c3b6e 0%, #3c3b6e 53.85%, transparent 53.85%) top left / 40% 53.85% no-repeat,

    /* Полосы */
    linear-gradient(
      to bottom,
      #b22234 0%,
      #b22234 7.7%,
      #ffffff 7.7%,
      #ffffff 15.4%,
      #b22234 15.4%,
      #b22234 23.1%,
      #ffffff 23.1%,
      #ffffff 30.8%,
      #b22234 30.8%,
      #b22234 38.5%,
      #ffffff 38.5%,
      #ffffff 46.2%,
      #b22234 46.2%,
      #b22234 53.9%,
      #ffffff 53.9%,
      #ffffff 61.6%,
      #b22234 61.6%,
      #b22234 69.3%,
      #ffffff 69.3%,
      #ffffff 77%,
      #b22234 77%,
      #b22234 84.7%,
      #ffffff 84.7%,
      #ffffff 92.4%,
      #b22234 92.4%,
      #b22234 100%
    );
  border: 1px solid #000;
}

/* Адаптивность для переключателя языков */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .lang-flag {
        width: 18px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .lang-btn {
        padding: 5px 8px;
    }
    
    .lang-btn span:not(.lang-flag) {
        display: none;
    }
}

/* Большие десктопы */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Средние десктопы и ноутбуки */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid,
    .clubs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Планшеты в ландшафтной ориентации */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Навигация */
    .main-nav .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Hero секция */
    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-slogan {
        font-size: 20px;
    }
    
    .hero-description {
        padding: 20px;
    }
    
    /* Сетки */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .staff-grid,
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Таблицы */
    .price-table,
    .schedule-table {
        font-size: 14px;
    }
    
    .price-table th,
    .schedule-table th,
    .price-table td,
    .schedule-table td {
        padding: 10px;
    }
}

/* Планшеты в портретной ориентации */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Навигация */
    .main-nav {
        padding: 10px 0;
    }
    
    .main-nav .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .nav-dropdown {
        right: 50%;
        transform: translateX(50%);
        width: 90vw;
        max-width: 300px;
    }
    
    .nav-more:hover .nav-dropdown {
        transform: translateX(50%) translateY(0);
    }
    
    /* Hero секция */
    .hero {
        height: 70vh;
        min-height: 400px;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-slogan {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .hero-description {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hero-description p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Заголовки */
    .content-page h1 {
        font-size: 28px;
    }
    
    .content-page h2 {
        font-size: 24px;
    }
    
    .features h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Сетки - одна колонка */
    .features-grid,
    .staff-grid,
    .clubs-grid,
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Карточки */
    .feature-card,
    .club-card {
        padding: 20px;
    }
    
    /* Таблицы - горизонтальная прокрутка */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .price-table,
    .schedule-table {
        min-width: 500px;
    }
    
    /* Форма */
    .buy-form {
        padding: 25px;
    }
    
    /* Отзывы */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Большие смартфоны */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Навигация */
    .logo {
        font-size: 22px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .nav-more-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Hero секция */
    .hero {
        height: 60vh;
        min-height: 350px;
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-slogan {
        font-size: 16px;
    }
    
    .hero-image {
        margin: 20px 0;
    }
    
    .hero-description {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Контент */
    .content-page {
        padding: 40px 0;
    }
    
    .content-page h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .content-page h2 {
        font-size: 20px;
        margin: 25px 0 15px;
    }
    
    /* Секции */
    .features {
        padding: 50px 0;
    }
    
    /* FAQ */
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 18px;
    }
    
    /* Формы */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    /* Футер */
    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    footer p {
        font-size: 14px;
    }
}

/* Маленькие смартфоны */
@media (max-width: 400px) {
    /* Навигация */
    .logo {
        font-size: 20px;
    }
    
    .nav-menu {
        gap: 2px;
    }
    
    .nav-menu a,
    .nav-more-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 24px;
    }
    
    .hero-slogan {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Контент */
    .content-page h1 {
        font-size: 22px;
    }
    
    /* Карточки */
    .feature-card h3,
    .club-card h3 {
        font-size: 20px;
    }
    
    /* Таблицы */
    .price-table,
    .schedule-table {
        font-size: 12px;
    }
    
    /* Кнопки */
    .submit-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 70vh;
        min-height: 300px;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-slogan {
        font-size: 16px;
    }
    
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Специальные стили для iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* Фикс для правильного отображения на iPhone */
    .nav-dropdown {
        -webkit-transform: translateZ(0);
    }
    
    /* Плавная прокрутка */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Фикс для видео на iOS */
    .hero-video {
        -webkit-transform: translateZ(0);
    }
}

/* Доступность - увеличенные области клика на мобильных */
@media (max-width: 768px) {
    a, button, .nav-more-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Печать */
@media print {
    /* Скрываем навигацию и футер при печати */
    header, footer {
        display: none;
    }
    
    /* Убираем фоны и тени */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Черный текст на белом фоне */
    body {
        background: white;
        color: black;
    }
    
    /* Скрываем видео при печати */
    .hero-video,
    .hero-overlay {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    /* Разрывы страниц */
    .content-page h1,
    .content-page h2 {
        page-break-after: avoid;
    }
    
    .faq-item,
    .review-card,
    .staff-card {
        page-break-inside: avoid;
    }
}