* {

  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-focus-ring-color: transparent;
  font-family: roboto;
}

/* Меню навигации */
.navigation {
  padding: 0;
  margin: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.nav-logo {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
}

/* Исходный прозрачный стиль */
nav.transparent {
  color: white;
  background: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav.transparent a {
  color: rgb(255, 255, 255);
}
nav.transparent:hover a {
  color: rgb(255, 255, 255);
}

nav .nav-logo img {
  filter: invert(0%);
}

.burger-menu img {
  filter: invert(100%);
}

.menu_burger img {
  filter: invert(0%);
}

.logo_header {
  width: 220px;
}

ul {
  display: flex;
}
li {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  margin-left: 40px;
  font-family: roboto;
  font-weight: 300;
  font-size: 13px;
  position: relative;
}
li:first-child {
  margin-left: 60px;
}

li img {
  width: 18px;
}

li a {
  text-decoration: none;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
}

li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: rgb(255, 255, 255);
  transition: width 0.3s ease-in-out;
}

li:hover::after {
  left: 0;
  right: auto;
  width: 100%;
}
.menu_burger {
  display: none;
}

.cart {
  margin-right: 60px;
  transition: 0.5s;
}
.cart:hover {
  transform: scale(1.04);
}

.menu_burger {
  display: none;
}

#cart-container img {
  width: 220px;
}

.cart-item {
  display: flex;
  margin-left: 110px;
  margin-top: 20px;
  width: 700px;
  border: 1px solid;
}
.cart-item img {
  width: 10px;
}

.main-block {
  display: flex;
  justify-content: space-between;
  width: 700px;
  height: 100%;
  padding: 30px;
}

.right-block {
  width: 170px;
  display: flex;
  flex-direction: column;
}

.remove-item {
  width: 160px;
}

h1 {
  margin-left: 110px;
  margin-top: 150px;
  margin-bottom: 40px;
  font-size: 40px;
}

.empty {
  margin-left: 110px;
}

h3 {
  font-size: 25px;
  font-weight: 500;
}

.main_cart {
  display: flex;
  justify-content: space-between;
}

.checkout {
  background: #181818;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid;
  color: white;
  width: 400px;
  height: 150px;
  padding: 30px;
  margin-top: 20px;
  margin-right: 70px;
}

#checkout-btn {
  margin: 0;
  margin-top: 70px;
  padding: 15px 10px;
  color: white;
  border: 1px solid white;
}

.cart-item p {
  margin-top: 10px;
}

.price {
  font-size: 27px;
  display: flex;
  justify-content: end;
}


.go_cart a{
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: #ffffffd7;
  font-size: 18px;
  padding: 25px;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid white;
}

.go_cart a:hover{
  transform: scale(1.05);
}

button {
  font-size: 18px;
  background: none;
  width: 200px;
  margin-top: 110px;
  padding: 10px;
  transition: 0.3s;
  cursor: pointer;
}

button:hover {
  transform: scale(1.03);
}

.total {
  font-size: 25px;
  font-weight: 500;
}

.burger-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: white;
  padding: 20px 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.burger-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.burger-menu li {
  margin-bottom: 20px;
}
.burger-menu li:last-child {
  margin-bottom: 0;
}

.burger-menu a {
  text-decoration: none;
  color: black;
  font-size: 16px;
}

.burger-menu.show {
  display: block;
}
.last {
  margin-top: 10px;
}

.last-order {
  margin: 30px 110px;
  padding: 15px;
  border: 1px solid;
  max-width: 500px;
}
.last-order p {
  margin-top: 10px;
  font-size: 16px;
}

#last-order-number {
  font-weight: bold;
}
.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 5px;
  margin-top: 20px;
}

.soc {
  width: 50px;
  margin-top: 20px;
  margin-right: 10px;
}
.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 1px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}
h2 {
  margin-top: 20px;
}

.modal input {
  width: 85%;
  padding: 10px;
  margin: 10px 0;
}

.modal input:first-child {
  margin-top: 50px;
}

.modal button {
  padding: 10px 20px;
  cursor: pointer;
}

.hidden {
  display: none;
}
.modal-content p {
  margin-top: 5px;
}

.contacts {
  margin-top: 30px;
}

.contacts img {
  width: 50px;
  margin: 20px 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

footer {
  display: flex;
  flex-direction: column;
  height: 400px;
  margin-top: 400px;
  overflow: hidden;
  background: #181818;
  box-shadow: 4px 0 12px rgb(198, 198, 198);
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact a {
  margin-top: 20px;
  text-decoration: none;
  color: #fafafa;
  font-family: roboto;
  font-weight: 200;
  transition: 0.3s;
}

.contact a:hover {
  font-weight: 400;
}

.top_footer {
  display: flex;
  gap: 200px;
  justify-content: center;
  margin-top: 50px;
  width: 70%;
  align-self: center;
}
.top_footer p {
  font-family: roboto;
  font-weight: 200;
  font-size: 22px;
  color: #fafafa;
}

.bottom_logo {
  width: 180px;
}

.block_help {
  display: flex;
  flex-direction: column;
}

.block_help p {
  font-size: 30px;
  margin-top: 15px;
  font-family: roboto;
  font-weight: 200;
}

.block_help a {
  font-size: 15px;
  font-family: roboto;
  font-weight: 200;
  margin-top: 15px;
  color: #fafafa;
  text-decoration: none;
  transition: 0.1s;
}
.block_help a:hover {
  font-weight: 400;
}

.social a{
  text-decoration: none;
}

.social a img {
  margin-right: 20px;
  margin-top: 15px;
  width: 35px;
  transition: 0.3s;
}
.social a img:hover {
  transform: scale(1.1);
}

.line {
  width: 1200px;
  border: 1px solid #fafafa;
  align-self: center;
  margin-top: 100px;
}

@media screen and (min-width: 1800px) {
  nav {
    height: 83px;
  }

  .logo_header{
    width: 250px;
  }

  li{
    font-size: 15px;
  }

  li img {
    width: 20px;
  }
}

@media screen and (max-width: 500px) {
  body {
    overflow-x: hidden;
  }
  header {
    background: none;
    display: flex;
    flex-direction: column;
  }
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    filter: blur(3px); /* Уровень размытия */
    z-index: -1;
  }
  .cart {
    display: none;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    padding: 20px;
    height: 50px;
    background: none;
  }
  ul {
    padding: 0;
    display: none;
  }
  li {
    margin-left: 30px;
  }
  li:first-child {
    margin-left: 0;
  }
  li a {
    color: #000000;
    font-size: px;
  }

  .nav-logo {
    position: absolute;
    top: 20%;
    left: 47%;
    transform: translateX(-50%);
  }

  .transparent {
    justify-content: flex-end;
    height: 30px;
    background: #fafafa;
  }
  nav.scrolled {
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: flex-end;
    height: 30px;
  }

  .menu_burge:focus {
    outline: none;
    box-shadow: none;
  }
  .burger {
    margin: 0;
  }
  .menu_burger {
    display: flex;
    margin-right: 40px;
  }

  .menu_burger img {
    width: 40px;
    margin-top: 10px;
  }

  .burger-menu ul {
    display: flex;
    justify-content: start;
    align-items: flex-start;
  }
  .cart {
    display: none;
  }

  button {
    gap: 10px;
  }
  .main_cart {
    flex-direction: column;
  }
}
@media (max-width: 440px) {
  .burger {
    margin: 0;
  }
  .menu_burger {
    display: block;
    cursor: pointer;
  }

  .burger-menu {
    display: none;
  }

  .burger-menu.show {
    display: block;
  }
  .view:nth-last-child(-n + 2) {
    display: none;
  }
  .menu_burger {
    display: block;
  }
  .menu_burger img {
    width: 40px;
    margin-top: 10px;
  }

  #cart-container img {
    width: 120px;
    object-fit: cover;
  }

  .cart-item {
    display: flex;
    margin-left: 10px;
    margin-top: 10px;
    width: 390px;
    border: 1px solid;
  }
  .cart-item:first-child {
    margin-top: 30px;
  }

  .main-block {
    display: flex;
    justify-content: space-between;
    width: 300px;
    padding: 10px;
  }

  h1 {
    margin-left: 20px;
    margin-top: 100px;
    font-size: 25px;
    margin-bottom: 0;
  }
  h3 {
    font-size: 14px;
    font-weight: 500;
    margin-top: 11px;
    margin-bottom: 20px;
  }

  .left-block p {
    margin-top: 5px;
    font-size: 12px;
  }

  .right-block {
    width: 100px;
  }

  .price {
    font-size: 20px;
    display: flex;
    justify-content: center;
  }
  .remove-item {
    width: 100px;
  }

  .empty {
    margin-left: 20px;
    font-size: 12px;
  }

  button {
    font-size: 16px;
    background: none;
    margin-top: 60px;
    padding: 10px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid;
  }
  #go-to-catalog {
    width: 200px;
    padding: 20px;
  }

  button:hover {
    transform: scale(1.03);
  }

  .checkout {
    background: #181818;
    color: white;
    width: auto;
    margin: 10px;
    margin-top: 30px;
    padding: 20px;
    height: 100px;
  }

  .total {
    font-size: 20px;
    font-weight: 500;
  }
  #checkout-btn {
    margin-top: 20px;
    color: white;
  }

  .last {
    margin-top: 10px;
    font-size: 22px;
  }

  .last-order {
    margin: 70px 20px;
    padding: 15px;
    border: 1px solid;
    max-width: 500px;
  }
  .last-order p {
    margin-top: 10px;
    font-size: 16px;
  }

  #last-order-number {
    font-weight: bold;
  }
  .image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 5px;
    margin-top: 20px;
  }

  .soc {
    width: 50px;
    margin-top: 20px;
    margin-right: 10px;
  }
  .hidden {
    display: none;
  }

  footer {
    height: 650px;
    margin-top: 200px;
  }
  .top_footer {
    flex-direction: column;
    gap: 50px;
  }

  .line {
    display: none;
  }
}

.burger-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 40px;
  background-color: rgb(0, 0, 0);
  padding: 15px 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.burger-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.burger-menu li {
  margin-bottom: 20px;
}
.burger-menu li:last-child {
  margin-bottom: 0;
}

.burger-menu ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 16px;
}

.burger-menu.show {
  display: block;
}

/* Показать бургер и скрыть обычное меню на маленьком экране */
@media (max-width: 440px) {
  .burger {
    margin: 0;
  }

  .menu_burger {
    display: block;
    cursor: pointer;
  }

  .burger-menu {
    display: none;
  }

  .burger-menu.show {
    display: block;
  }
}
