* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #f5f5f7;
}

body.modal-open {
  overflow: hidden;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo span {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

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

.header-nav a {
  color: #d6d6d6;
  text-decoration: none;
  font-size: 15px;
}

.header-nav a:hover {
  color: #fff;
}

.contact-link,
.hero-button,
.contact-big-link,
.feedback-link,
.order-btn,
.contact-option,
.feedback-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.contact-link {
  color: #111;
  background: #fff;
  padding: 10px 16px;
}

.contact-link:hover {
  transform: translateY(-1px);
}

.hero {
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #000 0%, #070707 52%, #151515 100%);
  color: #fff;
  padding: 74px 0;
}

.hero-inner {
  display: block;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -1.8px;
}

.hero p {
  margin: 0 0 28px;
  max-width: 560px;
  color: #c8c8c8;
  font-size: 19px;
  line-height: 1.45;
}

.hero-button {
  color: #111;
  background: #fff;
  padding: 14px 22px;
}

.hero-button:hover,
.contact-big-link:hover,
.feedback-link:hover,
.order-btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.catalog-top h2,
.contacts-card h2 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.8px;
}

.section-head p,
.catalog-counter,
.contacts-card p {
  margin: 0;
  color: #6e6e73;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, #050505 0%, #111 100%);
  cursor: pointer;
  overflow: hidden;
  transition: 0.25s;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.28);
}

.category-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

.category-card span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 12px 12px 16px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.catalog-section {
  padding-top: 26px;
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.search-input {
  width: 320px;
  padding: 14px 16px;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: #111;
}

.filters-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.filter-title {
  margin-bottom: 10px;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: #111;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.active {
  color: #fff;
  background: #111;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.product-image-wrap {
  height: 210px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  background: #f7f7f8;
  border-radius: 18px;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.product-name {
  min-height: 46px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-price {
  font-size: 21px;
  font-weight: 900;
}

.product-old-price {
  color: #8e8e93;
  text-decoration: line-through;
  font-size: 14px;
}

.product-meta {
  margin: 10px 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.35;
}

.product-status {
  font-size: 14px;
  font-weight: 800;
}

.available {
  color: #168a2f;
}

.not-available {
  color: #b00020;
}

.empty-state {
  padding: 40px;
  grid-column: 1 / -1;
  text-align: center;
  color: #6e6e73;
  background: #fff;
  border-radius: 24px;
}

.contacts-section {
  padding-bottom: 70px;
}

.contacts-card {
  padding: 40px;
  border-radius: 28px;
  background: #111;
  color: #fff;
}

.contacts-card p {
  color: #c8c8c8;
  margin-bottom: 24px;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-big-link {
  color: #111;
  background: #fff;
  padding: 14px 22px;
}

.feedback-link {
  color: #fff;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.62);
}

.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  border: none;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}

.modal-image {
  width: 100%;
  height: 330px;
  object-fit: contain;
  border-radius: 22px;
  background: #f7f7f8;
}

.modal h2 {
  margin: 16px 0;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.modal p {
  margin: 10px 0;
  color: #333;
}

.contact-modal h2,
.feedback-form h2 {
  margin: 0 40px 10px 0;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.contact-modal p,
.feedback-form p {
  margin: 0 0 22px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-option {
  min-height: 52px;
  color: #fff;
  padding: 14px 16px;
}

.contact-option.telegram {
  background: #229ed9;
}

.contact-option.vk {
  background: #0077ff;
}

.contact-option.phone {
  background: #111;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: #333;
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dedede;
  border-radius: 14px;
  font: inherit;
  outline: none;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #111;
}

.feedback-submit {
  min-height: 48px;
  color: #fff;
  background: #111;
  padding: 14px 20px;
}

.feedback-submit:disabled {
  cursor: default;
  opacity: 0.65;
}

.form-status {
  min-height: 20px;
  color: #6e6e73;
  font-size: 14px;
}

.form-status.success {
  color: #168a2f;
}

.form-status.error {
  color: #b00020;
}

.specs {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.spec-row span:first-child {
  color: #6e6e73;
}

.order-btn {
  width: 100%;
  margin-top: 22px;
  color: #fff;
  background: #007aff;
  padding: 14px;
}

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

  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .header-nav {
    display: none;
  }

  .logo img {
    width: 44px;
    height: 44px;
  }

  .logo span {
    font-size: 16px;
  }

  .hero {
    padding: 46px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .catalog-top {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .filters-block {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    min-height: 230px;
  }

  .category-card img {
    height: 165px;
  }

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

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 260px;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .category-cards,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card {
    min-height: 210px;
    border-radius: 22px;
  }

  .category-card img {
    height: 132px;
  }

  .category-card span {
    min-height: 70px;
    padding: 10px;
    font-size: 14px;
  }

  .product-card {
    min-height: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .product-image-wrap {
    height: 138px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .product-card img {
    height: 124px;
  }

  .product-name {
    min-height: 54px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .product-meta,
  .product-status {
    font-size: 12px;
  }

  .product-price-row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .product-price {
    font-size: 17px;
  }

  .section {
    padding: 34px 0;
  }

  .contacts-card {
    padding: 28px;
  }

  .modal-content {
    padding: 22px 16px;
  }
}
