/* ===== CSS СТИЛИ ===== */

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Добавляем плавную прокрутку для всей страницы через CSS */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    overflow-x: hidden;
    padding-top: 90px; /* Увеличенный отступ для фиксированной шапки */
    background-color: #f8f9fa;
}

/* Стили для секций */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    width: 100%;
    /* Добавляем отступы между секциями */
    margin-bottom: 3rem;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.section-bg.loaded {
  opacity: 1;
}

#about .section-bg {
  background-image: url('assets/images/bg-about.jpg');
}

#boxing .section-bg {
  background-image: url('assets/images/boxing_page.jpg');
}

/* Разделитель между секциями - делаем светлее */
.section-divider {
    height: 50px;
    background-color: #0098a8; /* Изменили цвет на более светлый и яркий */
    position: relative;
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 5;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.15); /* Уменьшили тень */
    clip-path: polygon(0 0, 100% 35%, 100% 65%, 0% 100%);
}

/* Шапка сайта - увеличиваем размер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1.5rem; /* Увеличили отступы */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: #0098a8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 90px; /* Фиксированная высота шапки */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 70px; /* Увеличили размер логотипа */
    height: 70px; /* Увеличили размер логотипа */
    margin-right: 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Убрали белый фон */
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 70px; /* Увеличили размер */
    height: 70px; /* Увеличили размер */
    background-color: #ffd166;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: #1d3557;
}

.academy-name {
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.2rem); /* Увеличили размер шрифта */
    color: white;
    line-height: 1.2;
}

/* Изменяем стили для контейнера с иконками и бургером */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Добавляем отступ между иконками и бургером */
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px; /* Уменьшаем расстояние между иконками */
}

/* Улучшенные стили для иконок соцсетей */
.social-icon {
    color: white;
    font-size: clamp(1.3rem, 2.3vw, 1.7rem);
    width: 45px; /* Увеличили размер */
    height: 45px; /* Увеличили размер */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15); /* Увеличили контраст фона */
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none; /* Убираем подчеркивание */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Добавляем тень */
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    /* Убедимся, что иконки правильно центрированы */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Гамбургер-меню */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Мобильное меню */

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
}

.menu-overlay.active {
  display: block !important;
}

.menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.menu-link {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.menu-link:hover {
  color: #ffd166;
}

/* Секции с фоновыми изображениями */
#home .section-bg {
    background-image: url('assets/images/bg-home.jpg');
}

#about .section-bg {
    background-image: url('assets/images/bg-about.jpg');
}

#service .section-bg {
    background-image: url('assets/images/bg-offer.jpg');
}

#montazh .section-bg {
    background-image: url('assets/images/montazh.jpg');
}

#radiator .section-bg {
    background-image: url('assets/images/radiator.jpg');
}

#vodosnab .section-bg {
    background-image: url('assets/images/vodosnab.jpg');
}

#proekt .section-bg {
    background-image: url('assets/images/proekt.jpg');
}

#kotel .section-bg {
    background-image: url('assets/images/kotel.jpg');
}

#hot_pol .section-bg {
    background-image: url('assets/images/hot_pol.jpg');
}


#thai-boxing .section-bg {
    background-image: url('assets/images/bg-works.jpg');
}

#cybersport .section-bg {
    background-image: url('assets/images/bg-price.jpg');
}

#it-school .section-bg {
    background-image: url('assets/images/bg-pluses.jpg');
}

/* Подстраницы */
#page-service .section-bg {
    background-image: url('assets/images/service_page.jpg');
}

#page-works .section-bg {
    background-image: url('assets/images/works_page.jpg');
}

#page-advantages .section-bg {
    background-image: url('assets/images/advantages_page.jpg');
}

#page-cost_calculation .section-bg {
    background-image: url('assets/images/calculate_page.jpg');
}

#page-contacts .section-bg {
  background-image: url('assets/images/contacts_page.jpg');
}

.photo-text-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row;
}

@media (max-width: 768px) {
  .photo-text-wrapper {
    flex-direction: column;
  }
}
.photo-block {
  flex: 1 1 400px;
  display: flex;
  align-items: stretch;
}

.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.text-block {
  flex: 1 1 400px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-block h2 {
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 700;
}

.text-block p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
}

.kotel-section .section-bg {
  background-color: #111; /* или другая текстура / фон */
}

.section {
  position: relative;
  overflow: hidden;
}

ul {
    color: rgb(255, 255, 255);
}
.section-bg {
  background: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.section-bg.loaded {
  opacity: 1;
}

.section-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6); /* Оставляем контент достаточно контрастным */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05), rgba(0,0,0,0.4));
  z-index: 1;
}

#page-boxing .section-bg {
  background-image: url('assets/images/boxing_page.jpg');
}

#page-advantages .section-bg {
  background-image: url('assets/images/advantages_page.jpg');
}

#page-works .section-bg {
  background-image: url('assets/images/works_page.jpg');
}

#page-it .section-bg {
  background-image: url('assets/images/it_page.jpg');
}

#page-contacts .section-bg {
  background-image: url('assets/images/contacts_page.jpg');
}



[id^="page-"] {
  /* Стили для всех подстраниц */
  min-height: 100vh;
  position: relative;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Заголовки и текст */
h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    color: white;
}
h3 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    margin-bottom: 1rem;
    color: rgb(255, 255, 255);
}
.contacts-page {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

#page-contacts h1 {
  text-shadow: none;
  color: white; /* Или нужный тебе */
}

/* Делаем отступы между филиалами */
#page-contacts ul li {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgb(251, 251, 251);
  line-height: 1.6;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block {
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

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

.contact-block h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #00bfff;
}

.contact-block p {
  font-size: 1.1rem;
  color: #ccc;
  margin: 0.2rem 0;
}

/* Карта */

.map-container {
  margin-top: 3rem;
  width: 100%;
  height: 400px;
  background-color: #ddd;
  border-radius: 12px;
  overflow: hidden;
}

/* Адаптив */
@media (max-width: 600px) {
  .contact-item-block {
    padding: 1rem;
  }

  .map-container {
    height: 300px;
  }
}

/* Улучшенные иконки секций */
.section-icon {
    margin-right: 15px;
    width: 50px; /* Увеличиваем размер */
    height: 50px; /* Увеличиваем размер */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffd166;
    font-size: 1.8rem; /* Увеличиваем размер иконки */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Добавляем тень */
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: white;
}

/* Улучшенные кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn:hover::after {
    height: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0098a8, #0eb1c4);
    color: white;
    margin-right: 0.5rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffc107, #ffd166);
    color: #1d3557;
}

.btn i {
    margin-right: 8px;
}

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

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: clamp(1.3rem, 2.3vw, 1.7rem);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #e9ecef;
    transform: rotate(90deg);
}

/* Форма */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    background: linear-gradient(135deg, #004494, #0069d9);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Улучшенная кнопка Telegram */
.telegram-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px; /* Увеличиваем размер */
    height: 65px; /* Увеличиваем размер */
    background: linear-gradient(135deg, #0088cc, #29b6f6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.2rem); /* Увеличиваем размер иконки */
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5); /* Усиливаем тень */
    z-index: 50;
    transition: all 0.3s ease;
    text-decoration: none; /* Убираем подчеркивание */
}

.telegram-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6); /* Усиливаем тень при наведении */
}

.telegram-btn i {
    /* Убедимся, что иконка правильно центрирована */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Футер */
footer {
    background-color: #1d3557;
    color: white;
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ffd166;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
    color: #ffd166;
}

.social-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Уменьшаем отступ для мобильных */
    }
    
    .header {
        height: 80px; /* Уменьшаем высоту шапки для мобильных */
        padding: 0.5rem 1rem;
    }
    
    .logo-img, .logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    h1 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .btn-primary {
        margin-right: 0;
    }
    
    /* Увеличиваем размер текста в шапке для мобильных */
    .academy-name {
        font-size: 0.95rem; /* Увеличиваем размер шрифта на мобильных */
        font-weight: 700; /* Делаем шрифт жирнее для лучшей читаемости */
    }
    
    .section-divider {
        height: 30px;
        margin-top: -30px;
        margin-bottom: -30px;
    }
    
    /* Увеличиваем размер иконок на мобильных */
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: clamp(1.4rem, 2.5vw, 1.8rem); /* Увеличиваем размер иконки */
    }
    
    /* Увеличиваем размер иконок секций на мобильных */
    .section-icon {
        width: 45px;
        height: 45px;
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
        margin-right: 12px;
    }
    
    /* Увеличиваем размер плавающей кнопки Telegram на мобильных */
    .telegram-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Уменьшаем отступ между иконками и бургером на мобильных */
    .header-right {
        gap: 12px;
    }
    
    /* Уменьшаем отступ между иконками соцсетей на мобильных */
    .social-links {
        gap: 8px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 375px) {
    .academy-name {
        font-size: 0.85rem; /* Еще немного уменьшаем на очень маленьких экранах */
    }
    
    .logo-img, .logo-placeholder {
        width: 55px;
        height: 55px;
        margin-right: 0.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-right {
        gap: 8px;
    }
}


.menu-overlay.active {
  display: block !important;
  z-index: 9999;
}

/* === Увеличенные размеры на десктопе === */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .form-control,
  .form-submit {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }

  .section-content {
    padding: 3rem;
  }

  .academy-name {
    font-size: 1.4rem;
  }

  .social-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .section-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}