* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 26px;
  align-items: center;
  min-height: 86px;
  padding: 12px 56px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.site-header.simple {
  grid-template-columns: auto 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.brand span {
  font-size: 17px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 650;
}

.nav-link:first-child::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-accent);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary,
.header-cta {
  color: #fff;
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(18, 55, 71, 0.18);
}

.button.secondary {
  color: var(--color-primary-dark);
  background: #fff;
  border-color: #b9c8ce;
}

.button.wide {
  width: 100%;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  color: var(--color-primary-dark);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: 58px 32px 52px 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 4.1vw, 58px);
  line-height: 1.06;
  font-weight: 700;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 540px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 750;
}

.mini-icon,
.outline-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #d3dce0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 37%, var(--color-accent) 39%, transparent 43%),
    #fff;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(247, 244, 239, 0.55) 28%),
    radial-gradient(circle at 88% 18%, rgba(35, 92, 116, 0.12), transparent 34%),
    var(--color-surface);
}

.hero-arc {
  position: absolute;
  left: -90px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(35, 92, 116, 0.18);
  border-radius: 50%;
}

.hero-arc::after {
  position: absolute;
  inset: 38px;
  content: "";
  border: 1px solid rgba(35, 92, 116, 0.11);
  border-radius: 50%;
}

.hero-slider {
  position: relative;
  z-index: 1;
  width: min(620px, 82%);
  height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  max-width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(22, 49, 60, 0.18));
}

.hero-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--color-primary-dark);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}


.brand-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 32px;
  padding: 22px 56px;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
}

.brand-strip > p {
  margin: 0;
  color: #6f7d82;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.brand-strip > div {
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 210px;
  min-height: 70px;
  padding: 7px 30px;
  border-left: 1px solid var(--color-line);
}

.brand-mark strong {
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
}

.brand-mark span {
  color: var(--color-muted);
  font-size: 13px;
}

.partner-logo {
  max-width: 190px;
  max-height: 52px;
  object-fit: contain;
}


.catalog-section,
.why-process,
.contact-section {
  padding: 42px 40px 0;
}

.section-heading {
  max-width: 1140px;
  margin: 0 auto 18px;
}

.section-heading h2,
.contact-info h2,
.policy-content h1 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
}

.section-heading p,
.contact-info p {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
}

.section-heading.compact {
  margin: 0 0 20px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 292px minmax(460px, 1fr) 330px;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.category-panel,
.product-panel,
.detail-panel,
.contact-info,
.contact-form {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.category-panel {
  overflow: hidden;
}

.category-button {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--color-primary-dark);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  cursor: pointer;
}

.category-button span {
  align-self: center;
  font-weight: 750;
}

.category-button small {
  align-self: center;
  color: var(--color-muted);
  font-weight: 800;
}

.category-button.is-active {
  background: #eef6f7;
}

.product-panel {
  padding: 18px;
}

.product-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 15px;
}

.product-panel-head h3 {
  margin: 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.product-panel-head span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-rows: 104px auto auto;
  gap: 8px;
  min-height: 178px;
  padding: 10px 8px 12px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  cursor: pointer;
}

.product-card[hidden] {
  display: none;
}

.product-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(35, 92, 116, 0.09);
}

.product-image-wrap {
  display: grid;
  place-items: center;
  min-height: 104px;
}

.product-image-wrap img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.product-brand {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 750;
}

.product-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.catalog-note {
  margin: 14px 0 0;
  padding: 10px 13px;
  color: var(--color-muted);
  background: #f7fafb;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: 13px;
}

.detail-panel {
  position: sticky;
  top: 104px;
  padding: 24px 22px;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: var(--color-primary-dark);
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.detail-hero {
  display: grid;
  place-items: center;
  min-height: 164px;
  margin-right: 24px;
}

.detail-hero img {
  max-height: 174px;
  object-fit: contain;
}

.detail-brand {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-weight: 800;
}

.detail-panel h3 {
  margin: 4px 0 14px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.detail-panel dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.detail-panel dt {
  color: var(--color-muted);
  font-size: 13px;
}

.detail-panel dd {
  margin: 0;
  font-weight: 750;
}

.detail-panel p {
  color: #445962;
  font-size: 14px;
}

.detail-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: #445962;
  font-size: 13px;
}

.detail-list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.why-process {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 34px;
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.why-card {
  min-height: 150px;
  padding: 18px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.why-card h3,
.process-step h3 {
  margin: 12px 0 6px;
  color: var(--color-primary-dark);
  font-size: 15px;
}

.why-card p,
.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step:not(:last-child)::after {
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 1px;
  content: "";
  background: repeating-linear-gradient(90deg, #cbd5d9 0 5px, transparent 5px 10px);
}

.process-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 34px auto 0;
  padding-bottom: 42px;
}

.contact-info {
  padding: 22px;
}

.contact-info ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  list-style: none;
}

.contact-info li {
  display: grid;
  gap: 2px;
  color: var(--color-primary-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-info span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}

.contact-info a,
.privacy-check a,
.cookie-banner a {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.field,
.product-choice,
.privacy-check {
  display: grid;
  gap: 7px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.field.wide,
.product-choice,
.privacy-check,
.form-status.wide {
  grid-column: span 2;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  outline: none;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(35, 92, 116, 0.08);
}

.product-choice {
  margin: 0;
  padding: 0;
  border: 0;
}

.product-choice legend {
  margin-bottom: 7px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 112px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.choice-grid label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  color: var(--color-primary-dark);
  background: #eef4f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.privacy-check {
  display: flex;
  align-items: start;
  gap: 9px;
  color: var(--color-muted);
  font-weight: 650;
}

.submit-button {
  grid-column: 4;
}

.form-status {
  min-height: 22px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 750;
}

.form-status.is-error {
  color: #9b2c2c;
}

.honeypot {
  position: absolute;
  left: -5000px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px 56px;
  color: #dce8eb;
  background: var(--color-primary-dark);
}

.site-footer p {
  margin: 0;
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-footer small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(720px, calc(100vw - 48px));
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(22, 49, 60, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.has-cookie-preferences .cookie-banner {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.cookie-banner p {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.cookie-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-options label {
  color: var(--color-primary-dark);
  font-weight: 750;
}

.cookie-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.policy-page {
  background: var(--color-surface);
}

.policy-content {
  width: min(820px, calc(100vw - 40px));
  margin: 42px auto;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.policy-content p {
  color: #405760;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--color-primary);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .site-header {
    padding: 12px 26px;
    gap: 18px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 54px 36px 24px;
  }

  .catalog-layout {
    grid-template-columns: 250px 1fr;
  }

  .detail-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .why-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open .desktop-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 4px;
  }

  .hero-copy {
    padding: 42px 22px 18px;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-slider {
    height: 320px;
  }

  .hero-slide img {
    max-height: 285px;
  }

  .brand-strip {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .brand-strip > p {
    text-align: left;
  }

  .brand-strip > div {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-mark {
    border-left: 0;
    border-top: 1px solid var(--color-line);
    padding: 12px 0;
  }

  .catalog-section,
  .why-process,
  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .catalog-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .category-panel {
    display: flex;
    overflow-x: auto;
  }

  .category-button {
    min-width: 220px;
    border-right: 1px solid var(--color-line);
  }

  .why-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field.wide,
  .product-choice,
  .privacy-check,
  .form-status.wide,
  .submit-button {
    grid-column: 1;
  }

  .site-footer,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 28px 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  padding: 10px 18px 10px 0;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  position: absolute;
  top: 17px;
  right: 2px;
  width: 6px;
  height: 6px;
  content: "";
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.nav-dropdown[open] summary::after {
  top: 20px;
  transform: rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 55, 71, 0.14);
  transform: translateX(-50%);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #eef6f7;
}

.sector-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.sector-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--color-line);
  cursor: pointer;
}

.sector-button:last-child {
  border-right: 0;
}

.sector-button span {
  font-weight: 800;
}

.sector-button small {
  color: var(--color-muted);
  font-weight: 800;
}

.sector-button.is-active {
  color: #fff;
  background: var(--color-primary-dark);
}

.sector-button.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.category-button[hidden],
.used-card[hidden] {
  display: none;
}

.used-page {
  min-height: calc(100vh - 180px);
  background: #f6f8f8;
}

.used-intro {
  padding: 68px max(28px, calc((100vw - 1280px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.used-intro h1 {
  max-width: 700px;
  margin: 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.08;
}

.used-intro > p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 26px;
  color: var(--color-muted);
  font-size: 18px;
}

.used-catalog {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.used-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.used-toolbar h2 {
  margin: 2px 0 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.used-toolbar > p {
  margin: 0;
  color: var(--color-muted);
}

.used-filters {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  overflow-x: auto;
}

.used-filter {
  min-height: 42px;
  padding: 0 17px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.used-filter.is-active {
  color: #fff;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

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

.used-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.used-card-image {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f9fbfb;
  border-bottom: 1px solid var(--color-line);
}

.used-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.used-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.used-card-body h2 {
  margin: 3px 0 8px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.used-card-body > p:not(.used-category):not(.used-brand) {
  flex: 1;
  color: #405760;
}

.used-category,
.admin-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.used-brand {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

.used-empty {
  grid-column: 1 / -1;
  padding: 54px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.used-empty h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.used-empty p {
  margin: 10px auto 20px;
  color: var(--color-muted);
}

.auth-page {
  min-height: 100vh;
  background: #f3f6f6;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 36px 20px;
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: 34px;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(18, 55, 71, 0.12);
}

.auth-panel h1 {
  margin: 4px 0 8px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.auth-panel > p:not(.admin-kicker):not(.login-error) {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.auth-panel form,
.admin-form {
  display: grid;
  gap: 16px;
}

.auth-panel label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 750;
}

.auth-panel input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-user-row input,
.admin-user-row select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #cfdadd;
  border-radius: 6px;
}

.auth-panel input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(35, 92, 116, 0.2);
  border-color: var(--color-primary);
}

.auth-back {
  display: block;
  margin-top: 20px;
  color: var(--color-primary);
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.login-error,
.admin-flash {
  padding: 11px 13px;
  color: #842a2a;
  background: #fff2f1;
  border: 1px solid #e9b9b5;
  border-radius: 6px;
}

.admin-page {
  min-width: 320px;
  background: #f4f7f7;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 9px 28px;
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.admin-topbar .brand img {
  width: 50px;
  height: 50px;
}

.admin-identity {
  display: grid;
  text-align: right;
}

.admin-identity span {
  color: var(--color-muted);
  font-size: 12px;
  text-transform: capitalize;
}

.compact-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  height: calc(100vh - 76px);
  padding: 26px 18px;
  background: var(--color-primary-dark);
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-sidebar a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  width: min(1380px, 100%);
  padding: 28px;
}

.admin-flash {
  margin: 0 0 18px;
}

.admin-flash.success {
  color: #155c3d;
  background: #eef9f2;
  border-color: #aad8bd;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-overview > div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.admin-overview p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-overview strong {
  display: block;
  margin-top: 5px;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.admin-panel {
  margin-bottom: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

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

.admin-section-head h1,
.admin-section-head h2,
.admin-form-heading h2 {
  margin: 2px 0 0;
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(460px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.product-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
  background: #f7f9f9;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.admin-form-heading,
.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-form-heading p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form label > small,
.upload-field > span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
}

.upload-field input[type="file"] {
  padding: 8px;
  background: #fff;
}

.current-upload {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.current-upload img {
  width: 82px;
  height: 64px;
  object-fit: contain;
}

.current-upload span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.publish-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.publish-toggle input {
  width: 18px;
  min-height: 18px;
}

.admin-form-actions,
.admin-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-product-list,
.admin-user-list {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--color-line);
}

.admin-product-row:last-child,
.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-product-row > img {
  width: 90px;
  height: 72px;
  object-fit: contain;
  background: #f7f9f9;
  border-radius: 5px;
}

.admin-product-row h3 {
  margin: 4px 0 2px;
  color: var(--color-primary-dark);
  font-size: 15px;
}

.admin-product-row p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  padding: 2px 7px;
  color: #745c16;
  background: #fff8dd;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill.is-live {
  color: #155c3d;
  background: #e9f7ef;
}

.danger-button {
  min-height: 36px;
  padding: 0 11px;
  color: #9d2f2f;
  background: #fff;
  border: 1px solid #e1b7b7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.danger-button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-create-form {
  grid-template-columns: 1.4fr 1fr 160px auto;
  align-items: end;
  margin-bottom: 18px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 0.9fr) minmax(260px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--color-line);
}

.admin-user-row > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
}

.admin-user-row small {
  grid-column: 2;
  color: var(--color-muted);
  text-transform: capitalize;
}

.admin-user-row form {
  display: flex;
  gap: 7px;
  align-items: center;
}

.admin-user-row input,
.admin-user-row select {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: #a9b2b5;
  border-radius: 50%;
}

.status-dot.is-active {
  background: #2c9a68;
}

.audit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.audit-list li {
  display: grid;
  grid-template-columns: 145px minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 12px;
}

.audit-list time,
.audit-list span {
  color: var(--color-muted);
}

.admin-empty {
  padding: 34px 18px;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .used-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-products-layout {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header.is-open .nav-dropdown summary {
    padding: 10px 20px 10px 0;
  }

  .site-header.is-open .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
    transform: none;
  }

  .sector-tabs {
    display: flex;
    overflow-x: auto;
  }

  .sector-button {
    min-width: 210px;
  }

  .used-intro {
    padding: 48px 22px;
  }

  .used-intro h1 {
    font-size: 38px;
  }

  .used-catalog {
    width: calc(100vw - 36px);
  }

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

  .admin-topbar {
    grid-template-columns: 1fr auto;
    padding: 9px 16px;
  }

  .admin-topbar > .button,
  .admin-identity {
    display: none;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: block;
    height: auto;
    padding: 8px 14px;
    overflow-x: auto;
  }

  .admin-sidebar nav {
    display: flex;
  }

  .admin-sidebar > a {
    display: none;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-overview,
  .product-admin-form,
  .user-create-form,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-field-wide,
  .admin-form-heading {
    grid-column: 1;
  }

  .admin-product-row {
    grid-template-columns: 72px 1fr;
  }

  .admin-product-row > img {
    width: 72px;
    height: 62px;
  }

  .admin-product-row > .admin-row-actions {
    grid-column: 1 / -1;
  }

  .audit-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .auth-brand {
    position: static;
    margin-bottom: 24px;
  }

  .auth-shell {
    align-content: center;
  }
}

@media (max-width: 540px) {
  .used-toolbar {
    display: block;
  }

  .used-toolbar > p {
    margin-top: 8px;
  }

  .used-card {
    grid-template-rows: 220px 1fr;
  }

  .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .auth-panel {
    padding: 18px;
  }

  .admin-topbar .brand span {
    display: none;
  }
}
