* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Общие стили */
body {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.container {
  max-width: 1596px;
  padding: 0 0;
  margin: 0 auto;
}

.hide {
  display: none !important;
}

.title-wrapper {
  margin-bottom: 60px;
}

.title {
  margin-bottom: 17px;

  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #676770;
}

.subtitle {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8E8E9C;
}

img {
  max-width: 100%;
  height: auto;
}

/* ------------ HEADER ------------ */

.header {
  padding: 20px 0;
  width: 100%;

  position: static;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
}


.logo{
  display: flex;
  justify-content: center;
  gap: 95px;
  margin-right: 145px;
  margin-left: auto;
}

.logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.01);
    opacity: 1;
}

.logo2 {
  width: auto;
  height: 40px;
  margin-top: 10px;
}

.logo1 {
  width: auto;
  height: 60px;

}

.icon1{
  width: 52px;
  height: 52px;
  margin: 0 12px 0 12px;
}

.profile-icon.profile-avatar {
    width: 100%; /* Занимает всю ширину родителя */
    height: 100%; /* Занимает всю высоту родителя */
    object-fit: cover; /* Сохраняет пропорции */
    border-radius: 50%; /* Делает изображение круглым внутри контейнера */
    margin: 0; /* Удаляю внешние отступы с img */
}

.header-avatar-wrapper {
    position: relative;
    display: inline-block;
    width: 44px; /* Размер контейнера */
    height: 44px; /* Размер контейнера */
    border-radius: 50%; /* Делаем контейнер круглым */
    overflow: hidden; /* Обрезаем все, что выходит за круг */
    margin: 0 16px 0 16px; /* Перемещаю отступы сюда */
}

.phoneproflogo{
  display: flex;
  margin: 0 auto;
}

.phoneprof{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 79px;
  margin-right: 0;
  margin-left: 0;
}

.phone{
  text-align: right;
}

.phone2{
  text-align: right;
  display: flex;
}

.phone h1{
  font-size: 20px;
  font-weight: 500;
}

.phone h2{
  font-size: 18px;

}

.phone h3{
  font-size: 20px;
  font-weight: 700;
  color: #1D98A1;
  margin-left: 6px;
  margin-right: 6px;
}



/* Добавляем стили для кликабельных иконок */
.clickable-icon {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin: 0 10px;
}

.clickable-icon:hover {
  transform: scale(1.01);
  opacity: 1;
}

.clickable-icon:active {
  transform: scale(0.95);
}

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

.clickable-icon {
  transition: all 0.3s ease;
}

.hidden-search-icon {
  visibility: hidden;
}

.catalog1{
  margin-top: 40px;
}

.licatal{
  display: flex;
  gap: 16px;
}

.catalimg{
  width: 35px;
  height: 22px;
}


.header__nav{
  max-width: 1396px;
  margin: 0 auto;
}

.header__nav__ul{
  font-size: 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}


/* Стили для всплывающего меню профиля */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0px;
    overflow: hidden;
    padding: 10px 0;
}

.profile-menu.show {
    display: block;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.profile-menu-item:hover {
    background-color: #f1f1f1;
}

.profile-menu-icon {
    width: 24px;
    height: 24px;
    margin-left: 15px;
    margin-right: 0;
    object-fit: contain;
}

.profile-menu .divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
}

.logout-form.profile-menu-item {
    padding: 0;
}

.logout-form .logout-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s ease;
}

.logout-form .logout-button:hover {
    background-color: #f1f1f1;
}

/* ------------ MAIN ------------ */

.main{
  margin-top: 55px;
}

.firstblock{
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 380px;
  gap: 20px;
}

.bitov{
  position: relative;
}

.komplPC{
  position: relative;
}

.bitov img{
  width: 788px;
  height: 380px;
}

.komplPC img{
  width: 788px;
  height: 380px;
}

.bitov h1{
  padding: 44px 44px;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.komplPC h1{
  padding: 44px 44px;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.secondblock {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  height: 380px;
  gap: 20px;
}

.secondblock img {
  width: 303px;
  height: 380px;
  object-fit: cover; /* чтобы изображения не искажались */
}

.secbl1, .secbl2, .secbl3, .secbl4 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.secondblock h1, .secbl4 h1 {
  position: absolute;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  width: 100%; /* чтобы текст не вылезал за границы */
}

.secbl4 img {
  width: 627px;
  height: 380px;
}


.seccont {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1596px; /* Максимальная ширина контейнера */
  height: 100%;
  max-height: 360px;
  margin: 0 auto; /* Центрирование контейнера */
  margin-top: 75px;
}

.boximg1 {
  text-align: center; /* Выравнивание текста по центру */

}

.boximg1 img{
  max-width: 399px;
  max-height: 180px;
}

.boxtitle1 {
  background-color: #F5F5F8; /* Цвет фона */
  color: #000000; /* Цвет текста */
  text-align: center; /* Выравнивание текста по центру */
}

.seccont h1{
  font-size: 18px;
  font-weight: 600;
  padding: 26px 18px 8px 18px;
}

.seccont p{
  font-size: 16px;
  font-weight: 400;
  padding: 0px 22px 22px 22px;
  line-height: 1;
}

.bloggg{
  margin-top: 65px;
}

.blogggtitle{
  font-weight: 700;
  font-size: 32px;
  text-align: center;
}

.blogggblock h1{
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}


.blogggblock{
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 360px;
  gap: 20px;
}

.blogggblock1{
  background-image: url('../img1/image_pop1.webp'); 
  background-size: cover; 
  background-position: center; 
  width: 466px;
  height: 360px;
  padding: 45px 45px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.blogggblock12{
  background-image: url('../img1/image_pop2.webp');
  background-size: cover; /* Заполнение фоном */
  background-position: center; /* Выравнивание по центру */
  width: 626px;
  height: 360px;
  padding: 45px 45px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.blogggblock11{
  background-image: url('../img1/image_pop3.webp');
  background-size: cover; /* Заполнение фоном */
  background-position: center; /* Выравнивание по центру */
  width: 466px;
  height: 360px;
  padding: 45px 45px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bloggbtn{
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.outlined-button {
  background-color: transparent;
  border: 2px solid #a0a0a0;
  color: #000000; /* Цвет текста */
  padding: 10px 20px;
  font-size: 16px; /* Размер шрифта */
  cursor: pointer; /* Курсор при наведении */
  transition: background-color 0.3s, color 0.3s; /* Плавный переход */
  width: 200px;
  height: 40px;
}

.outlined-button:hover {
  border: 2px solid #202020;
}

.quaddiv{
  margin-top: 60px;
}


.quadtitle h1{
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

.quadtext{
  margin-top: 40px;
  margin-bottom: 120px;
}

.quadtext p{
  font-size: 16px;
  font-weight: 400;
  text-align: start;
  margin-top: 0;
  margin-bottom: auto;
}








.footercolor{
  margin-top: 60px;
  background-color: #D9D9D9;
}

.mainfooter{
  height: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 90px;
  padding: 30px 0px 60px 0px;
}

.logofoot img{
  width: 230px;
  height: 104px;
}

.footadress img{
  width: 24px;
  height: 24px;
  margin-left: -2px;
}

.footsocial img{
  width: 36px;
  height: 36px;
}

.footerblock1{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footadress{
  margin-bottom: 0;
  margin-left: 10px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footadress h1{
  font-size: 14px;
  font-weight: 600;
}


.footerblock2{
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.footcat1{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footcat1 h1{
  font-size: 18px;
  font-weight: 600;
}

.footcat1 li{
  font-size: 16px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footcat1 ul{
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.footerblock3{
  margin-top: 30px;
}

.footsocial{
  margin-top: 23px;
  display: flex;
  gap: 28px;
}

.footsocial a {
  display: inline-block;
  transition: transform 0.3s; /* Анимация при наведении */
}

.footsocial a:hover {
  transform: scale(1.05); /* Увеличение при наведении */
}

.footsocial img {
  width: 40px; /* Размер иконок */
  height: 40px;
}

.footrassil h1{
  font-size: 16px;
  font-weight: 700;
}

.emailras{
  margin-top: 16px;
}

.emailras p{
  font-size: 10px;
  font-weight: 400;
}

.emailras h3{
  font-size: 10px;
  font-weight: 400;
  color: #1D98A1;
}

.agreement p {
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
}

.privacy {
  color: #1D98A1;
  text-decoration: underline; /* Подчёркивание всегда */
  display: inline;
  cursor: pointer;
  font-weight: 400; /* Обычное начертание */
  transition: font-weight 0.2s; /* Плавное утолщение */
}

.privacy:hover {
  font-weight: 400;
  color: #1D98A1;
}

.search-cont1 {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.search-input1 {
  background-color: white;
  border-radius: 8px 0px 0px 8px;
  padding: 7px 7px 7px 9px;
  outline: none; /* Убирает обводку */
}

.search-button1 {
  background-color: rgba(29, 152, 161, 0.5); /* 50% прозрачности */
  color: black;
  border: none;
  cursor: pointer;
  border-radius: 0px 8px 8px 0px;
  padding: 7px;
}



/* Медиа-запросы для адаптации */
@media (max-width: 1596px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 1200px) {
  .logo {
    gap: 50px;
    margin-right: 100px;
  }
  
  .phoneprof {
    gap: 40px;
  }
  
  .header__nav__ul {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .phoneproflogo {
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .mainfooter {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: auto;
  }
  
  .footerblock3 {
    grid-column: span 2;
  }
  
  .firstblock, .secondblock {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .bitov img, .komplPC img {
    width: 100%;
    height: auto;
  }
  
  .secondblock img {
    width: 100%;
    height: 200px;
  }
  
  .secbl4 img {
    width: 100%;
  }
  
  .seccont {
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }
  
  .blogggblock {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .blogggblock1, .blogggblock11, .blogggblock12 {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ (768px и меньше) ==================== */
@media (max-width: 768px) {
  /* Общие стили */
  .container {
    padding: 0 15px;
  }

  /* Шапка */
  .phoneproflogo {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .logo {
    margin: 0;
    gap: 15px;
  }

  .logo1 {
    height: 40px !important; /* Уменьшено менее значительно */
  }

  .logo2 {
    height: 25px !important; /* Уменьшено менее значительно */
    margin-top: 5px !important;
  }

  .phoneprof {
    gap: 30px;
    flex-direction: column;
    align-items: center;
  }

  .phone, .phone2 {
    text-align: center;
  }

  .icons-container {
    gap: 10px;
  }

  .header__nav__ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
  }

  .licatal {
    margin: 0;
  }

  .catalog1 {
    margin-top: 20px;
  }

  /* Главная секция */
  .main {
    margin-top: 30px;
  }

  .firstblock, .secondblock {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
  }

  .bitov img, .komplPC img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .bitov h1, .komplPC h1 {
    font-size: 24px;
    padding: 20px;
  }

  .secondblock img {
    width: 100%;
    height: 180px;
  }

  .secondblock h1 {
    font-size: 24px;
  }

  /* Блок с описанием */
  .seccont {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
  }

  .boxtitle1, .boximg1 {
    padding: 15px;
  }

  .boximg1 img {
    max-width: 100%;
    height: auto;
  }

  /* Блок с форумами */
  .bloggg {
    margin-top: 40px;
  }

  .blogggblock {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
  }

  .blogggblock1, 
  .blogggblock11, 
  .blogggblock12 {
    width: 100%;
    height: 200px;
    padding: 20px;
  }

  /* Текстовый блок */
  .quaddiv {
    margin-top: 40px;
  }

  .quadtext {
    margin: 20px 0 40px;
  }

  /* Подвал */
  .mainfooter {
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto;
    padding: 30px 15px;
  }

  .footerblock1, 
  .footerblock2, 
  .footerblock3 {
    margin-top: 0;
  }

  .footerblock2 {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footcat1 {
    text-align: center;
    margin-top: 20px; /* Добавляем отступ сверху для раздела "О нас" */
  }

  .footcat1 h1 {
    font-size: 18px;
    font-weight: 600;
  }

  .footadress {
    margin-left: 0;
    margin-top: 20px;
  }

  .footsocial {
    justify-content: center;
  }

  /* Логотип в подвале */
  .logofoot img {
    width: 150px !important; /* Уменьшено менее значительно */
    height: auto !important; /* Сохраняем пропорции */
  }
}

/* ==================== ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ (576px и меньше) ==================== */
@media (max-width: 576px) {
  /* Уменьшаем размеры текста */
  .bitov h1, 
  .komplPC h1,
  .secondblock h1,
  .blogggtitle h1,
  .quadtitle h1 {
    font-size: 20px;
  }

  .seccont h1 {
    font-size: 16px;
  }

  .seccont p {
    font-size: 14px;
  }

  /* Иконки в шапке */
  .icon1 {
    width: 40px;
    height: 40px;
  }

  /* Форма подписки */
  .search-cont1 {
    flex-direction: column;
  }

  .search-input1 {
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
  }

  .search-button1 {
    border-radius: 8px;
    width: 100%;
  }

  /* Карточки */
  .bitov img, 
  .komplPC img,
  .secondblock img {
    height: 150px;
  }

  .blogggblock1, 
  .blogggblock11, 
  .blogggblock12 {
    height: 150px;
    padding: 15px;
  }

  /* Дополнительное уменьшение логотипов - теперь менее агрессивное */
  .logo1 {
    height: 35px !important;
  }
  
  .logo2 {
    height: 22px !important;
  }
  
  .logofoot img {
    width: 130px !important;
    height: auto !important;
  }
}

/* ==================== МЕЛКИЕ ПРАВКИ ДЛЯ ГОРИЗОНТАЛЬНОГО ОРИЕНТИРА ==================== */
@media (max-width: 768px) and (orientation: landscape) {
  .bitov img, 
  .komplPC img,
  .secondblock img,
  .blogggblock1, 
  .blogggblock11, 
  .blogggblock12 {
    height: 250px;
  }
}

/* Стили для модального окна выхода */
.logout-modal {
    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;
    backdrop-filter: blur(1px);
}

.logout-modal.show {
    display: flex;
}

.logout-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.logout-modal-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.logout-modal-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

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

.logout-modal-cancel,
.logout-modal-confirm {
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-modal-confirm {
    background-color: #1D98A1;
    color: white;
    border: none;
}

.logout-modal-confirm:hover {
    background-color: #167a82;
}

.logout-modal-cancel {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.logout-modal-cancel:hover {
    background-color: #e5e5e5;
}

.animated-block {
  transition: transform 0.3s ease-in-out;
}

.animated-block:hover {
  transform: scale(1.01);
}