/* ШАПКА */
.header {
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  flex-shrink: 0;
}

.header-center {
  flex: 1;
  justify-content: center;
  padding: 10px 20px;
}

.header-right {
  flex-shrink: 0;
}

.header .logo {
  font-size: 24px;
  font-weight: bold;
}

.header .logo a {
  text-decoration: none;
  color: #000;
}

.header .menu-icon {
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 1150;
}

.header .nav-links {
  display: flex;
  gap: 20px;
}

.header .nav-links a {
  font-weight: 400;
  text-decoration: none;
  color: #000;
}

.search-container {
  width: 100%;
  max-width: 400px;
}

.search-container input[type="text"] {
  width: 100%;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: border 0.3s;
}

.search-container input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  overflow: hidden;
}

#mobile-menu.hidden {
  display: none;
}

.mobile-menu .mobile-menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#open-menu {
  cursor: pointer;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: normal;
  text-decoration: none;
  color: #000;
  display: block;
  text-align: center;
  margin: 15px 0;
}

.mobile-menu .close-menu {
  position: absolute;
  top: 15px;
  left: 22px;
  font-size: 24px;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Прячем кнопку "открыть", когда меню открыто */
body.menu-open #open-menu {
  display: none !important;
}

/* Фиксируем и выравниваем обе кнопки строго одинаково */
.menu-icon,
.close-menu {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1150;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .header .nav-links {
    display: none;
  }

  .header .menu-icon {
    display: block;
    position: absolute;
    top: 15px;
    left: 20px;
  }

  .header-left, .header-right {
    justify-content: center;
    margin-bottom: 10px;
  }

  .header-center {
    order: 3;
    padding: 10px;
  }
}

/* ФУТЕР */
footer {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: #181818;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

footer .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

footer .footer-left,
footer .footer-center,
footer .footer-right {
  margin-bottom: 20px;
}

footer .logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

footer .phone,
footer .email {
  font-weight: bold;
}

footer .marketplaces {
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .marketplaces a {
  display: inline-block;
  width: 80px;
  height: 60px;
}

footer .marketplaces img {
  width: 80px;
  height: 80px;
}

footer .footer-bottom {
  font-size: 12px;
  color: #bbb;
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  footer .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  footer .footer-left,
  footer .footer-center,
  footer .footer-right {
    max-width: 30%;
  }

  footer .marketplaces {
    justify-content: flex-start;
  }

  footer .marketplaces a {
    width: 40px;
    height: 40px;
  }

  footer .marketplaces img {
    width: 40px;
    height: 40px;
  }
}

/* Стили для формы поиска в шапке */
.header-search-form {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.header-search-form input[type="text"] {
  width: 100%;
  padding: 12px 0px 12px 18px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 16px;
  background-color: #f9f9f9;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.header-search-form input[type="text"]:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
  outline: none;
}

.header-search-form .search-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.header-search-form .search-btn i {
  font-size: 18px;
}

@media (max-width: 768px) {
	.header-search-form input[type="text"] {
    width: 95%;
	}
}


/* Только для десктопа — делаем шапку плавающей */
@media (min-width: 769px) {
  .header {
    position: sticky;
  }
}

/* Для мобилок — обычная позиция */
@media (max-width: 768px) {
  .header {
    position: relative;
  }
	.header-right {
		display: none;
	}
}
