:root {
  --main-text: #555555;
  --grey-text: #9da4bd;
  --grey-text-info: #9da4bd66;
  --title-color: #303030;
  --grey-trasp: #9da4bd99;
  --accent: #ff6c00;
  --main-backgroung: #e5e5e5;
  --hero-background: #191c2633;
  --dark-background: #191c26;
  --prices-background: #111319;
  --cont-background: #f7f7f7;
  --total-white: #ffffff;
  --grey-transparency: #9da4bd1f;
  --backdrop-backgroung: #171a246e;
  --modal-backdrop-background: #191c2633;
  --prices-gradient: linear-gradient(180deg, #171a24 0%, #171a2433 100%);
  --prices-gradient-2: linear-gradient(180deg, #090b13 0%, #171a2433 100%);
  --bg-gradient: linear-gradient(#191c2633, #191c2633);
  /* ------------- smooth scrolling on the anchor --------------- */
  scroll-behavior: smooth;
}

/*======== GENERAL ========*/
body {
  font-family: "Open Sans", sans-serif;
  color: var(--main-text);
}
.no-scroll {
  overflow: hidden;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
a {
  display: block;
  text-decoration: none;
}
img {
  width: 100%;
  height: auto;
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.section {
  padding-top: 84px;
  padding-bottom: 84px;
}
.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: block;
  min-width: 160px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 25px;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: calc(16 / 12);
  letter-spacing: 1.08px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms linear, background-color 300ms linear;
}
.btn:is(:hover, :focus) {
  color: var(--total-white);
  background-color: var(--accent);
}
.title {
  font-family: "Raleway", sans-serif;
  font-size: 42px;
  line-height: normal;
  letter-spacing: 2.1px;
}
.slogan {
  line-height: calc(26 / 16);
  letter-spacing: 0.32px;
}
.suptitle {
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
  letter-spacing: normal;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
}
.suptitle::before {
  content: "";
  width: 60px;
  height: 1px;
  background-color: currentColor;
}
.social-link {
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
  letter-spacing: 2.2px;
  color: var(--title-color);
  transition: color 300ms linear;
}
.social-link:is(:hover, :focus) {
  color: var(--accent);
}

/* ======= MOB-MENU =======  */
.menu-open-btn {
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 300ms linear;
}
.menu-open-btn:is(:hover, :focus) {
  background-color: var(--accent);
}
.burger-icon {
  display: block;
  width: 40px;
  height: 40px;
  fill: var(--total-white);
}

.mob-menu-backdrop {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--modal-backdrop-background);
  transition: opacity 300ms linear, visibility 300ms linear;
}
.mob-menu-backdrop.is-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.mobil-menu {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  max-width: 337px;
  width: 100%;
  height: 100%;
  padding: 48px 30px 0 40px;
  background-color: var(--total-white);
  transform: scale(1);
  transition: transform 300ms linear;
}
.mob-menu-backdrop.is-hidden .mobil-menu {
  transform: scale(0.5);
}
.menu-close-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-bottom: 30px;
  background-color: transparent;
  border-radius: 4px;
  border: none;
  transition: fill 300ms linear, background-color 300ms linear;
}
.menu-close-btn:is(:hover, :focus) {
  fill: var(--total-white);
  background-color: var(--accent);
}
.menu-close-icon {
  width: 18px;
  height: 18px;
}
.menu-nav {
  margin-bottom: 64px;
}
.menu-link {
  font-weight: 600;
  font-size: 18px;
  line-height: calc(25 / 18);
  letter-spacing: 0.1em;
  color: var(--title-color);
  transition: color 300ms linear;
}
.menu-link:is(:hover, :focus) {
  color: var(--accent);
}
.menu-nav-item:not(:last-child) {
  margin-bottom: 24px;
}
.mob-menu-phone {
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mob-menu-btn {
  min-width: 194px;
  margin-bottom: 68px;
  color: var(--title-color);
}
.modal-menu-socials {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.menu-social-item {
  display: flex;
  gap: 40px;
  align-items: center;
}
.menu-social-item::before {
  content: "";
  width: 60px;
  height: 1px;
  background-color: currentColor;
  stroke: transparent;
}
.menu-social-item:last-child::before {
  visibility: hidden;
}
.modal-menu-social {
  font-weight: 600;
  font-size: 14px;
  line-height: calc(19 / 14);
  letter-spacing: 0.2em;
  color: var(--title-color);
  transition: color 300ms linear;
}
.modal-menu-social:is(:hover, :focus) {
  color: var(--accent);
}

/*======== HEADER ========*/
.header {
  position: absolute;
  width: 100%;
  top: 40px;
  z-index: 1;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-icon {
  display: block;
  fill: var(--total-white);
}
.nav-list,
.header-nav,
.header-phone,
.header-btn {
  display: none;
}

/*======== HERO ========*/
/*======== HERO-SLIDER ========*/
.right-side {
  position: relative;
  opacity: 0.99;
  margin-left: -31px;
  margin-right: -31px;
  overflow: hidden;
}
.swiper {
  max-width: 480px;
  z-index: 0;
}
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--hero-background);
  left: 0;
  top: 0;
  z-index: 0;
}
.swiper-btn {
  display: none;
}
.swiper-block {
  display: none;
}
.hero-container {
  display: flex;
}
.left-side {
  display: none;
}
.hero-content {
  position: absolute;
  max-width: 320px;
  top: 208px;
  margin-left: 31px;
  z-index: 1;
}
.hero-suptitle {
  margin-bottom: 20px;
  color: var(--grey-trasp);
}
.hero-title {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: calc(56 / 48);
  letter-spacing: 2.4px;
  color: var(--total-white);
}
.hero-slogan {
  min-width: 320px;
  color: var(--grey-text);
}

/*======== ABOUT ========*/
.about {
  background-color: var(--total-white);
}
.about-imgs {
  display: none;
}
.about-suptitle {
  margin-bottom: 20px;
  color: var(--title-color);
  letter-spacing: normal;
}
.about-title {
  font-size: 28px;
  letter-spacing: 1.4px;
  width: 308px;
  margin-bottom: 20px;
  color: var(--title-color);
}
.about-slogan {
  margin-bottom: 20px;
}
.about-text {
  margin-bottom: 40px;
  font-size: 14px;
  line-height: calc(26 / 14);
  letter-spacing: 0.28px;
}
.about-btn {
  color: var(--title-color);
  background: none;
}

/*======== PRICES ========*/
.prices {
  background-color: var(--prices-background);
  background-image: url("../images/mobil-prices-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.prices-suptitle {
  margin-bottom: 20px;
  color: var(--grey-trasp);
}
.prices-title {
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 44px;
  color: var(--total-white);
}
.services-prices {
  padding: 30px 20px;
  margin-bottom: 44px;
  background: var(--prices-gradient);
}

.price-item {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.price-list:last-child .price-item:last-child {
  margin-bottom: 0;
}
.price-item::before {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: var(--grey-transparency);
}
.price-text {
  font-size: 14px;
  line-height: calc(20 / 14);
  letter-spacing: 0.28px;
  order: -1;
  color: var(--grey-text);
}
.price-price {
  font-size: 14px;
  line-height: calc(20 / 14);
  letter-spacing: 0.28px;
  color: var(--grey-text);
}
.prices-btn {
  margin: 0 auto;
  color: var(--total-white);
  background: none;
}

/*======== WHY ========*/
.why {
  background-color: var(--total-white);
}
.why-suptitle {
  margin-bottom: 20px;
  color: var(--title-color);
  letter-spacing: normal;
}
.why-title {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
  color: var(--title-color);
}
.why-slogan {
  font-size: 18px;
  line-height: calc(30 / 18);
  letter-spacing: 0.36px;
  margin-bottom: 44px;
  max-width: 418px;
}
.why-list {
  display: flex;
  max-width: 418px;
  justify-content: space-between;
  max-width: 418px;
}
.why-box {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 194px;
}
.why-box:last-child {
  margin-top: 35px;
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 133px;
  padding: 20px 36px;
  text-align: center;
  background-color: var(--cont-background);
}
.count {
  font-weight: 700;
  font-size: 42px;
  line-height: calc(57 / 42);
  text-align: center;
  letter-spacing: 2.1px;
  color: var(--title-color);
}
.count::after {
  content: "+";
  font-weight: 600;
  font-size: 16px;
  line-height: calc(22 / 16);
  vertical-align: top;
  color: transparent;
  text-shadow: 0 8px 0 var(--accent);
}
.why-text {
  font-weight: 600;
  font-size: 11px;
  line-height: calc(15 / 11);
  letter-spacing: normal;
  color: var(--title-color);
}

/*======== BARBERS ========*/
.barbers {
  background-color: var(--cont-background);
}
.barbers-suptitle {
  margin-bottom: 20px;
  color: var(--title-color);
}
.barbers-title {
  margin-bottom: 44px;
  color: var(--title-color);
}
.barbers-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}
.barbers-info {
  margin-top: 30px;
}
.barbers-name {
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  letter-spacing: 0.36px;
  text-align: center;
  color: var(--title-color);
}
.barbers-desc {
  margin-bottom: 30px;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.28px;
  text-align: center;
  color: var(--accent);
}
.barbers-social {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.barbers-social li {
  width: 44px;
  height: 44px;
}
.social-item {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--total-white);
  display: flex;
  justify-content: center;
  align-items: center;
}
.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--title-color);
  transition: fill 300ms linear;
}
.social-item:is(:hover, :focus) > .social-icon {
  fill: var(--accent);
}

/*======== PORTFOLIO ========*/
.portfolio {
  background-color: var(--total-white);
}
.portfolio-suptitle {
  margin-bottom: 70px;
  color: var(--title-color);
  letter-spacing: normal;
}
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.portfolio-list li:first-child + li {
  order: -1;
}

/*======== ONLINE-CONTACT ========*/
.online-contact {
  background-color: var(--dark-background);
  margin: 0 auto;
}

/*======== BOOKING ========*/
.booking-title {
  text-align: center;
  margin-bottom: 44px;
  color: var(--total-white);
}
.booking-form-label {
  width: 100%;
  display: inline-block;
  position: relative;
  color: var(--grey-text-info);
  font-size: 11px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 44px;
}
.form-label-title {
  position: absolute;
  top: 2px;
}
.booking-form-label:is(:hover, :focus) {
  color: var(--total-white);
}
.booking-form-label::after {
  display: block;
  content: "";
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 1px;
  background-color: var(--grey-text-info);
}
.booking-form-label:is(:hover, :focus)::after {
  background-color: var(--total-white);
}
.form-input {
  display: block;
  width: 100%;
  height: 24px;
  padding-left: 56px;
  color: var(--total-white);
  background-color: transparent;
  border: none;
  outline: none;
}
.textarea-input {
  height: 60px;
  padding-left: 64px;
  resize: none;
}
.booking-btn {
  color: var(--total-white);
  background: none;
  margin: 0 auto;
}

/*======== CONTACTS ========*/
.contacts {
  background-image: url("../images/contacts-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.contacts-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--total-white);
}
.contacts-address {
  font-style: normal;
}
.address-link {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--grey-text);
}
.address-link::before {
  content: url("../images/map-pin.svg");
  width: 24px;
  height: 24px;
}
.phone-link {
  margin-bottom: 20px;
  color: var(--grey-text);
}
.phone-link::before {
  content: url("../images/phone.svg");
  width: 24px;
  height: 24px;
}
.mail-link {
  text-decoration: underline;
  color: var(--grey-text);
  margin-bottom: 44px;
}
.mail-link::before {
  content: url("../images/mail.svg");
  width: 24px;
  height: 24px;
}
.contact-link {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 18px;
  line-height: calc(30 / 18);
  letter-spacing: 0.36px;
  transition: color 300ms linear;
}
.contact-link:is(:hover, :focus) {
  color: var(--accent);
}
.contacts-suptitle {
  margin-bottom: 20px;
  color: var(--total-white);
}
.contacts-suptitle.suptitle::before {
  background-color: var(--grey-text-info);
}
.schedule {
  font-size: 18px;
  line-height: calc(30 / 18);
  letter-spacing: 0.36px;
  color: var(--grey-text);
}
.arrow-up-icon {
  display: block;
  fill: var(--grey-text);
  background-color: transparent;
  margin-left: auto;
  transition: fill 300ms linear;
}
.arrow-up-icon:is(:hover, :focus) {
  fill: var(--accent);
}

/*======== FOOTER ========*/
.footer {
  padding-bottom: 44px;
  background-color: var(--cont-background);
}
.footer-container {
  display: flex;
}
.copy {
  font-weight: 600;
  font-size: 11px;
  line-height: calc(15 / 11);
  letter-spacing: 2.2px;
  color: var(--grey-text);
  margin-right: auto;
  margin-top: auto;
}
.footer-social {
  display: flex;
  width: 270px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.footer-social::before {
  content: "";
  width: 50px;
  height: 1px;
  background-color: currentColor;
}
.footer-link {
  padding-top: 44px;
  padding-bottom: 44px;
}

/*======== MODAL ========*/

.modal-open {
  overflow: hidden;
}
.backdrop {
  position: fixed;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--backdrop-backgroung);
  transition: opacity 300ms linear, visibility 300ms linear;
}
.backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 370px;
  height: 600px;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  transform: translate(-50%, -50%) scale(1) rotate(0);
  transition: transform 300ms linear;
}
.backdrop.is-hidden .modal {
  transform: scale(0.5) translate(-100%, -100%) rotate(0.5turn);
}
.modal-close-btn {
  display: block;
  width: 30px;
  height: 30px;
  font-weight: 600;
  color: var(--main-text);
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--grey-text);
  background-color: transparent;
  transition: color 300ms linear, background-color 300ms linear;
}
.modal-close-btn:is(:hover, :focus) {
  color: var(--total-white);
  background-color: var(--accent);
}
.modal-title {
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: var(--main-text);
}
.modal-label {
  position: relative;
  display: block;
  margin-bottom: 8px;
}
.label-text {
  display: block;
  font-size: 12px;
  line-height: calc(16 / 12);
  margin-bottom: 4px;
  color: var(--main-text);
}
.modal-input {
  display: block;
  width: 100%;
  height: 40px;
  padding-left: 30px;
  font-size: 14px;
  color: var(--main-text);
  outline: transparent;
  border-radius: 4px;
  border: 1px solid var(--grey-text);
  transition: border-color 300ms linear;
}
.input-icon {
  position: absolute;
  left: 8px;
  bottom: 11px;
  transition: fill 300ms linear;
}
.modal-input:focus,
.modal-input:focus + .input-icon {
  border-color: var(--accent);
  fill: var(--accent);
}
.comment-label {
  display: block;
  margin-bottom: 16px;
}
.modal-comment {
  display: block;
  width: 100%;
  height: 100px;
  padding: 8px;
  font-size: 14px;
  outline: transparent;
  border-radius: 4px;
  border: 1px solid var(--grey-text);
  color: var(--main-text);
  resize: none;
  transition: border-color 300ms linear;
}
.modal-comment:focus {
  border-color: var(--accent);
}

.checbox-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 48px;
  font-size: 14px;
}
.checkbox-title {
  font-size: 14px;
  font-weight: 600;
  margin-right: 30px;
}
.checkbox-icon {
  border: 2px solid var(--grey-text);
  border-radius: 4px;
  transform: translateY(5px) translateX(-6px);
  fill: transparent;
  transition: fill 300ms linear, background-color 300ms linear,
    border-color 300ms linear;
}
.checkbox-input:checked + .checkbox-icon {
  fill: var(--total-white);
  background-color: var(--accent);
  border-color: transparent;
}
.submit-btn {
  margin-left: auto;
  margin-right: auto;
}
