  :root {
  --main-color: #0C0C0C;
  --secondary-color: #B9955F;
}
  
* {
  font-family: inherit;
}

h1, h2, h3 {
  font-family: 'CaesarDressingCyrillic' !important;
}

  body {
    font-family: 'JetBrains Mono', monospace !important;
      background-color: var(--main-color);
        color: #fff;
          margin: 0;
  }

  .code-font {
    font-family: 'JetBrains Mono', monospace !important;
  }

  .highlight-font {
    font-family: 'Lemon', cursive;
  }

#allrecords a {
    color: #fff;
    text-decoration: none;
}

#allrecords a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Общий контейнер */
#rec833650329 #barbershop-header {
  position: relative;
  display: block;
}

.header-container {
        position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
  display: flex;
  justify-content: space-around;
    max-width: 1440px;
    margin: 0 auto;
}

/* Декоры */
.decor {
  height: 128px;
  position: absolute;
}

.decor-left {
  left: 45px;
  z-index: 1;
}

.decor-right {
  right: 45px;
  z-index: 1;
}

/* Контейнер филиала */
.branch-container {
  text-align: center;
  position: relative;
  flex: 1;
  height: 300px;
  opacity: 1;
  transition: opacity 0.3s;
}

/* Картинка филиала */
.branch-image-container {
  display: flex;
  position: relative;
  height: 100%;
  overflow: visible;
}

.branch-image-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  width: calc(100% - 50px);
  height: 72%;
  margin: 0 auto;
 background: linear-gradient(to bottom, #00000070 0%, rgba(0, 0, 0, 0) 92%);
  z-index: -1;
  pointer-events: none;
}

.branch-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-80px);
  transition: transform 0.3s ease-in-out;
}

.branch-image-container:hover .branch-image {
  transform: translateY(0);
}

/* Информация о филиале */
.branch-info-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.phone {
  cursor: pointer;
  font-size: 20px;
  margin-bottom: 5px;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.address a {
  font-size: 20px;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.phone:hover, 
.address a:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.branch-container.inactive {
  opacity: 0.5;
}

/* Меню */

.menu-item a {
      transition: color 0.3s, transform 0.3s;
}

.menu-button {
      animation: scaleRotate 3.5s ease-in-out infinite;
}

@keyframes scaleRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(3deg);
  }
  50% {
    transform: scale(1) rotate(0deg);
  }
75% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
      transform: scale(1) rotate(0deg);
  }
}

.menu-item a:hover, {
  color: var(--secondary-color) !important;
}

/* Соцсети */

.social-link-image {
    animation: moveAround 2.5s ease-in-out infinite;
}

.social-link {
    animation: moveUpDown 2.5s ease-in-out infinite;
}

.social-hand {
    animation: moveCircle 4s ease-in-out infinite;
}

/* Сертификат */

.certificate {
    animation: moveAround 2.5s ease-in-out infinite;
}

@keyframes moveAround {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(5px) translateY(-1px) rotate(2deg);
  }
  50% {
    transform: translateX(-3px) translateY(6px) rotate(-4deg);
  }
75% {
        transform: translateX(5px) translateY(-1px) rotate(2deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(6px);
  }
75% {
        transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes moveCircle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1.5deg);
  }
  50% {
    transform: rotate(-1deg);
  }
75% {
        transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* --- Адаптивность --- */

/* Брекпоинт для 1440px */
@media (max-width: 1440px) {
  .header-container {
    padding: 0 75px;
    gap: 35px;
  }

  .branch-image {
    height: auto;
  }
  
  .decor-right {
    right: 0;
  }

  .decor-left {
    left: 0;
  }
}

/* Брекпоинт для 1280px */
@media (max-width: 1280px) {
  .header-container {
    gap: 50px;
  }

  .branch-container {
    height: 360px;
  }
  
  .decor {
    display: none;
  }
}


/* Брекпоинт для 1024px */
@media (max-width: 1200px) {
  .header-container {
    display:none;
  }

  .branch-container {
  display:none;
}
}

/* Брекпоинт для 1024px */
/*@media (max-width: 1024px) {*/

/*}*/

/* Брекпоинт для 768px */
/*@media (max-width: 768px) {*/
/*}*/


/* Брекпоинт для 375px */
/*@media (max-width: 375px) {*/

/*}*/
