:root {
  --lumen-green: #064b3b;
  --lumen-green-deep: #043e31;
  --lumen-cream: #f5f3ee;
}

body {
  background: var(--lumen-green);
}

.site-header {
  position: relative;
  height: 96px;
  color: var(--lumen-cream);
  background: rgba(6, 75, 59, .97);
  border-color: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 142px;
  height: auto;
  filter: none;
}

.brand-city,
.header-phone,
.main-nav a {
  color: rgba(255, 255, 255, .78);
}

.cart-button,
.favorite-nav-button,
.lang-switcher {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.lang-switcher button { color: rgba(255, 255, 255, .65); }
.menu-toggle span { background: #fff; }

.hero {
  min-height: 380px;
  height: auto;
  max-height: none;
  color: var(--lumen-cream);
  background:
    radial-gradient(circle at -8% 44%, transparent 0 19%, rgba(0, 0, 0, .08) 19.3% 32%, transparent 32.3%),
    radial-gradient(circle at 108% 65%, transparent 0 24%, rgba(0, 0, 0, .07) 24.3% 39%, transparent 39.3%),
    var(--lumen-green);
  display: flex !important;
  justify-content: center !important;
}

.hero::before,
.hero::after { display: none !important; }

.hero-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 52px 20px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-wrap {
  width: 100% !important;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
}

.hero-subtitle {
  order: -1;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .94);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(520px, 76vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: none;
}

.hero-tagline {
  margin-top: 22px;
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .58em;
  text-align: center;
}

.catalog.category-home {
  padding-top: 0;
  color: var(--lumen-cream);
  background:
    linear-gradient(rgba(255, 255, 255, .018), rgba(255, 255, 255, 0)),
    var(--lumen-green);
  border: 0;
}

.catalog.category-home .section-heading { display: none; }

.catalog.category-home .catalog-toolbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.catalog.category-home .search-field {
  width: min(760px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  color: var(--lumen-green-deep);
  background: var(--lumen-cream);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
}

.catalog.category-home .search-field svg { color: var(--lumen-green-deep); }
.catalog.category-home .search-field input { color: #1c342d; font-size: 15px; }
.catalog.category-home .search-field input::placeholder { color: #7f8580; }
.catalog.category-home .search-field kbd { color: #53635d; border-color: #bbc1bd; }

.catalog.category-home .category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.catalog.category-home .category-tabs button,
.catalog.category-home .category-tabs button:hover,
.catalog.category-home .category-tabs button.active {
  position: relative;
  min-height: 260px;
  padding: 0;
  display: block;
  overflow: hidden;
  color: var(--lumen-green-deep) !important;
  background: var(--lumen-cream) !important;
  border: 0 !important;
  border-radius: 9px;
  filter: none;
  text-align: left;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.catalog.category-home .category-tabs button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.catalog.category-home .category-tabs button > .category-visual {
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 24px 28px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.catalog.category-home .category-tabs .category-visual img {
  width: 88%;
  height: 88%;
  max-width: 260px;
  max-height: 188px;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Единый формат всех фотографий оборудования */
.catalog:not(.category-home) .product-grid {
  align-items: stretch;
}

.catalog:not(.category-home) .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.catalog:not(.category-home) .product-visual,
.catalog:not(.category-home) .product-visual.with-photo,
.catalog:not(.category-home) .product-visual:not(.with-photo) {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff !important;
  background-image: none !important;
}

.catalog:not(.category-home) .product-carousel {
  position: absolute;
  inset: 0;
  background: #fff;
}

.catalog:not(.category-home) .product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 2.2vw, 34px) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
  transform: none !important;
}

.catalog:not(.category-home) .product-visual > svg {
  width: 42%;
  height: 42%;
  color: var(--lumen-green-deep);
}

.catalog:not(.category-home) .product-info {
  flex: 1 1 auto;
}

.catalog.category-home .category-tabs button > span:not(.category-visual) {
  position: absolute;
  z-index: 2;
  left: 42px;
  right: 42px;
  bottom: 18px;
  min-height: 0;
  padding: 0;
  display: block;
  color: var(--lumen-green-deep) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.catalog.category-home .category-tabs button::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 13px;
  color: var(--lumen-green-deep);
  font-size: 28px;
  font-weight: 400;
}

.catalog.category-home .category-tabs button > .category-visual,
.catalog.category-home .category-tabs button > span:not(.category-visual),
.catalog.category-home .search-field,
.catalog.category-home::after {
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.catalog.category-home .category-tabs .icon-category .category-visual svg {
  width: 88px;
  height: 88px;
  color: var(--lumen-green-deep);
  stroke-width: 1.35;
}

.catalog.category-home::after {
  content: "ПРОФЕССИОНАЛЬНОЕ ОБОРУДОВАНИЕ ДЛЯ БОЛЬШИХ ИДЕЙ";
  width: min(520px, 90%);
  margin: 58px auto 0;
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .34em;
  text-align: center;
}

@media (max-width: 740px) {
  .site-header {
    height: 124px;
    padding: 0 18px 36px;
  }

  .brand-logo { width: 112px; height: auto; }
  .header-actions { gap: 8px; }
  .header-contact { display: none; }
  .lang-switcher {
    position: absolute;
    left: 50%;
    bottom: 9px;
    display: flex;
    gap: 3px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .3);
    transform: translateX(-50%);
  }

  .lang-switcher button {
    min-width: 48px;
    padding: 7px 8px;
    color: rgba(255, 255, 255, .74);
    font-size: 9px;
  }

  .lang-switcher button.active {
    color: var(--lumen-green-deep);
    background: var(--lumen-cream);
  }
  .cart-button, .favorite-nav-button { width: 42px; height: 42px; }
  .menu-toggle { display: block; }

  .hero {
    min-height: 330px;
    padding: 0;
  }

  .hero-content {
    width: 100%;
    margin: 0;
    padding: 36px 18px 38px;
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-bottom: 22px;
    font-size: 8px;
    letter-spacing: .34em;
  }

  .hero-logo { width: min(390px, 88vw); }

  .hero-tagline {
    margin-top: 16px;
    font-size: 7px;
    letter-spacing: .45em;
  }

  .catalog.category-home {
    padding: 8px 16px 64px;
  }

  .catalog.category-home .catalog-toolbar { gap: 28px; }

  .catalog.category-home .search-field {
    min-height: 58px;
    padding-inline: 18px;
  }

  .catalog.category-home .search-field input { font-size: 13px; }

  .catalog.category-home .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog.category-home .category-tabs button,
  .catalog.category-home .category-tabs button:hover,
  .catalog.category-home .category-tabs button.active {
    min-height: 178px;
    border-radius: 7px;
  }

  .catalog.category-home .category-tabs button > .category-visual {
    min-height: 178px;
    padding: 15px 15px 45px;
  }

  .catalog.category-home .category-tabs .category-visual img { max-height: 125px; }

  .catalog:not(.category-home) .product-photo {
    padding: 14px !important;
  }

  .catalog.category-home .category-tabs button > span:not(.category-visual) {
    left: 32px;
    right: 32px;
    bottom: 13px;
    font-size: 12px;
  }

  .catalog.category-home .category-tabs button::after {
    right: 13px;
    bottom: 8px;
    font-size: 23px;
  }

  .catalog.category-home .category-tabs .icon-category .category-visual svg {
    width: 68px;
    height: 68px;
  }

  .catalog.category-home::after {
    margin-top: 44px;
    font-size: 7px;
    letter-spacing: .25em;
  }
}
