@import url(./nullstyle/nullstyle.css);

.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;
}

.header {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  box-shadow: 0px 0px 15px rgb(226, 218, 218);
}

.header .container {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav-item {
  padding: 10px 20px;
  position: relative;
}

.header__nav-item a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header__nav-item a .dropdown-arrow {
  height: 16px;
  width: 16px;
}

.header .active {
  color: rgb(233, 71, 70);
  background: #ffe2e1;
  border-radius: 20px;
}

.header__nav-item:has(a.header__nav-link--active) {
  font-weight: 600;
  background: #ffe2e1;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

.header__nav-item:has(a.header__nav-link--active) a {
  color: rgb(233, 71, 70);
}

.header__nav-item:has(a.header__nav-link--active) .header__modal a {
  color: rgb(19, 27, 36);
}

.header__nav-item:has(a.header__nav-link--active) .header__modal a:hover {
  color: rgba(19, 27, 36, 0.7);
}

.header__nav-item:has(.header__modal) {
  padding: 10px 10px 10px 20px;
}

.header__nav-link--active {
  color: #e94746;
}

.buttons {
  display: flex;
  align-items: center;
  position: relative;
}

.header__button {
  padding: 13px 16px;
  z-index: 20;
  border-radius: 48px;
  color: #fff;
  background: #e94746;
  font-weight: 600;
  opacity: 100%;
  transition: opacity 0.2s;
}

.header__button.hidden {
  opacity: 0;
  pointer-events: none;
}

.header__number {
  position: absolute;
  right: -42px;
  opacity: 0;
  pointer-events: none;
  padding: 14px 35px 14px 10px;
  border-radius: 40px;
  background-color: transparent;
  transform: translateX(-60px);
  transition: opacity 0.4s, background-color 0.4s, outline 0.4s;
}

.header__number:hover {
  background-color: #D12F2E;
}

.header__number:focus {
  outline: 2px solid #D12F2E;
}

.header__number:active {
  opacity: 0.7;
}

.header__number.visible {
  pointer-events: all;
  opacity: 100%;
  background-color: #EEF2F6;
}

.header__telephone {
  display: block;
  width: 44px;
  height: 44px;
  z-index: 15;
  background-color: #E94746;
  border-radius: 50%;
  margin-left: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s, outline 0.3s, outline-offset 0.4s, opacity 0.3s;
}

.header__telephone::before {
  content: "";
  width: 19px;
  height: 19px;
  background-image: url('../src/img/telephone.svg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.header__telephone:hover {
  background-color: #D12F2E;
}

.header__telephone:focus {
  outline: 2px solid #D12F2E;
  outline-offset: 4px;
}

.header__telephone:active {
  opacity: 0.7;
}

.header .header__button.stay-updated {
  background: linear-gradient(90deg, rgb(128, 7, 6) 0%, rgb(254, 104, 106) 100%);
}

.header .header__button.stay-updated a {
  color: #fff;
}

.header .header__modal {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-45%, 0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  width: -moz-max-content;
  width: max-content;
  z-index: 100000000000000000;
}

.header .header__modal a {
  font-size: 16px;
  font-weight: 400;
  width: 130px;
}

.header .header__modal a:hover {
  color: rgba(0, 0, 0, 0.7);
}

.header .header__modal.hide {
  display: none;
}

.header .header__nav-item:has(a.active) {
  font-weight: bold;
}

.header .header__burger {
  display: none;
  width: 44px;
  height: 44px;
  background: #e94746;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
}

.header .burger__modal {
  display: inline-block;
  border-radius: 20px;
  background: rgb(238, 242, 246);
}

.header .burger__modal.hide {
  display: none;
}

.header .header__burger-close {
  display: none;
  width: 44px;
  height: 44px;
  background: #e94746;
  border-radius: 100%;
  justify-content: center;
  align-items: center;
}

.header .header__burger-close.show {
  display: flex;
}

.header .burger {
  flex-direction: column;
  display: none;
  padding: 20px 0;
  justify-content: center;
}

.header .burger .burger__list {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.header .burger .burger__list .header__nav-item {
  padding: 0;
}

.header .burger .burger__list .header__nav-item a {
  width: 100%;
  height: 100%;
  display: inline-block;
  padding: 15px 0;
}

.header .burger .burger__list .header__nav-item a img {
  height: 12px;
  width: 12px;
}

.header .burger .burger-stay-updated {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #e94746;
  padding: 8px 52px;
  border-radius: 48px;
  width: 250px;
  margin: 20px auto 0 auto;
  background: linear-gradient(90deg, rgb(128, 7, 6) 0%, rgb(254, 104, 106) 100%);
}

.header .burger .burger-stay-updated a {
  color: #fff;
}

.header .burger .burger-contact {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #e94746;
  padding: 8px 52px;
  border-radius: 48px;
  width: 250px;
  margin: 20px auto 0 auto;
}

.header .burger .burger__social-list {
  display: flex;
  gap: 20px;
  margin: 40px auto 0 auto;
}

.header .burger.show {
  display: flex;
}

.burger__social {
  width: 40px;
  height: 40px;
}

@media (max-width: 1250px) {

  .wrapper .header .container .dropdown-arrow {
    height: 12px;
    width: 12px;
  }

  .wrapper .header .header__modal {
    padding: 10px 15px;
  }

  .wrapper .header .header__modal a {
    font-size: 11px;
    width: 100px;
  }

  .wrapper .header__nav-item {
    padding: 10px 13px;
  }

  .header__nav-item:has(.header__modal) {
    padding: 10px 8px 10px 12px !important;
  }

  .wrapper .header .container {
    height: 60px;
  }

  .wrapper .header .container img {
    height: 15px;
  }

  .wrapper .header__nav-item {
    font-size: 11px;
  }

  .wrapper .header__button {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .header__number {
    position: absolute;
    top: 48px;
    right: -156px;
    z-index: 1000000;
    opacity: 0;
    padding: 14px 10px 14px 10px;
    border-radius: 40px;
    background-color: transparent;
    transform: translateX(-114px);
    transition: opacity 0.4s, background-color 0.4s;
  }

  .header__logo {
    margin-right: auto;
  }

  .header__telephone {
    margin-left: 0;
    margin-right: 15px;
  }

  .header__nav {
    display: none;
  }

  .wrapper .header__button {
    display: none;
  }

  .wrapper .header .header__burger.show {
    display: flex;
  }

  .wrapper .header__nav-item {
    padding: 10px;
  }

  .wrapper .header .container {
    max-width: 98%;
  }

  .wrapper .header .container img {
    width: auto;
  }
}

@media (max-width: 730px) {

  .header__telephone {
    margin-left: 0;
    margin-right: 15px;
  }

  .header__nav {
    display: none;
  }

  .wrapper .header .container img {
    width: auto;
  }

  .wrapper .header__button {
    display: none;
  }

  .wrapper .header .header__burger.show {
    display: flex;
  }

  .wrapper .header .burger .burger__social-list img {
    height: 20px;
    width: 20px;
  }

  .header {
    padding: 0px 15px 0 15px;
    box-shadow: 0px 0px 15px rgb(228, 220, 220);
  }
}