:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --white: #fff;
  --navy: #062d4d;
  --muted: #737e88;
  --yellow: #ffbf00;
  --line: #e1e5e6;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #ffe38b; color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; border-radius: 4px; }
.content-width { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: var(--white); }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 108px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-shrink: 0; width: 164px; }
.brand img { width: 100%; height: auto; }
.site-header nav { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 550; }
.site-header nav a { padding-block: 12px; transition: color .16s ease; }
.site-header nav a:hover { color: #8e6b00; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding-block: 44px 48px; }
h1 { max-width: 790px; margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.052em; font-weight: 650; text-wrap: balance; }
.title-dot { color: var(--yellow); }
.catalog-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex-shrink: 0; min-height: 48px; padding: 11px 18px; border-radius: 12px; background: var(--yellow); color: var(--navy); font-size: 14px; font-weight: 650; transition: background .16s ease, transform .16s ease; }
.catalog-link:hover { background: #ffd042; transform: translateY(-2px); }
.catalog-link span { font-size: 22px; line-height: 1; }

.catalog { padding-bottom: 12px; }
.catalog-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.catalog-heading { display: flex; align-items: baseline; gap: 14px; }
h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.catalog-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.catalog-count:empty { display: none; }
.filters { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f0f2ef; }
.filter { min-height: 36px; padding: 7px 15px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer; transition: background .16s ease, color .16s ease; }
.filter:hover { background: #e3e9e9; }
.filter.is-active { color: var(--white); background: var(--navy); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
.product-card { min-width: 0; display: flex; flex-direction: column; }
.product-visual { overflow: hidden; border: 1px solid #e0e3e5; border-radius: 14px; background: #f1f1eb; }
.product-visual img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; transition: transform .24s ease; }
.product-card:hover .product-visual img { transform: scale(1.015); }
.product-info { display: flex; flex: 1; flex-direction: column; padding-top: 15px; }
.product-kind { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.4; letter-spacing: .035em; }
.product-info h3 { margin: 0 0 15px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.027em; }
.marketplace-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.marketplace-link { display: inline-flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 9px 13px; border: 1px solid #d9e0e5; border-radius: 9px; background: var(--white); font-size: 12px; font-weight: 600; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.marketplace-label-short { display: none; }
.marketplace-link .link-arrow { font-size: 17px; line-height: 1; }
.marketplace-link.wb:hover { border-color: #a72bc3; background: #fbf3ff; color: #8c229e; }
.marketplace-link.ozon:hover { border-color: #005bff; background: #f1f5ff; color: #005bff; }
.empty-state { padding: 36px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-top: 48px; padding-block: 30px 34px; border-top: 1px solid var(--line); }
.footer-label { margin: 0 0 5px; font-size: 12px; color: var(--muted); }
.email-link { display: inline-flex; gap: 18px; align-items: center; font-size: 21px; letter-spacing: -.02em; }
.email-link:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.copyright { margin: 0; font-size: 12px; color: var(--muted); }

@media (max-width: 899px) {
  .content-width { width: calc(100% - 40px); }
  .site-header { min-height: 92px; }
  .brand { width: 150px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 32px 36px; }
  h1 { max-width: 660px; font-size: clamp(38px, 6.2vw, 54px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (max-width: 559px) {
  .site-header { min-height: 82px; }
  .brand { width: 132px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .intro { gap: 20px; padding-block: 28px 32px; }
  h1 { max-width: 410px; font-size: 39px; line-height: 1.08; }
  .catalog-link { min-height: 44px; padding: 10px 15px; font-size: 13px; }
  .catalog-header { gap: 14px; margin-bottom: 18px; }
  .catalog-heading { width: 100%; gap: 12px; }
  h2 { font-size: 23px; }
  .catalog-count { font-size: 12px; }
  .filters { padding: 3px; }
  .filter { min-height: 34px; padding-inline: 14px; font-size: 12px; }
  .product-grid { gap: 26px 14px; }
  .product-visual { border-radius: 10px; }
  .product-info { padding-top: 11px; }
  .product-kind { min-height: 30px; margin-bottom: 3px; font-size: 10px; }
  .product-info h3 { min-height: 40px; margin-bottom: 11px; font-size: 16px; }
  .marketplace-links { gap: 6px; }
  .marketplace-link { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 9px; gap: 7px; font-size: 11px; }
  .marketplace-label-full { display: none; }
  .marketplace-label-short { display: inline; }
  .marketplace-link .link-arrow { font-size: 15px; }
  .site-footer { margin-top: 32px; padding-block: 24px; }
  .email-link { font-size: 20px; }
}

@media (max-width: 359px) {
  .content-width { width: calc(100% - 32px); }
  .site-header nav { gap: 12px; font-size: 11px; }
  .brand { width: 122px; }
  h1 { font-size: 36px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-kind, .product-info h3 { min-height: 0; }
  .product-info h3 { font-size: 21px; }
  .marketplace-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
