*{
  margin: 0;
  padding: 0;
  border: 0;
}


*,*:before, *after{
  -moz-box-sizing; border-box: 
  -webkit-box-sizing: border-box;
  -box-sizing:border-box;
}

:focus, :active{outline: none;}
a:focus, a:active{outline: none;}

nav,footer,header,aside{display: flex;}

html,body{
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webcit-text-size-adjust: 100%;
}

input,button,textarea{font-family: inherit;}

input::-ms-clear{display: none; color: #c7c7c7;}
button{cursor: pointer;}
button::-moz-focus-inner{padding: 0; border: 0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}

textarea {
resize: none;
}

/* - Шрифты - */

@font-face{
font-family: 'Gilroy';
font-style: normal;
font-weight: 400;
src: url('../fonts/gilroy-regular.woff'); 
}

@font-face{
font-family: 'Gilroy';
font-style: normal;
font-weight: 500;
src: url('../fonts/gilroy-medium.woff'); 
}


@font-face{
font-family: 'Gilroy';
font-style: normal;
font-weight: 600;
src: url('../fonts/gilroy-semibold.woff'); 
}

/* - Шрифты - */


body {
background-color: white;
font-family: 'Gilroy';
}

.container{
width: 1024px;
margin: 0px auto;
padding: 0px 15px;
box-sizing: border-box;
position: relative;
color: black;
z-index: 1;
}

a{
color: #D9D9D9;
cursor: pointer;
transition: 1s all;    
}

a:hover{
color: #5897ea; 
transition: 1s all;   
}

h1, h2, h3, h4, h5, p{
font-weight: 400;
color: #37393c;
font-family: 'Gilroy';
}

h1{
font-size: 48px;
font-weight: 500;
line-height: 135%;
margin-bottom: 20px;
}

h2{
font-size: 36px;
font-weight: 600;
line-height: 135%;
}

h3{
font-size: 24px;
line-height: 135%;
}


h4{
font-size: 20px;
line-height: 135%;
}

h5{
font-size: 14px;
line-height: 135%; 
}

p{
font-size: 16px;
line-height: 135%;  
}

li{
color: #37393c;
font-size: 16px;
font-weight: 500;
}

::-webkit-scrollbar{
height: 4px;
width: 9px;
}

::-webkit-scrollbar-track{
background: #f0f0f0;
border-radius: 0px;
}
::-webkit-scrollbar-track piece{
background: #e3e3e3;
}

::-webkit-scrollbar-thumb{
background: #37393C;
border-radius: 0px;
}

   .header_box {
      margin-top: 30px;
      display: flex;
      flex-direction: column; 
      align-items: center; 
   }

   .header_box ul.menu {
      list-style: none; 
      padding: 0;
      margin: 0;
      display: flex; 
      justify-content: center;
   }

   .header_box ul.menu li {
      padding: 10px 40px; 
      position: relative;
      
   }

   .header_box ul.menu li:not(:last-child)::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1px; 
      height: 60%; 
      background-color: #ccc; 
      margin-left: 20px;
   }

   .header_box ul.menu li span {
      cursor: pointer; 
      transition: text-shadow 0.3s ease; 
   }

   .header_box ul.menu li span:hover {
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
   }

   .header_box ul.menu li:last-child::after {
      display: none;
   }
 
   .burger_menu {
      display: none; 
      flex-direction: column;
      cursor: pointer;
      z-index: 20; 
   }

   .burger_line {
      width: 25px;
      height: 3px;
      background-color: #333;
      margin: 4px 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
   }

.burger_menu.active .burger_line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}
   .burger_menu.active .burger_line:nth-child(2) {
      opacity: 0;
   }
   .burger_menu.active .burger_line:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
   }

.one_block{
margin-top: 40px;
}

.one_flex {
    display: flex;
    justify-content: space-between;
}

.one_box{
width: 100%;
}

.logo_box {
    padding: 25px 0 30px 0;
    text-align: center;
}

.logo_box img {
width: 350px; 
height: auto; 
}

.two_box img {
width: 450px;
height: auto;
border-radius: 3%;
object-fit: cover;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.one_text_box {
width: 100%;
max-width: 360px;
margin: 0 auto;
text-align: center;
margin-bottom: 30px;
}

button {
width: 240px;
height: 50px;
padding: 10px 20px;
font-size: 16px;
color: #fff;
background-color: #37393c;
border: none;
border-radius: 3px;
cursor: pointer;
margin-top: 35px;
}

button:hover {
background-color: #fff; 
color: #37393c;
border: 2px solid #37393c;
border-radius: 3px;
}

.img_link_box {
display: flex; 
gap: 20px; 
padding: 20px; 
max-width: 1200px; 
margin: 0 auto; 
}

.img_link_item {
flex: 1; 
height: 215px; 
background-size: cover; 
background-position: center; 
border-radius: 10px; 
position: relative; 
overflow: hidden; 
}

.img_link_item span {
position: absolute;
bottom: 20px;
left: 20px;
font-size: 16px;
color: #fff;
background-color: #37393c;
padding: 5px 5px;
border-radius: 3px;
line-height: 155%;
}

.img_link_item:hover {
transform: scale(1.02); 
transition: transform 0.3s ease; 
}

.img_link_item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3); 
opacity: 0;
transition: opacity 0.3s ease;
}

.img_link_item:hover::before {
opacity: 1; 
}

.manicure {
background-image: url('../img/manicure.jpg');
}

.brows {
background-image: url('../img/brows.jpg');
}

.why_choose_us {
display: flex;
padding: 40px 0 40px 0;
text-align: center;
flex-direction: column;
}

.why_choose_us h2 {
font-size: 32px; 
color: #37393c; 
margin-bottom: 40px; 
}

.reasons_container {
display: flex; 
justify-content: space-between; 
gap: 20px; 
max-width: 1200px; 
margin: 0 auto; 
}

.reason_block {
flex: 1; 
background-color: #f0f0f0; 
padding: 20px; 
border-radius: 10px; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
text-align: center; 
}

.reason_block h3 {
font-size: 20px;
color: #37393c;
margin-bottom: 10px;
font-weight: 500;
}


.reason_block p {
font-size: 16px; 
color: #37393c; 
line-height: 1.5;
}

   /* Стили для основного блока */
   .services_block {
      padding: 20px 20px; /* Отступы внутри блока */
      text-align: center; /* Выравнивание текста по центру */
   }

   /* Заголовок блока */
   .services_block h2 {
      font-size: 32px; /* Размер заголовка */
      color: #333; /* Цвет текста */
      margin-bottom: 40px; /* Отступ снизу */
   }

   /* Контейнер для картинок */
   .services_container {
      display: flex; /* Включаем flexbox */
      gap: 10px; /* Расстояние между картинками */
      max-width: 1200px; /* Максимальная ширина контейнера */
      margin: 0 auto; /* Центрирование контейнера */
   }

   /* Общие стили для картинок */
   .service_item {
      background-size: cover; /* Фоновая картинка покрывает весь блок */
      background-position: center; /* Центрирование фоновой картинки */
      border-radius: 10px; /* Закругление углов */
      position: relative; /* Для позиционирования текста */
      overflow: hidden; /* Скрываем выходящие за пределы элементы */
      height: 275px; /* Высота картинок */
      display: flex;
      align-items: flex-end; /* Текст внизу */
      justify-content: flex-start; /* Текст слева */
      transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавные переходы */
   }

   /* Затемнение фона при наведении */
   .service_item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.3); /* Полупрозрачный фон */
      opacity: 0; /* По умолчанию прозрачный */
      transition: opacity 0.3s ease; /* Плавное появление */
   }

   /* Увеличение и затемнение при наведении */
   .service_item:hover {
      transform: scale(1.02); /* Увеличение на 5% */
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Тень для эффекта глубины */
   }

   .service_item:hover::before {
      opacity: 1; /* Затемнение фона */
   }

   /* Стили для текста внутри картинок */
   .service_item span {
      font-size: 16px; /* Размер текста */
      color: #fff; /* Цвет текста */
      background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
      padding: 10px 20px; /* Отступы внутри текста */
      border-radius: 5px; /* Закругление углов */
      margin: 20px; /* Отступы от краев */
      position: relative; /* Чтобы текст был поверх затемнения */
      z-index: 1; /* Текст поверх псевдоэлемента */
   }

   /* Стили для маленьких картинок (25% ширины) */
   .service_item_small {
      flex: 1; /* 25% ширины */
   }

   /* Стили для большой картинки (50% ширины) */
   .service_item_large {
      flex: 2; /* 50% ширины */
   }




 /* Стили для попапа */
   .popup {
      display: none; /* По умолчанию скрыт */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
      justify-content: center;
      align-items: center;
      z-index: 1000; /* Поверх всех элементов */
   }

   /* Стили для контента попапа */
.popup_content {
    display: flex;
    background-color: white;
    padding: 25px 10px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;
    flex-direction: column;
    align-items: center;
}

   /* Заголовок попапа */
   .popup_content h2 {
      font-size: 24px;
      color: #333;
      margin-bottom: 20px;
   }

   /* Стили для блоков ссылок */
   .popup_links {
      display: flex;
      flex-direction: column;
      gap: 10px; /* Расстояние между блоками */
   }

   /* Стили для каждой ссылки */
   .popup_link {
      display: block;
      padding: 15px;
      background-color: #f0f0f0; /* Фон блока */
      border-radius: 5px;
      text-decoration: none;
      color: #333;
      font-size: 18px;
      transition: background-color 0.3s ease;
   }

   /* Эффект при наведении на ссылку */
   .popup_link:hover {
      background-color: #007BFF; /* Цвет фона при наведении */
      color: white;
   }

   /* Кнопка закрытия */
.close_btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #37393c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

   /* Эффект при наведении на кнопку закрытия */
   .close_btn:hover {
      background-color: #37393c;
      color: white;
   }

   /* Анимация появления попапа */
   @keyframes fadeIn {
      from {
         opacity: 0;
      }
      to {
         opacity: 1;
      }
   }

   .popup.active {
      display: flex;
      animation: fadeIn 0.3s ease;
   }


.btn {
    display: flex;
    width: 240px;
    height: 30px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #37393c;
    border: 2px solid #37393c;
    border-radius: 3px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}


.btn:hover {
    background-color: #fff;
    color: #37393c;
    border: 2px solid #37393c;
    border-radius: 3px;
}








@media (max-width: 1024px){

.container{
  width: 100%;
  padding: 0px 20px;
}

.two_box{
    display: none;
}



}





@media (max-width: 990px){

.burger_menu {
display: flex; 
}

.header_box ul.menu {
display: none;
flex-direction: column;
width: 100%;
background-color: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: relative; 
top: 0;
left: 0;
z-index: 10;
margin-top: 10px; 
}

.header_box ul.menu li {
padding: 15px 20px;
text-align: center;
}

.header_box ul.menu li::after {
display: none;
}

.header_box ul.menu.active {
display: flex; 
}

} 




@media (max-width: 768px) {

.why_choose_us {
width: 100%;
}

.reasons_container {
display: flex;
flex-direction: column;
}

.services_container {
flex-direction: column; /* Вертикальное расположение картинок */
}

.service_item {
width: 100%; /* Картинки занимают всю ширину */
flex: none; /* Отключаем flex */
height: 200px; /* Уменьшаем высоту */
}



}


@media (max-width: 550px) {

.container{
  width: 100%;
  padding: 0px 0px;
}

.logo_box img {
    width: 300px;
}

.reasons_container {
    display: flex;
    flex-direction: column;
}

.img_link_box {
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

.img_link_item {
    flex: none;
    height: 300px;
    width: 300px;
}

.reason_block {
    flex: none;
    width: 300px;
    padding: 5px;
}

.why_choose_us h2 {
    font-size: 26px;
    color: #37393c;
    margin-bottom: 40px;
}

}


















