:root {
  --primary: #ff8c00;
  --primary-dark: #e07a00;
  --dark: #1f2328;
  --text: #252a30;
  --gray: #69727c;
  --light: #f5f6f7;
  --border: #e7e9ec;
  --white: #ffffff;
  --green: #1da85b;
  --red: #e74b4b;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* Верхняя панель */

.topbar {
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  font-size: 13px;
}

.topbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 20px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__right a:first-child {
  color: var(--text);
  font-weight: 700;
}

/* Шапка */

.header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.header__content {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.logo__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-size: 17px;
  letter-spacing: 0.2px;
}

.logo__text small {
  margin-top: 4px;
  color: var(--gray);
  font-size: 10px;
  white-space: nowrap;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 7px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.catalog-btn:hover {
  background: var(--primary-dark);
}

.catalog-btn__lines {
  font-size: 21px;
  line-height: 1;
}

.search {
  display: flex;
  flex: 1;
  min-width: 100px;
  overflow: hidden;
  border: 1px solid #dfe2e6;
  border-radius: 7px;
  background: var(--white);
}

.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}

.search button {
  padding: 0 18px;
  border: none;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.header-action small {
  color: var(--gray);
  font-size: 10px;
}

/* Навигация */

.nav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.nav__content {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 54px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  color: #4f5964;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav .nav__sale {
  color: var(--red);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding-top: 28px;
}

.hero__main {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(20, 25, 29, 0.94) 0%, rgba(20, 25, 29, 0.74) 42%, rgba(20, 25, 29, 0.12) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    #343b43;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 62px 55px;
  color: var(--white);
}

.hero__label,
.section-heading__label {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.hero h1 {
  margin: 13px 0 15px;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.hero p {
  max-width: 420px;
  margin: 0;
  color: #d8dde2;
  font-size: 15px;
  line-height: 1.65;
}

.hero__button {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 21px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.hero__button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hero__side {
  display: grid;
  gap: 18px;
}

.small-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 176px;
  padding: 27px;
  overflow: hidden;
  border-radius: 14px;
}

.small-banner span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.small-banner h3 {
  margin: 0 0 15px;
  font-size: 22px;
  line-height: 1.2;
}

.small-banner a {
  font-size: 13px;
  font-weight: 800;
}

.small-banner__icon {
  font-size: 56px;
  opacity: 0.75;
}

.small-banner--orange {
  background: #ffb65e;
  color: #3e2815;
}

.small-banner--dark {
  background: #2b333b;
  color: var(--white);
}

.small-banner--dark span {
  color: #aeb7c0;
}

/* Категории */

.categories {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  padding-top: 30px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  min-height: 128px;
  padding: 21px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: 0.2s ease;
}

.category-card:hover {
  border-color: rgba(255, 140, 0, 0.55);
  box-shadow: 0 8px 22px rgba(26, 32, 39, 0.08);
  color: var(--primary);
  transform: translateY(-3px);
}

.category-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #fff3e9;
  font-size: 25px;
}

/* Общие секции */

.products-section,
.articles {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.section-heading h2 {
  margin: 7px 0 0;
  color: var(--dark);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.7px;
}

.section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--primary-dark);
}

/* Карточки товаров */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: 0.2s ease;
}

.product-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(24, 31, 39, 0.13);
  transform: translateY(-3px);
}

.product-card__top {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.badge--sale {
  background: var(--red);
}

.badge--new {
  background: var(--green);
}

.badge--hit {
  background: #8756e2;
}

.favorite-btn {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: #6d7680;
  font-size: 21px;
}

.favorite-btn:hover {
  color: var(--red);
}

.product-card__image {
  display: grid;
  width: 100%;
  height: 205px;
  place-items: center;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f7f8;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__brand {
  margin: 0 0 7px;
  color: #8b939c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-card__title {
  display: -webkit-box;
  min-height: 57px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__title:hover {
  color: var(--primary);
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 32px;
  margin: 17px 0 14px;
}

.product-card__prices strong {
  color: var(--dark);
  font-size: 19px;
}

.product-card__prices del {
  color: #9aa1a8;
  font-size: 12px;
}

.add-cart {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: none;
  border-radius: 6px;
  background: #fff1e6;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.add-cart:hover {
  background: var(--primary);
  color: var(--white);
}

/* Преимущества */

.benefits {
  margin-top: 78px;
  padding: 70px 0;
  background: var(--dark);
}

.section-heading--light h2 {
  color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.benefit__icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 140, 0, 0.18);
  font-size: 24px;
}

.benefit h3 {
  margin: 17px 0 9px;
  color: var(--white);
  font-size: 16px;
}

.benefit p {
  margin: 0;
  color: #aeb6bf;
  font-size: 13px;
  line-height: 1.6;
}

/* Статьи */

.articles {
  padding-bottom: 75px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 10px 25px rgba(24, 31, 39, 0.1);
  transform: translateY(-3px);
}

.article-card__image {
  height: 190px;
  background-position: center;
  background-size: cover;
}

.article-card__image--one {
  background:
    linear-gradient(rgba(31, 35, 40, 0.18), rgba(31, 35, 40, 0.18)),
    url("images/step-1.jpg") center / cover;
}

.article-card__image--two {
  background:
    linear-gradient(rgba(31, 35, 40, 0.18), rgba(31, 35, 40, 0.18)),
    url("images/step-2.jpg") center / cover;
}

.article-card__image--three {
  background:
    linear-gradient(rgba(31, 35, 40, 0.18), rgba(31, 35, 40, 0.18)),
    url("images/step-3.jpg") center / cover;
}

.article-card__content {
  padding: 20px;
}

.article-card time {
  color: #8b939c;
  font-size: 11px;
}

.article-card h3 {
  min-height: 52px;
  margin: 10px 0 15px;
  font-size: 16px;
  line-height: 1.38;
}

.article-card a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

/* Футер */

.footer {
  padding-top: 56px;
  background: #171b1f;
  color: #b9c1c9;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 44px;
}

.logo--footer .logo__text strong {
  color: var(--white);
}

.logo--footer .logo__text small {
  color: #9ba4ad;
}

.footer__description {
  max-width: 320px;
  margin: 20px 0 0;
  color: #9ba4ad;
  font-size: 13px;
  line-height: 1.7;
}

.footer h4 {
  margin: 4px 0 19px;
  color: var(--white);
  font-size: 14px;
}

.footer a:not(.logo) {
  display: block;
  margin-bottom: 12px;
  color: #b9c1c9;
  font-size: 13px;
}

.footer a:not(.logo):hover {
  color: var(--primary);
}

.footer .footer__phone {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.footer p {
  margin: 10px 0;
  color: #9ba4ad;
  font-size: 13px;
  line-height: 1.5;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 67px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f8993;
  font-size: 12px;
}

.footer__bottom a {
  color: #9ba4ad;
}

/* Адаптивность */

@media (max-width: 1100px) {
  .header__content {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .search {
    order: 3;
    flex-basis: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__side {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar__content,
  .topbar__left,
  .topbar__right {
    gap: 10px;
  }

  .topbar__left span:nth-child(2),
  .header-action small,
  .header-action:nth-child(2) {
    display: none;
  }

  .header__content {
    gap: 12px;
    min-height: auto;
  }

  .logo__text strong {
    font-size: 14px;
  }

  .logo__text small {
    display: none;
  }

  .catalog-btn {
    padding: 0 13px;
  }

  .header-actions {
    margin-left: auto;
    gap: 9px;
  }

  .header-action {
    font-size: 20px;
  }

  .search button {
    display: none;
  }

  .nav__content {
    gap: 20px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero__main {
    min-height: 360px;
  }

  .hero__content {
    padding: 44px 27px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero__side {
    grid-template-columns: 1fr;
  }

  .small-banner {
    min-height: 145px;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 20px;
  }

  .category-card {
    min-height: 110px;
  }

  .products-section,
  .articles {
    padding-top: 52px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card__top {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .product-card__image {
    height: 150px;
  }

  .product-card__title {
    min-height: 57px;
    font-size: 11px;
  }

  .product-card__prices strong {
    font-size: 16px;
  }

  .product-card__prices del {
    display: none;
  }

  .add-cart {
    min-height: 38px;
    font-size: 12px;
  }

  .benefits {
    margin-top: 55px;
    padding: 52px 0;
  }

  .benefits-grid,
  .articles-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .article-card__image {
    height: 185px;
  }

  .footer__grid {
    gap: 28px;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 15px 0;
  }
}

/* Кнопки в меню */

.nav-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #4f5964;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav__sale {
  color: var(--red);
}

/* Кнопки-карточки категорий */

.category-card {
  border: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
}

.category-card:hover {
  background: var(--white);
}

/* Заголовок каталога */

.catalog-section {
  padding-top: 72px;
  padding-bottom: 15px;
}

.catalog-description {
  margin: 9px 0 0;
  color: var(--gray);
  font-size: 14px;
}

.search-result {
  display: none;
  margin: -8px 0 20px;
  color: var(--gray);
  font-size: 14px;
}

.search-result.show {
  display: block;
}

/* Скрытие товаров при фильтрации */

.product-card.hidden {
  display: none;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  border: 1px dashed #cdd3d9;
  border-radius: 12px;
  color: var(--gray);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--dark);
}

.empty-state p {
  margin: 0 0 20px;
}

.empty-state button,
.checkout-btn {
  padding: 13px 18px;
  border: none;
  border-radius: 7px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Кнопки внутри баннеров */

.banner-link {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Кнопки-картинки и названия товара */

.product-card__image {
  border: none;
  cursor: pointer;
}

.product-card__title {
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* Счетчики корзины и избранного */

.header-action {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.counter {
  position: absolute;
  top: -7px;
  right: -8px;
  display: none;
  min-width: 17px;
  height: 17px;
  padding: 1px 4px;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.counter.show {
  display: block;
}

/* Блок контактов */

.contacts {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  margin-top: 72px;
  margin-bottom: 75px;
  padding: 48px;
  border-radius: 15px;
  background: #f3f5f7;
}

.contacts h2 {
  margin: 9px 0 15px;
  color: var(--dark);
  font-size: 32px;
  line-height: 1.15;
}

.contacts__info p {
  max-width: 560px;
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.contacts__phone {
  display: inline-block;
  margin-top: 23px;
  color: var(--dark);
  font-size: 21px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 12px;
  align-content: center;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid #dce1e6;
  border-radius: 7px;
  outline: none;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.contact-form button {
  min-height: 47px;
  border: none;
  border-radius: 7px;
  background: var(--dark);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

/* Модальные окна */

.modal {
  width: min(calc(100% - 28px), 760px);
  max-height: calc(100vh - 40px);
  padding: 32px;
  overflow-y: auto;
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.modal::backdrop {
  background: rgba(16, 20, 24, 0.7);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f0f2f4;
  color: var(--dark);
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.product-modal__content {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(250px, 1fr);
  gap: 32px;
  align-items: center;
}

.product-modal__image {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 10px;
  background: #f5f6f7;
}

.product-modal__image img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.product-modal__info h2 {
  margin: 7px 0 13px;
  color: var(--dark);
  font-size: 24px;
  line-height: 1.25;
}

.product-modal__info p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
}

.modal-price {
  display: block;
  margin: 22px 0 17px;
  color: var(--dark);
  font-size: 26px;
}

.modal-add-cart {
  max-width: 260px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.mini-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.mini-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f5f6;
}

.mini-item h3 {
  margin: 0 0 5px;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.35;
}

.mini-item p {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.remove-item {
  border: none;
  background: transparent;
  color: var(--red);
  font-size: 20px;
  cursor: pointer;
}

.empty-list {
  padding: 25px 0;
  color: var(--gray);
  text-align: center;
}

.cart-total {
  margin-top: 20px;
  color: var(--dark);
  font-size: 18px;
}

.cart-total strong {
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  margin-top: 16px;
}

.footer button[data-category] {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  border: none;
  background: transparent;
  color: #b9c1c9;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.footer button[data-category]:hover {
  color: var(--primary);
}

@media (max-width: 700px) {
  .catalog-section {
    padding-top: 52px;
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 52px;
    margin-bottom: 52px;
    padding: 30px 20px;
  }

  .contacts h2 {
    font-size: 27px;
  }

  .product-modal__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-modal__image {
    min-height: 210px;
  }

  .modal {
    padding: 28px 18px 20px;
  }

  .mini-item {
    grid-template-columns: 52px 1fr auto;
  }

  .mini-item img {
    width: 52px;
    height: 52px;
  }
}

.marketplace-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marketplace-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.marketplace-btn--wb {
  background: linear-gradient(135deg, #a800a8, #6b19bc);
}

.catalog-loading,
.catalog-error {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: #667085;
  text-align: center;
}

.catalog-error {
  color: #b42318;
}

.category-card.active {
  border-color: #ff9200;
  background: #fff7eb;
  box-shadow: 0 8px 20px rgba(255, 146, 0, 0.16);
}

.category-card.active .category-card__icon {
  transform: scale(1.08);
}