:root {
  --ink: #172326;
  --muted: #5b686c;
  --line: #d9e1e1;
  --paper: #f6f8f7;
  --white: #ffffff;
  --lead: #536368;
  --steel: #2f5f66;
  --accent: #b9d36b;
  --warning: #a8523a;
  --shadow: 0 18px 50px rgba(23, 35, 38, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(246, 248, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--steel);
  border-radius: 6px;
  font-weight: 700;
}

.brand small,
.product-card span,
.eyebrow,
.note,
.spec-list span {
  color: var(--muted);
}

.brand small {
  display: block;
  font-size: 12px;
}

nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}

nav a,
.phone,
.header-email,
.table-link,
.product-card a,
.footer a {
  text-decoration: none;
  font-weight: 700;
}

.phone {
  color: var(--steel);
}

.header-contact {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: max-content;
  line-height: 1.2;
}

.header-email {
  color: var(--muted);
  font-size: 13px;
}

.header-email:hover,
.phone:hover {
  color: var(--steel);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: end;
}

.truck-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 50px;
  overflow: hidden;
  border: 1px solid rgba(47, 95, 102, 0.24);
  border-radius: 14px;
  background: var(--white);
  color: var(--steel);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.truck-cart:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 95, 102, 0.38);
  background: #f5fbfa;
}

.truck-cart-icon {
  width: 66px;
  height: 33px;
  object-fit: contain;
}

.truck-cart.has-cargo {
  background: #eef8f4;
  border-color: #8fc6ad;
}

.city-switcher {
  position: relative;
}

.city-switcher summary {
  display: grid;
  gap: 1px;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.city-switcher summary::-webkit-details-marker {
  display: none;
}

.city-switcher summary span {
  color: var(--muted);
  font-size: 12px;
}

.city-switcher summary strong {
  color: var(--steel);
  font-size: 15px;
}

.city-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(820px, calc(100vw - 36px));
  max-height: 72vh;
  overflow: auto;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.city-menu-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.city-menu-head span {
  color: var(--muted);
}

.city-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.city-menu-link {
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.city-menu-link:hover,
.city-menu-link.active {
  color: var(--white);
  background: var(--steel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 1fr);
  min-height: 650px;
  overflow: hidden;
  background: var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 86px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.product-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 20px;
}

.hero-media {
  min-height: 650px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: var(--accent);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.button.ghost {
  color: var(--steel);
  background: var(--white);
  border-color: var(--line);
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro,
.catalog,
.calculator,
.delivery,
.seo-page,
.seo-text,
.page-head,
.grade-seo-text,
.product-detail,
.two-col {
  padding: 70px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 38px;
}

h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.spec-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list span,
.check-list li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.filter,
.calc-panel label,
.request-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

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

.request-form .consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.request-form .consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.request-form .consent-field a {
  color: var(--steel);
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.company-name-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-lookup-name {
  display: block;
  margin-top: 8px;
  padding: 9px 11px;
  overflow: hidden;
  color: var(--green);
  background: #eef8f4;
  border: 1px solid #cfe8de;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.catalog table {
  min-width: 1180px;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.catalog th:nth-child(4),
.catalog th:nth-child(5),
.catalog th:nth-child(6),
.catalog th:nth-child(7) {
  white-space: nowrap;
}

.catalog th:nth-child(1),
.catalog td:nth-child(1) {
  width: 33%;
}

.catalog th:nth-child(4),
.catalog td:nth-child(4) {
  min-width: 132px;
}

.catalog th:nth-child(5),
.catalog td:nth-child(5) {
  min-width: 150px;
}

.catalog th:nth-child(6),
.catalog td:nth-child(6) {
  min-width: 138px;
}

.catalog th:nth-child(7),
.catalog td:nth-child(7) {
  min-width: 150px;
}

.catalog th:nth-child(8),
.catalog td:nth-child(8) {
  min-width: 148px;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

tbody tr {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

tbody tr:hover td {
  background: #eef6f5;
}

tbody tr:hover td:first-child {
  box-shadow: inset 4px 0 0 var(--steel);
}

tbody tr.is-in-cart td {
  background: #eef8f4;
}

tbody tr.is-in-cart td:first-child {
  box-shadow: inset 4px 0 0 #2f7d5b;
}

tr[hidden] {
  display: none;
}

.table-actions,
.product-card-actions,
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.add-cart {
  cursor: pointer;
}

.catalog-qty {
  display: grid;
  grid-template-columns: 30px 54px 30px;
  gap: 4px;
  align-items: center;
  width: 122px;
}

.catalog-qty button,
.catalog-qty input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-weight: 700;
}

.catalog-qty button {
  cursor: pointer;
}

.catalog-qty input {
  padding: 6px;
  text-align: center;
}

.catalog th:nth-child(7),
.catalog td:nth-child(7),
.catalog-line-weight {
  white-space: nowrap;
}

.catalog-line-weight {
  display: inline-block;
  color: var(--steel);
}

.add-cart.is-added {
  background: #dff1e7;
  border-color: #b7d8c7;
  color: #1d6544;
}

.catalog .table-actions {
  justify-content: flex-end;
}

.catalog .add-cart {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 132px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  line-height: 1.15;
}

.catalog .add-cart small {
  margin: 0;
  color: #314046;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog .add-cart.is-added {
  background: #dff1e7;
  border-color: #9bc9af;
  color: #1d6544;
}

.catalog .add-cart.is-added small {
  color: #1d6544;
}

.cart-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 70px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-checkout .cart-panel {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cart-checkout-products {
  min-width: 0;
}

.cart-checkout .cart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.cart-checkout .cart-summary span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.cart-checkout .request-form {
  padding: 0 0 0 28px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.cart-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--steel);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 182px 90px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item small {
  margin-top: 4px;
  color: var(--muted);
}

.cart-qty {
  display: grid;
  grid-template-columns: 36px 64px 36px 30px;
  gap: 6px;
  align-items: center;
}

.cart-qty span {
  color: var(--muted);
  font-size: 14px;
}

.cart-qty button,
.cart-remove {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty input {
  min-height: 38px;
  padding: 8px;
  text-align: center;
}

.cart-summary {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-summary span {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: baseline;
}

.cart-summary strong {
  white-space: nowrap;
}

.cart-actions {
  grid-column: 1 / -1;
}

.delivery-calculator {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.delivery-calculator-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.delivery-calculator-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.vozovoz-logo {
  width: 58px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-calculator-head h3 {
  margin: 0;
  font-size: 22px;
}

.delivery-calculator-head > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.delivery-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.delivery-calc-button {
  justify-self: start;
}

.delivery-result {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.delivery-result.is-ready {
  color: #21433b;
  background: #eef8f4;
  border-color: #cfe8de;
}

.delivery-result.is-error {
  color: #7a2d2d;
  background: #fff1f1;
  border-color: #f0c6c6;
}

.delivery-result small {
  color: var(--muted);
}

.cart-variants-head {
  padding-bottom: 24px;
}

.cart-variants {
  display: grid;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 80px;
}

.cart-variant {
  position: relative;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.variant-label {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.variant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.62fr);
  gap: 28px;
  align-items: start;
}

.variant-topline,
.warehouse-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.cart-variant h2,
.cart-variant h3 {
  margin: 0;
}

.variant-item,
.warehouse-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.variant-item strong,
.variant-item small {
  display: block;
}

.variant-item small,
.warehouse-product small,
.warehouse-total span,
.warehouse-delivery span {
  color: var(--muted);
}

.variant-qty {
  display: inline-grid;
  grid-template-columns: 36px 64px 36px 28px;
  gap: 6px;
  align-items: center;
}

.variant-qty button,
.variant-qty span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--steel);
  font-weight: 700;
}

.variant-qty em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.variant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.variant-summary span {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.variant-summary strong,
.warehouse-total strong {
  white-space: nowrap;
}

.clean-summary span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.variant-form {
  display: grid;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.variant-form input,
.warehouse-fields input,
.step-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.variant-warehouse {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.warehouse-head {
  padding-right: 96px;
}

.warehouse-total {
  display: grid;
  justify-items: end;
  min-width: max-content;
}

.warehouse-total strong {
  color: var(--steel);
  font-size: 24px;
}

.warehouse-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.warehouse-code {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--steel);
  border-radius: 6px;
  font-weight: 700;
}

.warehouse-bottom {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.warehouse-delivery {
  display: flex;
  gap: 12px;
  align-items: center;
}

.warehouse-delivery img,
.steps-delivery img {
  width: 58px;
  height: 34px;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warehouse-delivery strong,
.warehouse-delivery span {
  display: block;
}

.warehouse-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 10px;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.step-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--steel);
  border-radius: 50%;
  font-weight: 700;
}

.variant-item.compact {
  grid-template-columns: 1fr;
}

.steps-delivery {
  display: flex;
  gap: 10px;
  align-items: center;
}

.request-step .button {
  align-self: end;
  margin-top: 4px;
}

.catalog-cart-variants {
  display: grid;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 80px;
}

.catalog-cart-variant {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-cart-variant h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.catalog-preview-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 64px 86px 92px 118px 150px 116px 132px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.catalog-preview-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.catalog-preview-row > span,
.catalog-preview-row > strong,
.preview-weight {
  white-space: nowrap;
}

.preview-qty {
  display: grid;
  grid-template-columns: 34px 54px 34px;
  gap: 5px;
  align-items: center;
}

.preview-qty button,
.preview-qty input,
.compact-qty input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.preview-qty.pill {
  grid-template-columns: 34px 58px 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.preview-qty.pill button,
.preview-qty.pill input {
  border-radius: 999px;
}

.preview-qty.square button,
.preview-qty.square input {
  border-radius: 3px;
}

.preview-cart-btn {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(47, 95, 102, 0.3);
  border-radius: 8px;
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.preview-cart-btn:hover {
  background: #f5fbfa;
}

.preview-cart-btn.wide {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-height: 48px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.preview-cart-btn.wide small {
  margin: 0;
  color: #314046;
  font-size: 12px;
}

.preview-cart-btn.dark {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}

.preview-cart-btn.icon-like {
  border-color: #b7d8c7;
  background: #eef8f4;
  color: #1d6544;
}

.preview-cart-btn.added {
  background: #dff1e7;
  border-color: #9bc9af;
  color: #1d6544;
}

.ticket-weight {
  display: grid;
  gap: 1px;
}

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

.ticket-weight strong {
  color: var(--steel);
  white-space: nowrap;
}

.compact-qty {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.compact-qty input {
  width: 58px;
}

.variant-added {
  background: #eef8f4;
  box-shadow: inset 4px 0 0 #2f7d5b;
}

.variant-total-button {
  grid-template-columns: minmax(260px, 1fr) 64px 86px 92px 118px 150px 104px 132px;
  border-color: #d7e8b1;
}

.variant-total-button .preview-weight {
  justify-self: start;
}

.variant-ticket {
  background: linear-gradient(90deg, #fbfcfb 0%, #f4f8f7 100%);
}

.variant-compact {
  grid-template-columns: minmax(260px, 1fr) 54px 78px 88px 112px 112px 104px 116px;
}

.note {
  margin-top: 14px;
  font-size: 14px;
}

.calculator {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

.calc-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-result {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  padding-top: 8px;
  font-size: 20px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 70px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 32px;
}

.product-card,
.grade-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  background: #f5fbfa;
  border-color: rgba(47, 95, 102, 0.38);
  box-shadow: var(--shadow);
}

.product-card.is-in-cart {
  background: #eef8f4;
  border-color: #b7d8c7;
}

.product-card h3,
.grade-card h3 {
  margin: 8px 0;
  font-size: 21px;
}

.popular-products {
  padding-top: 18px;
  padding-bottom: 44px;
}

.weight-calculator-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 42px;
}

.weight-calc-panel,
.weight-calc-text {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.weight-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.weight-calc-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.weight-calc-grid input,
.weight-calc-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.weight-calc-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.weight-calc-result span {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #eef8f4;
  border: 1px solid #b7d8c7;
  border-radius: 8px;
}

.weight-calc-result strong {
  font-size: 24px;
  color: var(--steel);
}

.article-body {
  max-width: 980px;
}

.article-hero {
  padding-top: 58px;
}

.not-found-page {
  min-height: 380px;
}

.grade-card a {
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
}

.content-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grade-seo-hero {
  padding: 72px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.grade-seo-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.grade-seo-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
}

.grade-seo-hero .lead {
  max-width: 760px;
  color: var(--muted);
}

.grade-seo-hero figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.grade-seo-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.grade-seo-hero figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.grade-spec-section {
  border-bottom: 1px solid var(--line);
}

.grade-application-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 28px;
}

.grade-media-grid {
  margin-top: 34px;
}

.delivery-showcase {
  padding: 74px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 35, 45, 0.96), rgba(47, 95, 102, 0.88)),
    url("/static/img/lead-sheets-live.png") center / cover;
}

.delivery-showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 38px;
  align-items: center;
}

.delivery-copy h2 {
  max-width: 760px;
  margin-top: 0;
  font-size: 40px;
}

.delivery-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.delivery-copy .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.delivery-photo {
  margin: 28px 0 0;
}

.delivery-photo img {
  display: block;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.delivery-photo figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.delivery-cards article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.delivery-cards span {
  color: var(--accent);
  font-weight: 800;
}

.delivery-cards h3 {
  margin: 14px 0 8px;
}

.delivery-cards p {
  color: rgba(255, 255, 255, 0.78);
}

.warehouse-gallery {
  padding-top: 68px;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.warehouse-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warehouse-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.warehouse-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.two-col,
.delivery,
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 42px;
  align-items: start;
}

.request-form,
.detail-specs,
.admin-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inn-status,
.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--steel);
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 34px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.footer p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer div:last-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--white);
}

.seo-wide-photo {
  margin: 0 0 28px;
}

.seo-wide-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}

.faq-list p {
  margin: 10px 0 0;
}

.product-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--steel));
}

.detail-specs {
  margin: 0;
  color: var(--ink);
}

.detail-specs div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-specs dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-specs dd {
  margin: 0;
  font-weight: 700;
}

.seo-page h2 {
  margin-top: 34px;
}

.keyword-list,
.publish-list {
  display: grid;
  gap: 8px;
}

.page-head .lead,
.seo-text .lead {
  color: var(--muted);
}

.seo-text h2 {
  margin-top: 34px;
}

.seo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.seo-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.seo-media-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.seo-media-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.application-backgrounds {
  display: grid;
  gap: 18px;
  margin: 34px 0 40px;
}

.application-bg {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.application-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 24, 0.88), rgba(8, 15, 24, 0.56) 52%, rgba(8, 15, 24, 0.2)),
    linear-gradient(0deg, rgba(8, 15, 24, 0.3), rgba(8, 15, 24, 0.3));
}

.application-bg > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  min-height: 360px;
  padding: clamp(26px, 5vw, 56px);
}

.application-bg .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.application-bg h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.application-bg p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-grid {
  align-items: stretch;
}

.contact-grid .contact-panel,
.contact-grid .request-form {
  height: 100%;
  box-sizing: border-box;
}

.contact-panel a {
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
}

.contact-shipment {
  margin: auto 0 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-shipment img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-shipment figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.admin-form {
  grid-template-columns: 1fr 220px auto;
  align-items: end;
  margin: 24px 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.admin-stats div,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-stats div {
  padding: 18px;
}

.admin-stats strong {
  display: block;
  color: var(--steel);
  font-size: 28px;
  line-height: 1;
}

.admin-stats span,
.admin-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.admin-card {
  min-height: 136px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 95, 102, 0.38);
  background: #f5fbfa;
}

.article-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-index-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.article-index-card img {
  width: calc(100% + 36px);
  height: 150px;
  margin: -18px -18px 6px;
  object-fit: cover;
}

.article-index-card a {
  margin-top: auto;
  color: var(--steel);
  font-weight: 800;
  text-decoration: none;
}

.admin-table table {
  min-width: 1080px;
}

.admin-table td {
  max-width: 260px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .topbar,
  .hero,
  .grade-seo-hero-inner,
  .intro,
  .cart-checkout,
  .calculator,
  .two-col,
  .delivery,
  .delivery-showcase-inner,
  .weight-calculator-page,
  .product-detail,
  .footer {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: start;
  }

  .city-menu {
    left: 0;
    right: auto;
  }

  .city-menu-grid,
  .warehouse-grid,
  .seo-media-grid,
  .grade-application-list {
    grid-template-columns: 1fr;
  }

  .application-bg,
  .application-bg > div {
    min-height: 320px;
  }

  nav {
    justify-content: start;
    overflow-x: auto;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 360px;
    order: -1;
  }

  .hero h1,
  .grade-seo-hero h1,
  .product-hero h1 {
    font-size: 42px;
  }

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

  .grade-grid,
  .admin-form,
  .admin-grid,
  .admin-stats,
  .cart-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-checkout .cart-summary {
    grid-template-columns: 1fr;
  }

  .cart-checkout .request-form {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .variant-grid,
  .warehouse-bottom,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .variant-form {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .warehouse-fields {
    grid-template-columns: 1fr;
  }

  .catalog-preview-row,
  .variant-compact {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-preview-row > div:first-child {
    grid-column: 1 / -1;
  }

  .preview-cart-btn {
    grid-column: 1 / -1;
  }

  .warehouse-head {
    padding-right: 0;
  }

  .delivery-fields {
    grid-template-columns: 1fr;
  }

  .weight-calc-grid,
  .weight-calc-result {
    grid-template-columns: 1fr;
  }

  .delivery-calculator-head {
    display: grid;
    gap: 8px;
  }

  .delivery-calculator-head > span {
    white-space: normal;
  }

  .cart-remove {
    justify-self: start;
  }

  .calc-panel {
    grid-template-columns: 1fr;
  }

  .delivery-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px 18px;
  }

  .phone {
    justify-self: start;
  }

  .header-contact {
    justify-items: start;
  }

  .hero-copy,
  .grade-seo-hero,
  .intro,
  .catalog,
  .calculator,
  .delivery,
  .seo-page,
  .seo-text,
  .page-head,
  .product-detail,
  .two-col {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  th,
  td {
    padding: 12px;
  }

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

  .cart-panel {
    padding: 16px;
  }

  .cart-summary span {
    display: grid;
  }

  .cart-actions .button,
  .cart-actions button {
    width: 100%;
  }

  .calc-result {
    display: grid;
    font-size: 18px;
  }

  .hero h1,
  .grade-seo-hero h1,
  .product-hero h1 {
    font-size: 36px;
  }

  .delivery-showcase {
    padding: 46px 0;
  }

  .delivery-copy h2 {
    font-size: 30px;
  }

  .delivery-cards {
    grid-template-columns: 1fr;
  }

  .application-bg,
  .application-bg > div {
    min-height: 0;
  }

  .application-bg h3 {
    font-size: 28px;
  }

  h2 {
    font-size: 30px;
  }
}
