* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  margin: 0 !important;
  background: #fff;
  font-family: 'Roboto', Arial, sans-serif;
}
a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease all;
}

main {
  overflow: hidden;
}

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

/* _______________HEADER_______________ */

/* Основний стиль для хедера */
.header {
  position: absolute; /* Фіксує хедер поверх наступного блоку */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* Прозорий фон */
  z-index: 999;
  padding: 0 20px;
}

.mobile-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.mobile-burger span {
  display: block;
  height: 2.6px;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between; /* Розподіл блоків рівномірно */
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  height: 130px;
}

/* Стиль для списку посилань */
.header-nav {
  display: flex;
  align-items: center; /* Вирівнювання по вертикалі */
}

.header-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu li a {
  color: white; /* Білий текст */
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.header-menu li a:hover {
  color: #f0f0f0; /* Легкий ефект при наведенні */
}

/* Логотип */
.header-logo {
  position: absolute; /* Абсолютне позиціонування */
  left: 50%; /* Центрування горизонтально */
  transform: translateX(-50%); /* Зміщення на половину ширини для точного центрування */
}

.header-logo img {
  width: 120px; /* Розмір логотипа */
}

/* Кнопка праворуч */
.header-button {
  display: flex;
  align-items: center;
}

.header-booking-btn {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid white; /* Білий бордер */
  color: white; /* Білий текст */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.header-booking-btn:hover {
  background: white;
  color: black; /* Інверсія кольорів при наведенні */
}

.header-mobile {
  position: absolute;
  opacity: 0;
  left: 0;
  right: 0;
  top: -100%;
  transition: 0.4s ease all;
  background-color: rgb(20, 20, 20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}


/* _______________end_______________ */

/* _______________First Screen_______________ */
.first-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('https://gwbarbershop.com/wp-content/uploads/2024/11/header.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.first-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 60px;
}

.first-screen-mob-logo {
  display: none;
}

.first-screen-content {
  text-align: center;
  color: white;
}

.first-screen-content h1 {
  font-size: 68px;
  font-weight: bold;
  margin-bottom: 28px;
}

.first-screen-content p {
  font-size: 1.5rem;
  margin: 5px 0;
}

/* Контейнер для стрілок */
.scroll-home-down {
  display: block;
  position: absolute;
  bottom: 95px;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-home-down span {
  display: block;
  color: #fff;
  font-size: 20px;
  position: absolute; 
}
.scroll-home-down .scroll-home-down_one {
  animation: animeone 3s infinite linear;
  opacity: 0;
  transform: scale(.4, .4);
}
.scroll-home-down .scroll-home-down_two {
  animation: animetwo 3s infinite linear;
  opacity: 1;
}
.scroll-home-down .scroll-home-down_three {
  animation: animethree 3s infinite linear;
  opacity: 1;
}
.scroll-home-down .scroll-home-down_four {
  animation: animefour 3s infinite linear;
  opacity: 0;
  transform: scale(.4, .4);
}
@keyframes animeone {
  0%, 10% {
    opacity: 0;
    transform: translateY(0px) scale(.4, .4);
  }
  33.3%, 43.3% {
    opacity: 1;
    transform: translateY(20px);
  }
  66.6%, 76.6% {
    opacity: 1;
    transform: translateY(30px);
  }
  100% {
    opacity: 0;
    transform: translateY(50px) scale(.4, .4);
  }
}
@keyframes animetwo {
  0%, 10% {
    opacity: 1;
    transform: translateY(20px);
  }
  33.3%, 43.3% {
    opacity: 1;
    transform: translateY(30px);
  }
  66.6%, 76.6% {
    opacity: 0;
    transform: translateY(50px) scale(.4, .4);
  }
  100% {
    opacity: 0;
    transform: translateY(0px) scale(.4, .4);
  }
}
@keyframes animethree {
  0%, 10% {
    opacity: 1;
    transform: translateY(30px);
  }
  33.3%, 43.3% {
    opacity: 0;
    transform: translateY(50px) scale(.4, .4);
  }
  66.6%, 76.6% {
    opacity: 0;
    transform: translateY(0px) scale(.4, .4);
  }
  100% {
    opacity: 1;
    transform: translateY(20px);
  }
}
@keyframes animefour {
  0%, 10% {
    opacity: 0;
    transform: translateY(50px) scale(.4, .4);
  }
  33.3%, 43.3% {
    opacity: 0;
    transform: translateY(0px) scale(.4, .4);
  }
  66.6%, 76.6% {
    opacity: 1;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(30px);
  }
}
/* _______________end_______________ */

/* _______________Short info_______________ */
.short-info {
  background: #fcfbf7;
}
.short-info {
  padding-top: 135px;
  padding-bottom: 150px;
}

.short-info__list {
  display: flex;
}

.short-info__item {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 30px;
  flex: 1;
  border-right: 1px solid #d1d1d1;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: #000000;
}

.short-info__item a {
  color: #000000;
}

.short-info__item a {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: #000000;
  text-decoration: none;
}

.short-info__item:last-child {
  border-right: none;
}

.short-info__icon img{
  width: 60px;
  height: 60px;
}

/* _______________end_______________ */


/* _______________SERVISES_______________ */
.servises {
  padding: 30px 0 135px;
}

.servises-container {
  max-width: 800px;
  padding: 0 15px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servises-title {
  margin-bottom: 40px;
}

.servises-title h2 {
  font-size: 38px;
  text-align: center;
}

.servises-subtitle {
  max-width: 560px;
  margin-bottom: 90px;
  text-align: center;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
}

.servises-prices {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.servises-prices_block {
  padding-bottom: 28px;
  border-bottom: 1px solid #00000026;
}

.servises-prices_block__info {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.servises-prices_block__item {
  display: flex;
  width: 100%;
}

.servises-prices_block__item-name {
  width: 100%;
  padding-right: 40px;
  font-weight: 600;
  font-size: 26px;
}

.servises-prices_block__item-price {
  font-size: 20px;
  font-weight: 600;
}

.button-template {
  background-color: #000000;
  margin: 0 auto;
  max-width: 210px;
  text-align: center;
}

.button-template a {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
}

.button-template.button-template1 {
  border-radius: 20px;
  overflow: hidden;
}

section.servises .button-template {
  margin-top: 100px;
}
/* _______________end_______________ */


/* _______________GALLERY_______________ */

.gallery-item1 {
  display: flex;
  height: 100vh; /* Высота блока на весь экран */
  margin: 0;
  padding: 0;
  overflow: hidden;
}



.gallery-column {
  display: flex;
  flex-direction: column;
  flex: 1; /* Одинаковая ширина для колонки слева */
  gap: 0; /* Без отступов между изображениями */
}

.gallery-column a {
  flex: 1; /* Равное распределение по высоте */
  display: flex;
  overflow: hidden;
}

.gallery-column img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Изображения заполняют блок */
  object-position: center; /* Центровка изображений */
}

.gallery-big {
  flex: 2; /* Ширина в 2 раза больше правого блока */
  display: flex;
  overflow: hidden;
}

.gallery-big a {
  flex: 1; /* Растягивается на всю высоту */
  display: flex;
  overflow: hidden;
}

.gallery-big img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Изображения заполняют блок */
  object-position: center; /* Центровка изображений */
}


.gallery-item2 {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

.gallery-item2 a {
  width: 25%; /* Каждое изображение занимает 1/4 ширины */
  aspect-ratio: 1 / 1; /* Устанавливаем соотношение сторон 1:1 для квадратных блоков */
  overflow: hidden; /* Скрываем излишки изображения */
  position: relative; /* Для точного размещения изображения */
}

.gallery-item2 a img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Изображение заполняет блок без искажений */
  object-position: center; /* Центровка изображения */
  display: block;
}

/* _______________end_______________ */


/* _______________instagram_______________ */
.instagram {
  padding-top: 135px;
  padding-bottom: 150px;
  background-color: #fcfbf7;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.instagram a {
  color:rgb(222, 157, 17);
  border-bottom-color: rgb(222, 157, 17);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
}

/* _______________end_______________ */

/* _______________Слайдер_______________ */

.slider {
  margin: 0 auto;
  position: relative;
  max-width: 890px;
  padding: 90px 15px;
}

.swiper {
  width: 100%;
  height: auto;
  overflow: hidden; /* Оставляем, чтобы слайды не выходили за пределы */
  max-width: 860px;
  max-height: 550px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

/* Убираем стандартные стили текста для стрелок */
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  display: none;
}

/* Общие стили для кнопок */
.slider .swiper-button-prev,
.slider .swiper-button-next {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgb(232, 232, 232);
  border-radius: 100%;
  padding: 11px;
}

/* Кнопка "Назад" (слева) */
.slider .swiper-button-prev {
  left: -50px; /* Сдвигаем влево от контейнера */
}

/* Кнопка "Вперед" (справа) */
.slider .swiper-button-next {
  right: -50px; /* Сдвигаем вправо от контейнера */
}

/* Поворот стрелки "Назад" */
.slider .swiper-button-prev svg {
  rotate: 180deg;
  position: relative;
  left: -1px;
}

.slider .swiper-button-next svg {
  position: relative;
  right: -1px;
}

/* Пагинация */
.slider .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 50px;
}

.slider .swiper-pagination-bullet-active {
  background: #000000;
}

.swiper-pagination-bullet {
  background: #ccc;
}

.swiper-pagination-bullet-active {
  background: #000;
}


/* _______________MASTERS_______________ */

.masters-title h2 {
  margin-bottom: 40px;
  font-size: 42px;
  line-height: 1.23;
  text-align: center;
}

.masters-subtitle {
  margin-bottom: 105px;
  text-align: center;
  font-size: 24px;
  line-height: 1.5;
}

.masters .container-masters{
  max-width: 1100px;
  margin: 0 auto;
  padding: 150px 20px 75px;
}

.masters-main {
  display: flex;
  gap: 20px;
}

.masters-main_block {
  position: relative;
  max-height: 450px;
  /*height: 100%;*/
  flex: 1;
  overflow: hidden;
  transition: 0.3s ease all;
}

.masters-main_block__img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: 0.6s ease all;
}

.masters-main_block__img img {
  object-fit: cover;
  height: 100%;
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 150%;
}

.masters-main_block__text {
  opacity: 0;
  color: #fff;
  transition: 0.3s ease all;
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 3;
  padding: 40px;
}

.masters-main_block__text {
  font-size: 14px;
  line-height: 1.35;
}

.masters-main_block__text b {
  font-size: 20px;
  margin-bottom: 4px;
}

.masters-main_block:hover .masters-main_block__text {
  opacity: 1;
  transition: 0.3s ease all;
}

.masters-main_block::after {
  content: '';
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 1));
  transition: 0.6s ease all;
  opacity: 0;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: 2;
}

.masters-main_block:hover::after {
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 1));
  transition: 0.6s ease all;
  opacity: 1;
}

.masters-main_block:hover .masters-main_block__img {
  transform: scale(1.05);
  transition: 0.6s ease all;
}

/* _______________end_______________ */


/* _______________Footer_______________ */

footer {
  background-color: #141414;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__content {
  padding: 150px 20px;
}

.footer__contacts {
  font-size: 36px;
  line-height: 1.23;
}

.footer__contacts .footer__phone {
  display: block;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.23;
  margin-bottom: 40px;
}

.footer__address {
  font-weight: 600;
}

.footer__schedule {
  font-size: 18px;
  line-height: 1.55;
  margin-top: 45px;
}

.footer__email, .footer__email a {
  font-size: 18px;
  line-height: 1.55;
}

.footer-bottom {
  background: #000;
  width: 100%;
  padding: 15px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__social {
  margin-top: 60px;
}

.copyrate-text-block img {
  width: 25px;
}

.copyrate-text-block a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #bebebe;
  font-size: 14px;
}

.yButton.bottom.right {
  z-index: 10000;
  right: 30px !important;
  bottom: 30px !important;
  position: fixed !important;
  width: 100px !important;
  height: 100px !important;
  box-sizing: border-box !important;
}

.yButtonBackground {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 100% !important;
  opacity: .8 !important;
  box-sizing: border-box !important;
}

.yButtonWave {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  -webkit-transform: translate(-50%, -50%) !important;
  -moz-transform: translate(-50%, -50%) !important;
  -o-transform: translate(-50%, -50%) !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  border: 2px solid !important;
  width: 105%;
  height: 105%;
  opacity: .9 !important;
  box-sizing: border-box !important;
  -webkit-animation: wave-stroke 2s infinite cubic-bezier(.37, 0, .8, .77);
  -moz-animation: wave-stroke 2s infinite cubic-bezier(.37, 0, .8, .77);
  -o-animation: wave-stroke 2s infinite cubic-bezier(.37, 0, .8, .77);
  animation: wave-stroke 2s infinite cubic-bezier(.37, 0, .8, .77);
}

.yButtonText {
  position: absolute !important;
  top: 25px !important;
  left: 5px !important;
  right: 5px !important;
  border-radius: 50% !important;
  width: 90px !important;
  height: 50px !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 25px !important;
  font-weight: 400 !important;
  text-align: center !important;
  vertical-align: middle !important;
  letter-spacing: 1.5px !important;
  font-family: 'Play', sans-serif !important;
  box-sizing: border-box !important;
}

.yButtonIcon {
  display: none;
  box-sizing: border-box !important;
}

@media (max-width: 1250px) {
  .mobile-burger {
    display: flex;
    position: relative;
    z-index: 1000;
  }
  .header-button, .header-logo, nav.header-nav {
    display: none;
  }

  .header-container {
    justify-content: end;
  }

  .header-mobile.active {
    top: 64px;
    transition: 0.4s ease all;
    opacity: 1;
  }

  .header-container {
    height: 64px;
  }

  header.active {
    background: #111;
  }

  /* Общие стили для хедера */

  .header-mobile .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
  }

  /* Логотип */
  .header-mobile .header-logo img {
    max-width: 120px;
    margin-bottom: 20px;
  }

  .header-mobile .header-logo {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .header-mobile .header-container {
    height: auto;
  }

  /* Меню */
  .header-mobile .header-menu {
    margin-bottom: 20px;
  }

  .header-mobile .header-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-mobile .header-menu-item {
    padding: 10px 0;
  }

  .header-mobile .header-button {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    margin: 40px 0;
  }

  .header-mobile .header-menu-item a {
    text-decoration: none;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .header-mobile .header-menu-item a:hover {
    color: #cccccc;
  }

  .slider .swiper-button-next {
    right: 30px;
  }

  .slider .swiper-button-prev {
    left: 30px;
  }

  .slider .swiper-button-prev, .slider .swiper-button-next {
    top: 52%;
    transform: none;
  }

  .first-screen-mob-logo {
    display: flex;
    max-width: 125px;
  }

  .first-screen-mob-logo img {
    width: 100%;
  }
}

@media (max-width: 768.9px) {
  .masters-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .masters-main_block__img img {
    width: 100%;
  }

  .gallery-item1 {
    display: flex;
    flex-direction: column-reverse; /* Ставим изображения в колонку */
    height: 85vh;
  }
  
  .gallery-big {
    flex: 2; /* Большое изображение занимает верхнюю часть */
    display: flex;
    overflow: hidden;
  }
  
  .gallery-column {
    flex: 1; /* Колонка занимает нижнюю часть */
    display: flex;
    flex-direction: row;
    height: 30%;
  }
  
  .gallery-column a {
    flex: 1; /* Каждое изображение занимает половину ширины */
    display: flex;
    overflow: hidden;
  }
  
  .gallery-big img,
  .gallery-column img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполнение блока изображением */
    object-position: center; /* Центровка изображения */
  }

  .gallery-item2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item2 a {
    width: 100%;
  }

  .short-info__list {
    flex-direction: column;
  }
  
  .short-info__item {
    border-right: none;
    border-bottom: 1px solid #d1d1d1;
    padding: 45px 0 45px 0;
    max-width: 576px;
    margin: 0 auto;
    width: 100%;
  }

  .short-info__item:last-child {
    border-bottom: none;
  }

  .first-screen-content h1 {
    font-size: 30px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .masters-main {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__contacts .footer__phone {
    font-size: 28px;
  }

  .footer__address {
    font-size: 28px;
  }

  .footer__email, .footer__email a {
    font-size: 14px;
  }

  .first-screen-content p {
    font-size: 14px;
  }
}

/* speed line */
/* Кольори/швидкість — за змінними */
:root{
  --ticker-bg: #FFF3CD;   /* легкий "warning" фон */
  --ticker-fg: #7A4F00;   /* контрастний текст */
  --ticker-speed: 28s;    /* швидкість прокрутки (менше = швидше) */
}

.ticker{
  width:100%;
  overflow:hidden;
  background:var(--ticker-bg);
  color:var(--ticker-fg);
  border:1px solid rgba(0,0,0,0.05);
}

.ticker__track{
  display:flex;             /* широка підтримка, без CSS Grid */
  white-space:nowrap;
  will-change: transform;
  animation: ticker-move var(--ticker-speed) linear infinite;
}

.ticker__group{
  display:flex;
  align-items:center;
  gap:2.2rem;
  padding:0.6rem 1rem;
}

/* Типографіка */
.ticker__item{
  font-weight:700;
  font-size:clamp(14px, 1.1vw + 10px, 18px);
  letter-spacing:0.2px;
}
.ticker__sep{
  opacity:.45;
  font-weight:700;
}

/* Пауза при hover/фокусі (зручно дочитати) */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track{ animation-play-state: paused; }

/* Безшовна прокрутка: друга група — дубль першої */
@keyframes ticker-move{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* Дрібна підтримка доступності */
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation: none; }
}
