html {
  scroll-behavior: smooth;
}

:root {
  --white: #f8f5f0;
  --grey: #555555;
  --black: #121212;
  --transition-dur-and-func: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(
    --angular,
    conic-gradient(from 227deg at 49.87% 51.96%, #121212 0deg, #222 360deg)
  );
  color: var(--white, #f8f5f0);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

html,
body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

main,
footer {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

a,
button {
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  padding: 0;
}

img {
  padding: 0;
  margin: 0;
}

.hidden-element {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
}

.container {
  width: 100%;
  height: 100%;
  min-width: 320px;
  padding: 8px;
  margin-left: auto;
  margin-right: auto;
}

/* MOBILE */
@media screen and (min-width: 375px) {
  .container {
    padding: 16px;
  }
}

/* TABLET */
@media screen and (min-width: 768px) {
  .container {
    padding: 40px;
  }
}

/* DESKTOP */
@media screen and (min-width: 1440px) {
  .container {
    padding: 40px 80px;
  }
}

/* FULL */
@media screen and (min-width: 1920px) {
  .container {
    width: 1920px;
    min-width: 1920px;
    max-width: 1920px;
    padding: 80px 160px;
  }
}

main {
  width: 100vw;
  height: 100dvh;
}

main:has(section.barbers-page),
main:has(section.haircuts-page) {
  min-height: fit-content;
}

@media screen and (min-width: 768px) {
  main {
    width: 100vw;
    height: 100vh;
    min-height: unset;
  }
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}
.header .header-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
}
.header .header-list li {
  display: flex;
  flex-basis: 33%;
}
.header .header-list li a,
.header .header-list li button {
  pointer-events: initial;
}
.header .header-list li:first-child {
  justify-content: flex-start;
}
.header .header-list li:nth-child(2) {
  justify-content: center;
}
.header .header-list li.header-list__item-phone {
  display: none;
}
.header .header-list .header-list__altegio-link {
  color: var(--black, #121212);
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  width: fit-content;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: var(--white, #f8f5f0);
  border: 1px solid var(--white, #f8f5f0);
  transition: var(--transition-dur-and-func);
}
.header .header-list .header-list__altegio-link:hover,
.header .header-list .header-list__altegio-link:focus {
  color: var(--white, #f8f5f0);
  background: rgba(18, 18, 18, 0.5);
}
.header .header-list .lang-link {
  display: block;
}
.header .header-list .lang-link.active {
  display: none;
}
.header .header-list .header-list__item-lang a {
  display: inline-block;
  width: 3ch;
  overflow: hidden;
  white-space: nowrap;
}
.header .header-list .header-list__item-burger-btn {
  display: flex;
  justify-content: flex-end;
}
.header .header-list .header-list__item-burger-btn button {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.burger-menu {
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 100%;
  background: var(
    --angular,
    conic-gradient(from 227deg at 49.87% 51.96%, #121212 0deg, #222 360deg)
  );
  z-index: 998;
  transition: var(--transition-dur-and-func);
}
.burger-menu.active {
  top: 0;
  bottom: 0;
  right: 0;
  overflow: scroll;
}
.burger-menu .burger-menu__btn-close {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 999;
}
.burger-menu .burger-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.burger-menu__wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.burger-menu .burger-menu__footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.burger-menu .burger-menu__footer {
  font-size: 16px;
  font-weight: 700;
}
.burger-menu .footer-list__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.burger-menu .footer-list__social a:has(img) {
  display: flex;
}
.burger-menu .footer-list__social img {
  width: 22px;
  height: 22px;
  aspect-ratio: 1/1;
}
.burger-menu .nav-menu {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  font-size: 20px;
  counter-reset: item;
}
.burger-menu .nav-menu li {
  position: relative;
  padding-right: 36px;
  counter-increment: item;
}
.burger-menu .nav-menu li::after {
  position: absolute;
  content: counter(item, decimal-leading-zero);
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 13px;
  font-weight: 300;
}
.burger-menu .burger-menu__logo {
  width: 75px;
  height: 48px;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .burger-menu__wrapper {
    gap: 48px;
  }
  .header .header-list {
    font-size: 15px;
  }
  .header .header-list .header-list__altegio-link {
    font-size: 17px;
    padding: 12px 60px;
  }
  .burger-menu .burger-menu__btn-close {
    top: 40px;
    left: 40px;
  }
  .burger-menu .burger-menu__footer {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .burger-menu .burger-menu__footer {
    font-size: 17px;
    align-items: center;
  }
  .burger-menu .footer-list__social {
    gap: 16px;
  }
  .burger-menu .footer-list__social img {
    width: 24px;
    height: 24px;
  }
  .burger-menu .nav-menu {
    gap: 24px;
    font-size: 24px;
  }
  .burger-menu .nav-menu li::after {
    font-size: 14px;
  }
  .burger-menu .burger-menu__logo {
    width: 100px;
    height: 64px;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 1440px) {
  .header .header-list li.header-list__item-phone {
    display: flex;
    justify-content: flex-end;
  }
  .header .header-list .header-list__item-lang a {
    width: unset;
  }
  .header .header-list .header-list__item-burger-btn {
    display: none;
  }
  .burger-menu {
    display: none;
  }
}

@media screen and (min-width: 1920px) {
  .header .header-list {
    font-size: 18px;
  }
  .header .header-list .header-list__altegio-link {
    font-size: 18px;
    padding: 12px 80px;
  }
}

/* NAVIGATION */
.navigation {
  display: none;
}

@media screen and (min-width: 1440px) {
  .navigation {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 100;
    pointer-events: none;
  }
  .navigation .navigation-list {
    display: flex;
    row-gap: 8px;
    flex-direction: column;
    align-items: flex-end;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
    counter-reset: item;
  }
  .navigation .navigation-list .navigation-list__item {
    counter-increment: item;
    padding: 0 0 8px 36px;
    position: relative;
    pointer-events: initial;
  }
  .navigation .navigation-list .navigation-list__item::before {
    position: absolute;
    content: counter(item, decimal-leading-zero);
    left: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition-dur-and-func);
  }
  .navigation
    .navigation-list
    .navigation-list__item:has(.navigation-list__item-link.active):before,
  .navigation
    .navigation-list
    .navigation-list__item:has(.navigation-list__item-link:hover):before,
  .navigation
    .navigation-list
    .navigation-list__item:has(.navigation-list__item-link:focus):before {
    opacity: 1;
  }
  .navigation-list__item-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    left: 106px;
    width: 151px;
    padding: 4px 0px;
    border-bottom: 1px solid var(--white, #f8f5f0);
    transition: var(--transition-dur-and-func);
  }
  .navigation-list__item-link.active,
  .navigation-list__item-link:hover,
  .navigation-list__item-link:focus {
    left: 0px;
  }
}

@media screen and (min-width: 1920px) {
  .navigation .navigation-list {
    row-gap: 12px;
    font-size: 18px;
  }
  .navigation .navigation-list .navigation-list__item {
    padding: 0 0 9px 48px;
  }
  .navigation-list__item-link {
    left: 118px;
    width: 177px;
  }
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}
.footer .footer-list {
  display: flex;
  flex-direction: column;
  column-gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 400;
}
.footer .footer-list li {
  display: flex;
  flex-basis: 33%;
}
.footer .footer-list li a {
  pointer-events: initial;
}
.footer .footer-list li:first-child {
  display: none;
}
.footer .footer-list li:nth-child(2) {
  justify-content: center;
}
.footer .footer-list li:last-child {
  justify-content: flex-end;
}

@media screen and (min-width: 768px) {
  .footer .footer-list {
    font-size: 17px;
    column-gap: 12px;
  }
}

@media screen and (min-width: 1440px) {
  .footer .footer-list {
    flex-direction: row;
  }
  .footer .footer-list li:first-child {
    display: flex;
    justify-content: flex-start;
  }
  .footer .footer-list .footer-list__social {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .footer .footer-list .footer-list__social a:has(img) {
    display: flex;
  }
  .footer .footer-list .footer-list__social img {
    width: 22px;
    height: 22px;
  }
}

@media screen and (min-width: 1920px) {
  .footer .footer-list {
    font-size: 18px;
  }
  .footer .footer-list .footer-list__social img {
    width: 24px;
    height: 24px;
  }
}

/* HOME PAGE */
.home-page {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}
.home-page__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.home-page__logo {
  width: 180px;
  height: 114px;
  opacity: 0;
  transform: scale(0.75);
  animation: logoFadeInZoom 1s ease-out forwards;
}
@keyframes logoFadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.home-page__quote {
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  line-height: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.home-page__drag-blocks {
  width: 314px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.home-page__drag-blocks-text {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  font-size: 12px;
  font-weight: 300;
}
.home-page__drag-blocks .home-page__drag-block {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px dotted var(--white, #f8f5f0);
  border-radius: 50%;
}
@keyframes pulse {
  0% {
    transform: scale(1.1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.home-page__drag-blocks .home-page__drag-block-draggable {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--white, #f8f5f0);
  border-radius: 50%;
  background-color: rgba(256, 256, 256, 0.2);
  position: absolute;
  left: 0;
  cursor: ew-resize;
  animation: pulse 2.3s ease-in-out infinite;
}
.home-page__drag-blocks .home-page__drag-block-line {
  height: 1px;
  width: calc(100% - (36px * 2) - (8px * 2));
  border-top: 1px dotted var(--white, #f8f5f0);
}

@media screen and (min-width: 768px) {
  .home-page__logo {
    width: 240px;
    height: 152px;
  }
  .home-page__quote {
    font-size: 32px;
  }
  .home-page__drag-blocks {
    width: 368px;
    height: 50px;
  }
  .home-page__drag-blocks-text {
    right: 0;
    bottom: 50%;
    transform: translate(120%, 50%);
    font-size: 13px;
  }
  .home-page__drag-blocks .home-page__drag-block {
    width: 50px;
    height: 50px;
  }
  .home-page__drag-blocks .home-page__drag-block-draggable {
    width: 50px;
    height: 50px;
  }
  .home-page__drag-blocks .home-page__drag-block-line {
    width: calc(100% - (50px * 2) - (12px * 2));
  }
}

@media screen and (min-width: 1440px) {
  .home-page__inner {
    margin-top: 60px;
    gap: 30px;
  }
  .home-page__logo {
    width: 300px;
    height: 190px;
  }
  .home-page__quote {
    font-size: 40px;
  }
}

@media screen and (min-width: 1920px) {
  .home-page__inner {
    margin-top: 60px;
    gap: 44px;
  }
  .home-page__logo {
    width: 390px;
    height: 247px;
  }
  .home-page__quote {
    font-size: 48px;
  }
  .home-page__drag-blocks {
    width: 396px;
    height: 60px;
  }
  .home-page__drag-blocks-text {
    right: 0;
    bottom: 50%;
    transform: translate(120%, 50%);
    font-size: 14px;
  }
  .home-page__drag-blocks .home-page__drag-block {
    width: 60px;
    height: 60px;
  }
  .home-page__drag-blocks .home-page__drag-block-draggable {
    width: 60px;
    height: 60px;
  }
  .home-page__drag-blocks .home-page__drag-block-line {
    width: calc(100% - (60px * 2) - (16px * 2));
  }
}

.not-found-page {
  width: 100%;
  height: 100%;
}
.not-found-page .not-found__wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.not-found__icon {
  width: 299px;
  height: 195px;
  flex-shrink: 0;
}
.not-found__text {
  font-size: 18px;
  margin-bottom: 24px;
}
.not-found__link {
  display: flex;
  max-width: 343px;
  padding: 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: var(--white, #f8f5f0);
  color: var(--black, #121212);
}

@media screen and (min-width: 768px) {
  .not-found__icon {
    width: 398px;
    height: 262px;
  }
  .not-found__text {
    font-size: 20px;
    margin-bottom: 32x;
  }
  .not-found__link {
    max-width: 418px;
    padding: 12px 60px;
    font-size: 17px;
  }
}

@media screen and (min-width: 1920px) {
  .not-found__icon {
    width: 710px;
    height: 463px;
  }
  .not-found__text {
    font-size: 24px;
    margin-bottom: 48x;
  }
  .not-found__link {
    max-width: 436px;
    padding: 12px 60px;
    font-size: 18px;
  }
}
.not-found__icon #point {
  animation: bigPulse 1.8s ease-in-out infinite;
  transform-origin: center center;
}
.not-found__icon svg {
  width: 100%;
  height: 100%;
}
@keyframes bigPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
