:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #3a3a3a;
  --muted: #777;
  --accent: #dcb763;
  --accent-hover: #c9a34b;
  --danger: #e22b2b;
  --line: #e8e8e8;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --container: 1240px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.header__top {
  background: #3a3a3a;
  color: #fff;
  font-size: 14px;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.header__top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.header__top-nav a {
  position: relative;
}

.header__top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.header__top-nav a:hover::after {
  transform: scaleX(1);
}

.header__top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__hours {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.header__phones {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 600;
}

.header__main-inner {
  display: grid;
  grid-template-columns: 180px auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}

.header__logo img {
  width: 150px;
}

.header__catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.header__catalog-btn:hover,
.header__catalog-btn.is-open {
  background: var(--danger);
  color: #fff;
}

.header__catalog-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__catalog-lines span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.header__search {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header__search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
}

.header__search button {
  border: 0;
  background: transparent;
  width: 48px;
  height: 100%;
  cursor: pointer;
}

.header__actions {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text);
}

.header__action-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--text);
}

.header__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #3a3a3a;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.megamenu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.megamenu__list {
  list-style: none;
  margin: 0;
  padding: 18px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.megamenu__list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.megamenu__list a:hover {
  background: #f7f1e4;
}

.megamenu__list span {
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-height: 50vh;
  padding-bottom: 48px;
}

.hero {
  padding: 24px 0 8px;
}

.hero__slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  aspect-ratio: 13 / 5;
  box-shadow: var(--shadow);
}

.hero__slides {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
}

.hero__slides img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #cfcfcf;
  cursor: pointer;
}

.hero__dots button.is-active {
  background: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.feature::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 12px;
}

.section {
  margin-top: 42px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section__head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.section__head a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.section__head a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-card__img {
  display: block;
  aspect-ratio: 1;
  background: #fafafa;
  padding: 16px;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__stock {
  color: #2f9e44;
  font-size: 12px;
  font-weight: 600;
}

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card__code {
  color: var(--muted);
  font-size: 12px;
}

.product-card__price {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #3a3a3a;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-cart:hover {
  background: var(--danger);
  color: #fff;
}

.product-card__specs {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.product-card__specs li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.product-card__specs span {
  color: #999;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
  background: #ddd;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-weight: 700;
}

.seo-block {
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.seo-block h1 {
  margin-top: 0;
  font-size: 26px;
}

.seo-block p {
  color: #555;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__body {
  padding: 16px 18px 20px;
}

.article-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.article-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page {
  padding: 28px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span {
  color: var(--text);
}

.page-title {
  margin: 0 0 22px;
  font-size: 32px;
}

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-top: 1.6em;
}

.content-card img {
  border-radius: 12px;
  margin: 18px 0;
}

.content-card a {
  color: #8a6a28;
  border-bottom: 1px solid rgba(220, 183, 99, 0.45);
}

.toc {
  background: #faf7f0;
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0 24px;
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.shop-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.shop-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-card__meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.map-placeholder {
  height: 360px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(220, 183, 99, 0.15), transparent 40%),
    repeating-linear-gradient(0deg, #efefef, #efefef 24px, #f7f7f7 24px, #f7f7f7 48px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.faq-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.faq-nav a:hover {
  border-color: var(--accent);
  background: #faf7f0;
}

.faq-section {
  margin-bottom: 28px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  background: #faf7f0;
}

.faq-item__body {
  padding: 0 18px 18px;
  color: #555;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer {
  background: #3a3a3a;
  color: #ddd;
  padding: 48px 0 28px;
  margin-top: 48px;
}

.footer a {
  color: #ddd;
}

.footer a:hover {
  color: var(--accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
  font-weight: 700;
  color: #fff;
}

.footer__schedule {
  font-size: 14px;
  margin-bottom: 14px;
}

.footer__pay {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__note {
  font-size: 12px;
  color: #aaa;
  line-height: 1.55;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid,
  .shops-grid,
  .megamenu__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header__top {
    display: none;
  }

  .header__main-inner {
    grid-template-columns: 1fr auto auto;
  }

  .header__search,
  .header__actions {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .header.mobile-open .header__search,
  .header.mobile-open .header__actions {
    display: flex;
    grid-column: 1 / -1;
  }

  .header.mobile-open .header__actions {
    justify-content: space-around;
  }

  .hero__slider {
    aspect-ratio: 16 / 9;
  }

  .product-grid,
  .categories,
  .articles-grid,
  .shops-grid,
  .contacts-grid,
  .footer__grid,
  .features,
  .megamenu__list {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 26px;
  }

  .content-card {
    padding: 20px;
  }
}
