:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --card: #fffdf9;
  --ink: #161616;
  --muted: #77726a;
  --line: rgba(22, 22, 22, .08);
  --soft: #ebe6dc;
  --black: #171717;
  --red: #b7191e;
  --navy: #25266f;
  --radius: 22px;
  --shadow: 0 16px 42px rgba(0, 0, 0, .055);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 46%, #efeae1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

.page {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 16px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px 18px;
  padding: calc(24px + env(safe-area-inset-top)) 18px 24px;
  background: rgba(246, 244, 239, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark,
.topbar {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  min-width: 0;
  gap: 14px;
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark span {
  min-width: 0;
}

.brand-mark strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark em {
  display: block;
  overflow: hidden;
  max-width: 270px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-pill,
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  white-space: nowrap;
}

.contact-pill {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
p {
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 14px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding-bottom: 28px;
}

.brand-card {
  position: relative;
  display: flex;
  min-height: clamp(122px, 14vh, 128px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 19px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .86);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.brand-card::before {
  position: absolute;
  top: -54px;
  right: -54px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: .52;
}

.brand-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 15px;
  background: rgba(255, 255, 255, .42);
  content: "";
  transform: rotate(9deg);
}

.brand-card.is-active {
  border-color: rgba(22, 22, 22, .24);
  background: #fff;
  box-shadow: 0 14px 28px rgba(46, 38, 28, .075);
  transform: translateY(-1px);
}

.brand-card.is-active .brand-index {
  background: var(--black);
  color: #fff;
}

.brand-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 22, 22, .05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.brand-name {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
  word-break: break-word;
}

.brand-count {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.brand-block {
  margin-top: 14px;
  scroll-margin-top: 120px;
}

.product-title {
  margin-top: 0;
  scroll-margin-top: 120px;
}

.back-home {
  display: flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: -2px 0 16px auto;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 24px rgba(46, 38, 28, .045);
  color: #5f5850;
  font-size: 13px;
  font-weight: 650;
}

.brand-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.brand-block-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-block-header .line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .046);
}

.product-image {
  aspect-ratio: 1 / 1.04;
  background: var(--soft) center / cover;
  filter: saturate(.95) contrast(1.02);
}

.product-info {
  padding: 12px 12px 13px;
  min-height: 62px;
}

.product-brand {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-name {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.25;
}

.footer {
  margin-top: 52px;
  color: var(--muted);
}

.contact-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 34px 22px 30px;
  border: 1px solid rgba(22, 22, 22, .08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(183, 25, 30, .10), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .96) 0%, rgba(250, 247, 241, .94) 58%, rgba(244, 239, 230, .92) 100%);
  box-shadow: 0 18px 40px rgba(46, 38, 28, .08);
  color: var(--muted);
}

.contact-card::after {
  position: absolute;
  right: -62px;
  bottom: -68px;
  width: 196px;
  height: 196px;
  border: 1px solid rgba(37, 38, 111, .08);
  border-radius: 50%;
  content: "";
}

.contact-label {
  display: block;
  margin-bottom: 16px;
  color: #9a8b7d;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.phone-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 22, .10);
  background: rgba(255, 255, 255, .74);
  color: var(--black);
  font-size: 17px;
  font-weight: 760;
}

.secondary-phone {
  background: rgba(246, 242, 235, .78);
  color: #6f6258;
  border: 1px solid rgba(22, 22, 22, .08);
}

address {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(22, 22, 22, .08);
  color: #6f6258;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

@media (min-width: 760px) {
  .page {
    padding-top: 20px;
  }
}
