* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f6f1f3;
  color: #2a1f24;
  min-height: 100%;
}

body {
  padding: 20px;
  background: linear-gradient(180deg, #fff8fb 0%, #f6f1f3 100%);
}

.app {
  max-width: 1160px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Главный экран */

.hero {
  padding: 20px 4px 14px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1dde5;
  color: #9b6276;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title,
.category-screen-title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #241a20;
}

.hero-text,
.category-screen-text {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
  color: #6f5a63;
  max-width: 680px;
}

.content {
  padding-top: 20px;
}

.categories {
  margin: 0 auto;
  max-width: 880px;
}

.category-card {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #e6d8de;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  padding: 30px 28px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 10px 24px rgba(92, 69, 79, 0.05);
  min-height: 176px;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #dcc5cf;
  box-shadow: 0 16px 32px rgba(92, 69, 79, 0.08);
}

.category-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8eff3;
  color: #9b6276;
  font-size: 22px;
  font-weight: 500;
  border: 1px solid #eadde4;
}

.category-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.category-title {
  display: block;
  font-size: 25px;
  font-weight: 700;
  color: #241a20;
}

.category-count {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f6eef2;
  color: #8a6877;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #eadde4;
}

.category-subtitle {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #6f5a63;
  max-width: 620px;
  margin: 0 auto;
}

.quick-links {
  margin: 24px auto 0;
  max-width: 880px;
}

.action-btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  color: #2a1f24;
  border: 1px solid #e4d6dc;
  margin-bottom: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 8px 18px rgba(92, 69, 79, 0.04);
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: #dcc5cf;
  box-shadow: 0 12px 24px rgba(92, 69, 79, 0.07);
}

/* Экран категории */

.category-header {
  padding: 12px 4px 18px;
}

.category-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.category-header-center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.category-badge {
  margin-bottom: 0;
}

.category-screen-title {
  text-align: center;
  margin: 0 0 12px;
}

.category-screen-text {
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
}

.back-btn {
  display: inline-block;
  margin-bottom: 0;
  padding: 12px 16px;
  border: 1px solid #e1d2d8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #2a1f24;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 18px rgba(92, 69, 79, 0.04);
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(92, 69, 79, 0.07);
}

.products-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.product-card {
  border: 1px solid #e7dbe0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(92, 69, 79, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #dcc5cf;
  box-shadow: 0 18px 40px rgba(92, 69, 79, 0.09);
}

.product-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
  background: #f4edf0;
}

.product-image {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.22s ease;
}

.product-card:hover .product-image {
  transform: scale(1.015);
}

.product-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #241a20;
}

.product-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.58;
  color: #6f5a63;
}

.product-tags {
  margin: 0 0 18px;
}

.product-tag {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f6eef2;
  color: #7c6670;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #eee0e7;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, #2f2329 0%, #21181d 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 12px 26px rgba(33, 24, 29, 0.22);
}

.product-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(33, 24, 29, 0.28);
}

/* Ноутбуки и десктоп */

@media (min-width: 920px) {
  .products-list {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .product-card {
    padding: 16px;
  }

  .product-title {
    font-size: 22px;
  }

  .product-text {
    font-size: 14px;
  }

  .product-image {
    height: 240px;
  }
}

/* Телефон */

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .app {
    max-width: 100%;
  }

  .hero-title,
  .category-screen-title {
    font-size: 30px;
  }

  .category-card,
  .product-card {
    padding: 18px;
    border-radius: 24px;
  }

  .category-card {
    min-height: auto;
  }

  .category-title,
  .product-title {
    font-size: 22px;
  }

  .category-arrow {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .category-header-top {
    gap: 10px;
    margin-bottom: 16px;
  }

  .product-image {
    height: 220px;
    border-radius: 18px;
  }

  .product-image-wrap {
    border-radius: 18px;
  }

  .action-btn,
  .product-btn {
    min-height: 52px;
  }
}
