:root {
  /* Fonts */
  --primary-font: "Open Sans", sans-serif;
  --secondary-font: "Raleway", sans-serif;
  /* Color */
  --main-txt-cl: #555555;
  --main-txt-grey: hsl(227, 20%, 68%);
  --main-bg-cl: #111319;
  --secondary-txt-cl: #303030;
  --light-txt-cl: #ffffff;
  --accent-txt-cl: #ff6c00;
  --accent-bg-cl: #ff6c00;
  --uppertitle-grey-cl: rgba(157, 164, 189, 0.6);
  --gray-cl-60: #9da4bd99;
  /* Other */
  --indent: 30px;
  --items: 3;
  /* Animation */
  --anim-fast: 300ms ease;
  --anim-slow: 600ms ease;
}
/* Base styles */
body {
  font-family: var(--primary-font);
  font-size: 16px;
  line-height: 1.67;
  letter-spacing: 0.02em;
  color: var(--main-txt-cl);
}
/* reset start */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0px;
}
img {
  display: block;
}
button {
  cursor: pointer;
}
.list {
  list-style: none;
  padding: 0px;
  margin: 0px;
}
.link {
  color: inherit;
  text-decoration: none;
}
.visually-hidden {
  position: Absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.section {
  margin: 120px 0;
  padding: 12px 0;
}

.container {
  width: 1200px;
  padding: 0 15px;
  margin: 0 auto;

  outline: 2px solid red;
  outline-offset: -2px;
}

.uppertitle {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.36;
  text-transform: uppercase;
  color: var(--secondary-txt-cl);
}
.uppertitle::before {
  display: block;
  content: " ";
  width: 60px;
  height: 1px;
  background-color: var(--secondary-txt-cl);
}
.uppertitle-light {
  color: var(--grey-cl);
}
.uppertitle-light::before {
  background-color: var(--gray-cl-60);
}
.title {
  margin-bottom: 20px;
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 42px;
  line-height: 49px;
  letter-spacing: 0.05em;
  color: var(--main-txt-cl);
}
.title-light {
  margin-bottom: 44px;
  color: var(--light-txt-cl);
}
.main-text {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.67;
  letter-spacing: 0.02em;
  color: var(--main-txt-cl);
}
.main-text-light {
  color: var(--main-txt-grey);
}
.btn {
  min-width: 160px;
  min-height: 40px;
  padding: 11px 19px;

  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--light-txt-cl);

  background-color: transparent;
  cursor: pointer;
  border: 1px solid #ff6c00;
  border-radius: 25px;

  transition: 300ms ease;
  transition-property: color, background-color;
  transition-duration: 300ms;
}
.btn:hover,
.btn:focus {
  color: var(--light-txt-cl);
  background-color: var(--accent-bg-cl);
}
/* Card set */
.card-set {
  display: flex;
  flex-wrap: wrap;
  gap: var(--indent);
}
.card-set-item {
  flex-basis: calc(100%-var(--indent) * (var(--items)-1) / var(--items));
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  padding-top: 22px;
  padding-bottom: 22px;

  transition: background-color 300ms ease, backdrop-filter 300ms ease;

  z-index: 10;
}
.header.no-transparency {
  background-color: rgba(17, 19, 25, 0.4);
  backdrop-filter: blur(3px);
}
.header-container {
  display: flex;
  align-items: center;
}
.header-logo {
  margin-right: 124px;
}
.header-logo-img {
  fill: var(--secondary-txt-cl);
  transition: fill 300ms ease;
}
.header.no-transparency .header-logo-img {
  fill: var(--light-txt-cl);
}
.header-nav {
  margin-right: auto;
}
.header-nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-nav-item {
}
.header-nav-link,
.header-contact {
  position: relative;

  display: block;
  padding: 30px 0;

  font-weight: 600;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.1em;

  color: var(--light-txt-cl);

  transition: color var(--anim-fast);
}
.header-contact {
  margin-right: 40px;
}
.header-nav-link:hover,
.header-nav-link:focus,
.header-contact:hover,
.header-contact:focus {
  color: var(--accent-txt-cl);
}

.header-nav-link::after {
  content: "";

  position: absolute;
  bottom: 15px;
  left: 0;

  display: block;
  width: 100%;
  height: 4px;

  border-radius: 4px;

  transform: scaleX(0);
  transition: transform var(--anim-slow);
}
.header-nav-link.active::after {
  background-color: #ff6c00;
  transform: scaleX(100%);
}
.header-nav-link:hover::after {
  background-color: #ff6c00;
  transform: scaleX(100%);
}
.header-btn {
  animation: bounce-top 0.9s both;
}
@keyframes bounce-top {
  0% {
    -webkit-transform: translateY(-45px);
    transform: translateY(-45px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    -webkit-transform: translateY(-24px);
    transform: translateY(-24px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  65% {
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  82% {
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  93% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
  }
}

/* Hero */
.hero {
}
.hero-container {
  display: flex;
}
.hero-leftside {
  display: flex;
  align-items: flex-end;
  width: 100px;
}
.hero-rightside {
  flex-grow: 1;
  padding-top: 272px;
  padding-bottom: 208px;
  padding-left: 100px;
  background-color: #111319;
  background-image: linear-gradient(
      rgba(25, 28, 38, 0.2),
      rgba(25, 28, 38, 0.2)
    ),
    url(../images/hero/slider-img-3.jpg);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;

  perspective: 500px;
}
.hero-uppertitle {
  animation: move-vertical 800ms ease-in-out 500ms both;
}
.hero-title {
  font-family: var(--secondary-font);
  font-weight: 700;
  width: 444px;
  font-size: 72px;
  line-height: 1.18;
  letter-spacing: -0.05em;
  color: var(--light-txt-cl);
  margin-bottom: 20px;
  text-align: center;

  animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) 2200ms
    both;
}
.hero-desc {
  width: 360px;
  animation: move-vertical 800ms ease-in-out 1300ms both;
}

@keyframes move-vertical {
  0% {
    opacity: o;
    transform: translateY(calc(100px * var(--direction)));
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.media {
  display: flex;
  align-items: center;
  gap: 40px;
}
.media::before {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--secondary-txt-cl);
}
.media-links {
  display: block;

  padding: 15px 0;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.36;
  letter-spacing: 0.2em;
  color: var(--secondary-txt-cl);

  position: relative;
  transition: 300ms ease;
}
.media-links:hover,
.media-links:focus {
  color: var(--accent-txt-cl);
}
.hero-media {
  transform: rotate(270deg) translateX(40px) translateY(16px);
  transform-origin: top left;
}
.hero-controls {
  display: none;
}
/* About */
.about {
}
.about-container {
  display: flex;
  gap: 30px;
}
.about-list {
  display: flex;
  gap: 30px;
}
.about-item {
}
.about-img {
}
.about-right-side {
  width: 470px;
}
.about-subtitle {
  margin-bottom: 20px;
}
.about-desc {
  font-size: 14px;
  line-height: 1.86;
  margin-bottom: 42px;
}
.btn-white {
  color: var(--main-txt-cl);
}
/* Services and Prices */
.price {
  max-width: 1600px;
  margin: 0 auto;
  background-color: var(--main-bg-cl);
  background-image: url(../images/price/bg-img1.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.price-list {
  margin-bottom: 44px;
  display: flex;
  justify-content: space-between;
}
.price-item:first-child {
  background: linear-gradient(180deg, #171a24 0%, rgba(23, 26, 36, 0.2) 100%);
}
.price-item:last-child {
  background: linear-gradient(180deg, #090b13 0%, rgba(9, 11, 19, 0.2) 100%);
}
.price-inner-list {
  width: 570px;
  padding: 30px 20px;
  outline: 2px solid red;
  outline-offset: -2px;
}
.price-inner-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-inner-item::before {
  content: " ";
  height: 1px;
  background-color: rgba(157, 164, 189, 0.2);
  flex-grow: 1;
}
.price-inner-item:not(:last-child) {
  margin-bottom: 20px;
}
.price-inner-service {
  order: -1;
}

.price-btn {
  display: block;
  margin: 0 auto;
}
/* Benefits Section */
.benefits {
}
.benefits-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.benefits-item {
  padding: 20px 24px;
  background: #f7f7f7;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
  width: 170px;
  height: 133px;
}
.benefits-value {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.36;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--secondary-txt-cl);
}
.benefits-sup {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.38;
  text-align: center;
  color: var(--accent-txt-cl);
}
.benefits-text {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.37;
  text-align: center;
  color: var(--secondary-txt-cl);
}
/* Barbers section */
.barbers-section {
  background: #f7f7f7;
}
.team-list {
}
.team-item {
}
.team-wrapper {
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 10px;
}
.barbers-name {
  margin-bottom: 3px;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.67;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--secondary-txt-cl);
}
.barbers-extreme {
  margin-bottom: 30px;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.36;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--accent-txt-cl);
}
.team-image {
  position: relative;
  overflow: hidden;

  transition: 300ms ease;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  transform: translateY(100%);
  transition: transform var(--anim-fast);

  background-color: rgba(23, 26, 36, 0.3);
  backdrop-filter: blur(2px);
  padding: 20px;
}
.overlay-text {
  color: white;
}
.team-item:hover .overlay {
  transform: translateX(0);
}

/* Media icon */
.media-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.media-item {
  /* list-style: none; */
}
.media-link {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 50%;
  color: var(--main-bg-cl);

  transition: 400ms ease;
}
.media-link:hover {
  color: var(--accent-txt-cl);
}
.media-icon {
  fill: currentColor;
}

/* Gallery section */

/* Booking section */

.page-wrapper {
  background-color: var(--main-bg-cl);
  display: flex;
  justify-content: center;
  gap: 30px;
  background-image: url(../images/contacts/bg-img2.png);
  background-repeat: no-repeat;
  background-position: top left calc(50% + 408px);
  background-size: contain;
}
.booking-section {
  background-color: var(--main-bg-cl);
  flex-basis: 570px;
}
.booking-form-wrapper {
  margin-bottom: 44px;
  display: flex;
  gap: 30px;
}
.booking-form-field {
  display: block;
  position: relative;
  flex-basis: 270px;
}
.booking-form-input,
.booking-form-message {
  padding-right: 24px;
  padding-bottom: 4px;
  width: 100%;
  height: 24px;
  font-size: 14px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(157, 164, 189, 0.4);
  outline: transparent;
  color: #9da4bd;
  transition: border-color var(--anim-fast);
}
.booking-form-input:focus,
.booking-form-input:not(:placeholder-shown),
.booking-form-message:focus,
.booking-form-message:not(:placeholder-shown) {
  border-bottom: 1px solid var(--light-txt-cl);
}

.booking-form-tag {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: rgba(157, 164, 189, 0.4);

  transform-origin: left center;
  transition: transform var(--anim-fast), color var(--anim-fast);
}
.booking-form-input:focus + .booking-form-tag,
.booking-form-input:not(:placeholder-shown) + .booking-form-tag,
.booking-form-message:focus + .booking-form-tag,
.booking-form-message:not(:placeholder-shown) + .booking-form-tag {
  transform: translateY(-100%) scale(0.8);
  color: var(--light-txt-cl);
}

.booking-form-icon {
  opacity: 0;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) scale(0);
  fill: currentColor;
  transition: opacity var(--anim-fast), fill var(--anim-fast),
    transform var(--anim-fast);
}
.booking-form-input:not(:placeholder-shown):focus:required:invalid
  ~ .booking-form-icon {
  opacity: 1;
  fill: red;
  transform: translateY(-50%) scale(1);
}
.booking-form-input:not(:placeholder-shown):focus:required:valid
  ~ .booking-form-icon {
  opacity: 1;
  fill: lightgreen;
  transform: translateY(-50%) scale(1);
}
.booking-form-message {
  width: 100%;
  height: 76px;
  padding: 6px 0;
  resize: none;
}
.booking-form-message::placeholder {
  opacity: 0;
}
.booking-form-message:focus::placeholder {
  opacity: 1;
  transition: opacity var(--anim-fast);
  transition-delay: 300ms;
}
.booking-form-btn {
  margin-top: 44px;
}
/* Contacts */
.contacts {
  padding-left: 100px;
  flex-basis: 570px;
}
.contacts-details {
  margin-bottom: 72px;
}
.contacts-adress {
  display: block;
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.67;
  letter-spacing: 0.02em;
  color: var(--main-txt-grey);
}
.contacts-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--primary-font);
  font-weight: 400px;
  font-size: 18px;
  line-height: 1.67;
  align-items: center;
  letter-spacing: 0.02em;
  color: #9da4bd;
}
.contacts-link:not(:last-child),
.contacts-adress:not(:last-child) {
  margin-bottom: 20px;
}
/* Footer */
.footer-copyright {
  font-family: var(--primary-font);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.36;
  letter-spacing: 0.2em;
  color: #9da4bd;
}
.footer-btn {
  font-family: var(--primary-font);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.36;
  letter-spacing: 0.2em;
  color: var(--secondary-txt-cl);

  transition: 400ms ease;
}
.footer-btn:hover,
.footer-btn:focus {
  color: var(--accent-txt-cl);
}
/* Modal */
.backdrop {
  display: flex;
  align-items: center;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navyblue-modal, rgba(46, 47, 66, 0.4));
  backdrop-filter: blur(2px);

  opacity: 1;
  visibility: visible;
  pointer-events: initial;

  transition: opacity var(--anim-fast), visibility var(--anim-fast);
}
.backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal {
  position: absolute;
  top: calc(50%);
  left: calc(50%);
  transform: translate(-50%, -50%);

  width: 450px;
  min-height: 500px;
  border-radius: 10px;
  background: var(--light-txt-cl);

  transition: opacity 250ms ease-in, transform 250ms ease-in;
  transition-delay: 300ms;
}
.backdrop.is-hidden .modal {
  opacity: 0;
  transform: translate(-50%, -70%);
  transition-delay: 0;
}
.modal-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 36px;
  height: 36px;
  padding: 0;

  border-radius: 50%;
  border: none;
  background-color: var(--accent-bg-cl);

  fill: var(--color-cornflower, #e7e9fc);
  stroke-width: 1px;
  stroke: rgba(0, 0, 0, 0.1);
}
.modal-close-icon {
}
