html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main {
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  overflow-x: hidden;
}

.layout-header {
  background: #4F494B;
  padding: 28px 7%;
  border-bottom: 1px solid #1a1a1a;
  font-family: "Montserrat", sans-serif;
}

.layout-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout-header__menu ul {
  display: flex;
  align-items: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.layout-header__menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(255,255,255,0.2);
  padding: 0 5px;
}

.layout-header__menu a:hover {
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.layout-header__right {
  display: flex;
  align-items: center;
  gap: 35px;
}

.layout-header__phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.layout-header__phone {
  text-decoration: none;
  color: #e6e6e6;
  font-size: 15px;
  transition: 0.3s ease;
}

.layout-header__phone:hover {
  color: #fff;
}

.layout-header__contact-btn {
  padding: 14px 30px;
  border: 1px solid #aaa;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  background: transparent;
  transition: all 0.4s ease;
}

.layout-header__contact-btn:hover {
  background: linear-gradient(135deg, #bfbfbf, #ffffff, #8c8c8c);
  color: #000;
  box-shadow: 0 8px 25px rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.layout-header__menu .catalog-menu {
  position: relative;
}

.layout-header__menu .catalog-menu > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.layout-header__menu .catalog-menu > a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.35);
}

.layout-header__menu .catalog-menu .arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.layout-header__menu .catalog-menu:hover .arrow {
  transform: rotate(180deg);
}

.layout-header__menu .catalog-menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #4F494B;
  border-radius: 6px;
  min-width: 440px;
  padding: 10px 15px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.layout-header__menu .catalog-menu .submenu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.layout-header__menu .catalog-menu .submenu li a:hover {
  background: #333;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.layout-header__menu .catalog-menu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.layout-footer {
  background: #4F494B;
  color: #fff;
  padding: 100px 8% 40px 8%;
  position: relative;
  font-family: "Montserrat", sans-serif;
}

.layout-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #888, #fff, #888, transparent);
}

.layout-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.layout-footer__logo {
  display: inline-block;
}

.layout-footer__logo img {
  width: 200px;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: none;
}

.layout-footer__logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
}

.layout-footer__info {
  font-size: 15px;
  line-height: 2.2;
  color: #e0e0e0;
  text-align: center;
}

.layout-footer__info strong {
  display: inline-block;
  width: 85px;
  color: #cfcfcf;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.layout-footer__info a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}

.layout-footer__info a:hover {
  color: #e6e6e6;
  text-shadow: 0 0 8px rgba(255,255,255,0.35);
}

.layout-footer__right {
  text-align: right;
}

.layout-footer__socials {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  margin-bottom: 30px;
}

.layout-footer__socials a {
  width: 42px;
  height: 42px;
  border: 1px solid #888;
  color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.4s ease;
}

.layout-footer__socials a:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.layout-footer__contact-btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #aaa;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.4s ease;
}

.layout-footer__contact-btn:hover {
  background: linear-gradient(135deg, #bfbfbf, #ffffff, #8c8c8c);
  color: #000;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.layout-footer__info a {
  position: relative;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.layout-footer__info a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #777, #fff, #777);
  transition: 0.4s ease;
}

.layout-footer__info a:hover {
  color: #eaeaea;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
  transform: translateX(4px);
}

.layout-footer__info a:hover::after {
  width: 100%;
}

.global-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.global-image-modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.2s ease;
  cursor: zoom-in;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}

body {
  overflow-x: hidden;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.burger span {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



@media (max-width: 1400px) {
  .layout-header__menu ul {
    gap: 40px;
  }
}


@media (max-width: 1200px) {

  .layout-header {
    padding: 24px 5%;
  }

  .layout-header__menu ul {
    gap: 28px;
  }

  .layout-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .layout-footer__right {
    text-align: left;
  }

  .layout-footer__socials {
    justify-content: flex-start;
  }
}


@media (max-width: 992px) {

  html, body {
    overflow-x: hidden;
  }

  .layout-header {
    padding: 12px 4%;
    background: #4F494B;
  }

  .layout-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .burger span {
    height: 2px;
    background: #fff;
    display: block;
  }

  .layout-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .layout-header__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
  }

  .layout-header__phone {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
  }

  .layout-header__phone i {
    margin-right: 4px;
    font-size: 10px;
  }

  .layout-header__contact-btn {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .layout-header__menu {
    display: none;
    width: 100%;
    background: #4F494B;
  }

  .layout-header__menu.active {
    display: block;
  }

  .layout-header__menu ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 5%;
    margin: 0;
  }

  .layout-header__menu li {
    list-style: none;
  }

  .layout-header__menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
  }

  .layout-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
  }

  .layout-footer__logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .layout-footer__logo img {
    display: block;
    margin: 0 auto;
  }

  .layout-footer__info {
    text-align: center;
    width: 100%;
  }

  .layout-footer__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
  }

  .layout-footer__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .layout-footer__contact-btn {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
}


@media (max-width: 768px) {

  .layout-header {
    padding: 20px 5%;
  }

  .layout-header__inner {
    flex-wrap: wrap;
  }

  .layout-header__menu ul {
    flex-wrap: wrap;
    gap: 15px;
  }

  .layout-header__menu a {
    font-size: 14px;
  }

  .layout-header__contact-btn {
    padding: 12px 22px;
    font-size: 12px;
  }

  .layout-header__menu .catalog-menu .submenu {
    min-width: 100%;
    grid-template-columns: 1fr;
  }

  .layout-footer {
    padding: 70px 5% 30px 5%;
  }

  .layout-footer__logo img {
    width: 150px;
  }

  .layout-footer__info {
    font-size: 14px;
    line-height: 2;
  }
}


@media (max-width: 576px) {
  .layout-header__inner {
    flex-direction: row;
    gap: 0;
  }

  .layout-header__right {
    flex-direction: row;
    gap: 10px;
  }

  .layout-header__phones {
    flex-direction: column;
    align-items: flex-end;
  }

  .layout-header__contact-btn {
    width: auto;
    text-align: center;
  }

  .layout-footer {
    padding: 60px 5% 25px 5%;
  }

  .layout-footer__socials {
    gap: 15px;
  }

  .layout-footer__socials a {
    width: 38px;
    height: 38px;
  }

  .layout-footer__logo img {
    width: 130px;
  }

  .layout-footer__inner {
    gap: 25px;
  }

  .modal-close {
    top: 20px;
    right: 25px;
    font-size: 30px;
  }
}


@media (max-width: 360px) {
  .layout-header__menu a {
    font-size: 13px;
  }

  .layout-footer__info {
    font-size: 13px;
  }

  .layout-footer__logo img {
    width: 110px;
  }
}