:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #626b75;
  --line: #dce3e7;
  --paper: #f8faf9;
  --white: #ffffff;
  --jade: #1f766d;
  --jade-dark: #15564f;
  --clay: #b65f3c;
  --gold: #c89d45;
  --mist: #e7f0ef;
  --shadow: 0 18px 50px rgba(32, 36, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 118, 109, 0.4);
  border-radius: 50%;
  background: var(--white);
  color: var(--jade-dark);
  font-weight: 700;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-button,
.primary-action,
.secondary-action,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 16px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.nav-button,
.primary-action {
  background: var(--jade);
  color: var(--white);
}

.secondary-action,
.ghost-button {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(231, 240, 239, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 30% 20%, rgba(200, 157, 69, 0.22), transparent 30%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plate,
.cup,
.vase,
.bath-set {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(32, 36, 42, 0.08);
  box-shadow: 0 22px 42px rgba(32, 36, 42, 0.16);
}

.plate {
  border-radius: 50%;
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.plate::before {
  inset: 10%;
  border: 10px solid rgba(200, 157, 69, 0.42);
}

.plate::after {
  inset: 29%;
  border: 1px solid rgba(31, 118, 109, 0.26);
}

.plate-large {
  width: 310px;
  height: 310px;
  left: 48px;
  top: 72px;
}

.cup {
  width: 150px;
  height: 112px;
  right: 56px;
  top: 144px;
  border-radius: 12px 12px 48px 48px;
}

.cup::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  right: -35px;
  top: 22px;
  border: 12px solid var(--white);
  border-left: 0;
  border-radius: 0 50% 50% 0;
  box-shadow: 8px 10px 20px rgba(32, 36, 42, 0.08);
}

.cup::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 10px;
  border-radius: 20px;
  background: rgba(31, 118, 109, 0.18);
}

.vase {
  width: 116px;
  height: 210px;
  left: 88px;
  bottom: 54px;
  border-radius: 38px 38px 22px 22px;
  background:
    linear-gradient(90deg, transparent 28%, rgba(200, 157, 69, 0.28) 28% 34%, transparent 34% 64%, rgba(182, 95, 60, 0.18) 64% 70%, transparent 70%),
    var(--white);
}

.bath-set {
  width: 210px;
  height: 120px;
  right: 50px;
  bottom: 70px;
  border-radius: 10px;
}

.bath-set::before,
.bath-set::after {
  content: "";
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(32, 36, 42, 0.08);
}

.bath-set::before {
  width: 54px;
  height: 150px;
  left: 18px;
  bottom: 0;
  border-radius: 18px 18px 8px 8px;
}

.bath-set::after {
  width: 86px;
  height: 86px;
  right: 22px;
  bottom: 18px;
  border-radius: 50%;
}

.catalog-section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.catalog-section {
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
}

.brand-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-tile {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  padding: 18px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.brand-tile:hover,
.brand-tile:focus-visible {
  border-color: rgba(31, 118, 109, 0.58);
  box-shadow: 0 14px 32px rgba(32, 36, 42, 0.09);
  outline: none;
}

.brand-tile.is-active {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 118, 109, 0.13);
}

.brand-tile-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-tile-name {
  min-height: 28px;
  margin-top: 18px;
  border-bottom: 1px solid rgba(32, 36, 42, 0.22);
}

.brand-tile-count {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 220px 220px minmax(240px, 1fr);
  gap: 14px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 118, 109, 0.12);
}

.catalog-meta {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, var(--media-a), var(--media-b));
  overflow: hidden;
}

.image-media {
  padding: 10px;
  background: #f4f7f6;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-visual {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--white);
  border: 10px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(32, 36, 42, 0.16);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 8px solid rgba(200, 157, 69, 0.48);
}

.product-visual::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 66px;
  right: -42px;
  bottom: 2px;
  border-radius: 8px 8px 26px 26px;
  background: var(--white);
  box-shadow: 0 14px 24px rgba(32, 36, 42, 0.14);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--mist);
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-specs {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.product-specs strong {
  color: var(--ink);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions button,
.card-actions a {
  flex: 1;
}

.detail-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--ink);
  margin-bottom: 6px;
}

.product-dialog {
  width: min(760px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(20, 24, 28, 0.48);
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 0;
}

.dialog-layout .product-media {
  min-height: 100%;
  aspect-ratio: auto;
}

.dialog-body {
  padding: 34px;
}

.dialog-body h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.dialog-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.dialog-table th,
.dialog-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dialog-table th {
  width: 34%;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 420px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions a:not(.nav-button) {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 34px 0;
  }

  h1 {
    font-size: 40px;
  }

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

  .hero-showcase {
    min-height: 330px;
  }

  .plate-large {
    width: 210px;
    height: 210px;
    left: 22px;
    top: 46px;
  }

  .cup {
    width: 112px;
    height: 84px;
    right: 36px;
    top: 92px;
  }

  .vase {
    width: 82px;
    height: 146px;
    left: 42px;
    bottom: 34px;
  }

  .bath-set {
    width: 150px;
    height: 88px;
    right: 28px;
    bottom: 36px;
  }

  .brand-grid,
  .filter-bar,
  .product-grid,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

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

  .catalog-section {
    padding: 58px 0;
  }

  .catalog-meta,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-layout .product-media {
    min-height: 260px;
  }
}
