:root {
  --ink: #10191b;
  --muted: #667575;
  --line: #d8e3df;
  --paper: #f7faf8;
  --surface: #ffffff;
  --brand: #105753;
  --brand-dark: #133134;
  --accent: #9a6441;
  --warn: #efe6df;
  --shadow: 0 18px 48px rgba(17, 42, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 250, 248, 0.92);
  border-bottom: 1px solid rgba(216, 227, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.hero-actions,
.catalog-head,
.catalog-meta,
.product-status,
.dialog-body dl div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(4, 18, 23, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.top-actions {
  gap: 10px;
}

.top-actions a,
.button {
  min-height: 42px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.top-actions a {
  color: var(--muted);
}

.top-actions .primary-link,
.button-dark {
  color: #fff;
  background: var(--brand);
}

.button-light {
  color: var(--brand-dark);
  background: #e8f1ee;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.product-card:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background: linear-gradient(115deg, #f8fbf9 0%, #f1f6f3 48%, #ddece7 100%);
}

.hero-copy {
  max-width: 620px;
  animation: rise 520ms ease both;
}

.kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
}

.lead {
  max-width: 560px;
  color: #465756;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
  animation: floatIn 760ms ease both;
}

.hero-visual img {
  position: absolute;
  width: min(430px, 52vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual img:first-child {
  left: 3%;
  top: 34%;
  width: min(260px, 32vw);
  z-index: 2;
  transform: rotate(-5deg);
}

.hero-visual img:nth-child(2) {
  right: 22%;
  top: 0;
  transform: rotate(-3deg);
}

.hero-visual img:nth-child(3) {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 80px;
}

.seo-hubs {
  padding: clamp(36px, 5vw, 70px) clamp(18px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
  max-width: 720px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.hub-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--brand-dark);
  background: #edf5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-grid a:hover {
  transform: translateY(-2px);
  background: #e1eee9;
  border-color: #b8cbc4;
}

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
}

.filters {
  display: grid;
  gap: 8px;
}

.filter-button {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--brand-dark);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.filter-button.active {
  background: #e5f0ec;
  border-color: var(--line);
  font-weight: 800;
}

.notice {
  margin-top: 28px;
  padding: 16px;
  color: #604631;
  background: var(--warn);
  border: 1px solid #e3d1c4;
  border-radius: 8px;
}

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

.notice span {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.catalog-panel {
  min-width: 0;
}

.catalog-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.search {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16, 87, 83, 0.12);
}

.catalog-meta {
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 10px 10px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: #b8cbc4;
  box-shadow: 0 12px 30px rgba(17, 42, 40, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf3f0;
  border-radius: 6px;
}

.product-card h3 {
  min-height: 54px;
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}

.product-status {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.risk-high {
  color: var(--accent);
}

.product-dialog {
  width: min(920px, calc(100vw - 24px));
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(8, 17, 18, 0.42);
  backdrop-filter: blur(5px);
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.dialog-media {
  padding: 18px;
  background: #eef5f2;
}

.dialog-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumbs button {
  min-height: 38px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.thumbs button.active {
  color: #fff;
  background: var(--brand);
}

.dialog-body {
  padding: clamp(24px, 4vw, 44px);
}

.dialog-body h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.dialog-body p {
  color: #445757;
  line-height: 1.55;
}

.dialog-body dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.dialog-body dl div {
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.full {
  width: 100%;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 800;
}

.product-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 88px;
}

.category-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 88px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: min(620px, calc(100svh - 150px));
}

.category-hero h1 {
  max-width: 900px;
}

.category-summary {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--brand-dark);
  background: #e9f2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-summary strong {
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.9;
}

.category-summary span {
  color: #435958;
  font-size: 17px;
  line-height: 1.4;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100svh - 160px);
}

.product-copy {
  max-width: 680px;
}

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

.product-facts div {
  padding: 14px;
  background: #eaf3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-facts span,
.product-facts strong {
  display: block;
}

.product-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-facts strong {
  margin-top: 6px;
  color: var(--brand-dark);
  line-height: 1.25;
}

.product-page-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.product-page-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf3f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 42, 40, 0.08);
}

.seo-info {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  padding: 56px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.seo-info h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list p,
.tag-line {
  color: #445757;
  font-size: 18px;
  line-height: 1.55;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.landing-card {
  display: grid;
  gap: 12px;
  padding: 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  border-color: #b8cbc4;
  box-shadow: 0 12px 30px rgba(17, 42, 40, 0.1);
}

.landing-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf3f0;
  border-radius: 6px;
}

.landing-card span {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-card h3 {
  min-height: 48px;
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.18;
}

.landing-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.landing-card div strong {
  color: var(--brand-dark);
  font-size: 14px;
}

.landing-card div a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

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

.landing-tags a {
  padding: 10px 13px;
  color: var(--brand-dark);
  background: #e9f2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-actions a {
    padding: 10px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

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

  .hero-visual img {
    width: min(315px, 74vw);
  }

  .hero-visual img:first-child {
    left: 0;
    top: 22%;
    right: auto;
    width: min(220px, 42vw);
  }

  .hero-visual img:nth-child(2) {
    right: 18%;
  }

  .hero-visual img:nth-child(3) {
    right: 0;
  }

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

  .section-head {
    display: grid;
    align-items: start;
  }

  .sidebar {
    position: static;
  }

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

  .catalog-head {
    display: grid;
  }

  .product-dialog[open] {
    grid-template-columns: 1fr;
  }

  .product-page {
    padding-top: 24px;
  }

  .product-hero,
  .category-hero,
  .seo-info {
    grid-template-columns: 1fr;
  }

  .product-hero,
  .category-hero {
    min-height: auto;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions a {
    flex: 1 1 auto;
    min-width: 72px;
    padding: 10px 8px;
    text-align: center;
  }

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

  .hub-grid,
  .landing-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card h3 {
    min-height: 64px;
    font-size: 15px;
  }

  .product-status {
    display: grid;
    align-items: start;
  }

  .product-facts,
  .product-page-media {
    grid-template-columns: 1fr;
  }
}
