:root {
  color-scheme: light;
  --bg: #f7f4f2;
  --surface: #ffffff;
  --surface-2: #f1e9e7;
  --ink: #171a1d;
  --muted: #776b69;
  --line: #e2d5d1;
  --accent: #8f1e2d;
  --accent-strong: #6f1723;
  --gold: #c79a46;
  --ok: #247a54;
  --warning: #b56a1d;
  --shadow: 0 16px 42px rgba(23, 26, 29, 0.09);
}

.content-page {
    width: min(100% - 32px, 980px);
    min-height: 55vh;
    margin: 48px auto 64px;
}

.content-page__article {
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content-page__article h1 {
    margin: 8px 0 24px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.content-page__body {
    max-width: 76ch;
    line-height: 1.75;
}

.content-page__body > *:first-child {
    margin-top: 0;
}

.content-page__not-found p {
    max-width: 60ch;
    margin-bottom: 28px;
}

* {
  box-sizing: border-box;
}

body.akuan-theme {
  margin: 0;
  background:
    linear-gradient(180deg, #5c111d 0, #7f1d2c 360px, var(--bg) 361px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.akuan-theme button,
.akuan-theme input,
.akuan-theme select {
  font: inherit;
}

.akuan-theme button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(111, 23, 35, 0.18);
  backdrop-filter: blur(12px);
}

.brand,
.header-actions,
.service-strip,
.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.header-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phone-links,
.footer-phones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-links {
  flex-wrap: nowrap;
}

.footer-phones {
  flex-wrap: wrap;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1014, var(--accent));
  color: #fff;
  font-weight: 900;
}

.brand strong,
.intro-band h1,
.section-heading h2,
.inquiry-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 25px;
}

.eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand .eyebrow {
  color: var(--ink);
}

.shell {
  --shell-pad: clamp(14px, 4vw, 40px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 22px var(--shell-pad) 48px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(46, 10, 16, 0.96), rgba(123, 28, 43, 0.94)),
    #6f1723;
  color: #fff;
  box-shadow: 0 22px 52px rgba(50, 9, 16, 0.24);
}

.intro-band h1 {
  max-width: 760px;
  font-size: 30px;
  line-height: 1.15;
}

.intro-band p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.intro-band .eyebrow {
  color: #f0c66b;
}

.service-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-strip span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.showcase-banner {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--shell-pad) * -1);
  min-height: 340px;
  height: clamp(350px, 40vw, 520px);
  background: #171a1d;
  box-shadow: 0 24px 58px rgba(50, 9, 16, 0.22);
}

.showcase-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(1.22) contrast(1.06);
}

.showcase-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25, 5, 9, 0.04), rgba(25, 5, 9, 0.14)),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.1), rgba(31, 7, 11, 0.08) 62%, rgba(31, 7, 11, 0.24));
}

.catalog-stage {
  margin: 0 calc(var(--shell-pad) * -1);
  padding: 24px var(--shell-pad) 28px;
  background: var(--bg);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 0.8fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.search-field,
.select-field,
.form-grid label {
  display: grid;
  gap: 7px;
}

.akuan-theme label,
.akuan-theme legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.akuan-theme fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.akuan-theme input,
.akuan-theme select {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.radio-row input {
  width: auto;
  min-height: auto;
}

.metric-strip {
  display: flex;
  grid-column: 1 / -1;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  color: var(--muted);
  white-space: nowrap;
}

.metric-strip span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 22px;
  align-items: start;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 26px;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: var(--surface-2);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-topline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.taxonomy-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.category-pill,
.subcategory-pill {
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.category-pill {
  background: var(--surface-2);
  color: #26323a;
}

.subcategory-pill {
  background: #fff4df;
  color: #764b0e;
  border: 1px solid rgba(199, 154, 70, 0.36);
}

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

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

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #30383d;
  font-size: 12px;
  font-weight: 700;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.price {
  flex: 1 1 130px;
  min-width: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stock {
  align-self: start;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  line-height: 1.3;
}

.stock.in-stock {
  background: #e8f5ee;
  color: var(--ok);
}

.stock.order {
  background: #fff2df;
  color: var(--warning);
}

.inquiry-panel,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice-panel {
  margin-bottom: 16px;
  padding: 14px;
}

.notice-panel.success {
  border-color: rgba(36, 122, 84, 0.4);
  background: #e8f5ee;
}

.notice-panel.error {
  border-color: rgba(143, 30, 45, 0.4);
  background: #fff1f1;
}

.notice-panel.warning {
  border-color: rgba(181, 106, 29, 0.45);
  background: #fff7e8;
}

.inquiry-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.panel-header {
  justify-content: space-between;
}

.inquiry-items {
  display: grid;
  gap: 10px;
}

.inquiry-line {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.line-controls {
  display: grid;
  grid-template-columns: 34px 1fr 34px 34px;
  gap: 6px;
  align-items: center;
}

.line-controls span {
  text-align: center;
  font-weight: 900;
}

.summary {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.summary dd {
  margin: 0;
  font-weight: 900;
}

.inquiry-form,
.form-grid {
  display: grid;
  gap: 12px;
}

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

.company-field[hidden] {
  display: none !important;
}

.akuan-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.consent-row a {
  color: var(--accent-strong);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.icon-button,
.primary-button,
.secondary-button,
.text-button,
.small-button,
.contact-link {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.icon-button,
.contact-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--ink);
}

.icon-button strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.primary-button {
  min-height: 44px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #c6aaa8;
}

.secondary-button,
.small-button {
  min-height: 36px;
  padding: 8px 10px;
  background: #22282d;
  color: #fff;
}

.price-row .small-button {
  flex: 0 1 128px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.text-button {
  min-height: 34px;
  padding: 7px 9px;
  background: transparent;
  color: var(--accent-strong);
}

.privacy-note,
.muted,
.empty-state,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  padding: 0;
  background: #171a1d;
  color: #fff;
}

.footer-details {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 42px) 28px;
}

.footer-block {
  min-width: 0;
}

.footer-block h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.footer-kicker {
  margin-bottom: 6px !important;
  color: #f0c66b !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-block address {
  color: #d6ccca;
  font-style: normal;
  line-height: 1.55;
}

.footer-block p + p {
  margin-top: 7px;
}

.footer-phones + p {
  margin-top: 7px;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.opening-hours {
  display: grid;
  gap: 9px;
  margin: 0;
}

.opening-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.opening-hours dt,
.opening-hours dd {
  margin: 0;
}

.opening-hours dt {
  color: #d6ccca;
}

.opening-hours dd {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.footer-copyright {
  width: min(1240px, 100%);
  margin: 0 auto !important;
  padding: 18px clamp(16px, 4vw, 42px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
  .toolbar,
  .catalog-layout,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .service-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .inquiry-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    min-height: 0;
    align-items: center;
    padding: 10px 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand .eyebrow {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .header-actions {
    display: contents;
  }

  .header-actions .icon-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .phone-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-actions .contact-link[href^="mailto:"] {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    justify-self: start;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .header-actions .contact-link,
  .header-actions .icon-button {
    min-height: 36px;
    padding: 6px 8px;
  }

  .brand strong {
    font-size: 21px;
  }

  .intro-band h1,
  .section-heading h2 {
    font-size: 22px;
  }

  .product-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
