:root {
  color-scheme: light;
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-strong: #fff0f6;
  --ink: #241821;
  --muted: #7e6675;
  --soft: #f7dbe8;
  --line: rgba(78, 44, 65, 0.14);
  --rose: #ff6fae;
  --rose-dark: #cb3d7e;
  --gold: #facc15;
  --mint: #9ee6d1;
  --lavender: #bda7ff;
  --shadow: 0 22px 58px rgba(184, 82, 130, 0.18);
  --shadow-soft: 0 14px 34px rgba(121, 62, 91, 0.11);
  --radius-card: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff7fb 0%, #fffafd 36%, #f6fbff 100%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 111, 174, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 111, 174, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 251, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, var(--rose), var(--gold));
  color: #35111f;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 111, 174, 0.26);
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  line-height: 1;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.item-counter,
.language-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(107, 61, 84, 0.08);
}

.item-counter {
  gap: 6px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.item-counter span:first-child {
  color: var(--ink);
}

.language-switch {
  padding: 4px;
  gap: 4px;
}

.language-button {
  width: 42px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

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

.showcase {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(255, 111, 174, 0.2), rgba(250, 204, 21, 0.14) 52%, rgba(158, 230, 209, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 253, 0.9));
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.58) 50%, transparent 100%);
}

.showcase-inner {
  position: relative;
  z-index: 2;
  padding: 70px 0 62px;
}

.showcase-copy {
  width: min(740px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase h1 {
  margin: 0;
  color: var(--ink);
  font-size: 5rem;
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.showcase-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: #594252;
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 650;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.showcase-meta span,
.quick-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 111, 174, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #5e344c;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(164, 78, 117, 0.09);
}

.floating-preview {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22)),
    linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: var(--shadow);
}

.floating-preview::before,
.floating-preview::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.floating-preview::before {
  width: 38%;
  height: 38%;
  left: 17%;
  top: 18%;
}

.floating-preview::after {
  width: 54%;
  height: 16%;
  right: 14%;
  bottom: 22%;
}

.preview-one {
  width: 210px;
  height: 250px;
  right: 12%;
  top: 74px;
  transform: rotate(7deg);
}

.preview-two {
  width: 164px;
  height: 196px;
  right: 28%;
  bottom: 44px;
  transform: rotate(-9deg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.26)),
    linear-gradient(135deg, var(--lavender), var(--mint));
}

.preview-three {
  width: 116px;
  height: 116px;
  right: 5%;
  bottom: 92px;
  border-radius: 999px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, var(--gold), var(--rose));
}

.catalog {
  padding: 46px 0 72px;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.catalog h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.catalog-count span:first-child {
  color: var(--ink);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(180px, 0.8fr) minmax(210px, 0.8fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 16px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(107, 61, 84, 0.06);
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 111, 174, 0.66);
  box-shadow: 0 0 0 4px rgba(255, 111, 174, 0.13);
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.quick-filter {
  min-height: 36px;
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.quick-filter:hover {
  transform: translateY(-2px);
}

.quick-filter.is-active {
  background: var(--ink);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(116, 64, 90, 0.14);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 111, 174, 0.42);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #513047;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.product-body {
  min-height: 202px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.product-title {
  min-height: 3.2em;
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price {
  display: grid;
  gap: 2px;
}

.price strong {
  font-size: 1.38rem;
  line-height: 1;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.buy-button {
  min-width: 108px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(36, 24, 33, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.buy-button:hover {
  transform: translateY(-2px);
  background: var(--rose-dark);
}

.telegram-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.empty-state {
  margin-top: 34px;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--ink);
}

.footer-link {
  color: var(--rose-dark);
  font-weight: 950;
}

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

  .preview-one {
    right: 5%;
  }

  .preview-two,
  .preview-three {
    opacity: 0.72;
  }
}

@media (max-width: 860px) {
  .showcase {
    min-height: 360px;
  }

  .showcase h1 {
    font-size: 3.9rem;
  }

  .showcase-text {
    font-size: 1.05rem;
  }

  .floating-preview {
    opacity: 0.42;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 24px, var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .item-counter {
    padding: 0 11px;
  }

  .item-counter span:last-child {
    display: none;
  }

  .language-button {
    width: 37px;
  }

  .showcase-inner {
    padding: 52px 0 48px;
  }

  .showcase h1 {
    font-size: 3rem;
  }

  .showcase-meta {
    gap: 8px;
  }

  .showcase-meta span {
    min-height: 34px;
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .catalog {
    padding-top: 34px;
  }

  .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .catalog h2 {
    font-size: 1.72rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
    padding: 12px 0;
    background: transparent;
  }

  .search-field {
    grid-column: auto;
  }

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

  .product-body {
    min-height: 178px;
  }

  .product-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .buy-button {
    width: 100%;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
