:root {
  --red: #0b4d93;
  --deep-red: #07376d;
  --blue: #1e6fb8;
  --ink: #14253d;
  --muted: #5e6570;
  --paper: #ffffff;
  --soft: #f4f5f6;
  --navy: #062a57;
  --navy-2: #0d3f7d;
  --line: #d7e3f2;
  --max: 1110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 424px;
  background-image: url("../images/smir-home-cover.jpeg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.language {
  position: absolute;
  top: 7px;
  right: max(24px, calc((100vw - var(--max)) / 2));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #20232a;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.language a {
  font-size: 14px;
}

.product-band,
.content-section {
  background-image: none;
  background-repeat: repeat-y;
  background-position: top center;
}

.product-band {
  padding: 36px 0 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 950px);
  margin-inline: auto;
}

.product-card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
  filter: none;
  transition: transform 360ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(65deg, rgba(19, 19, 19, 0) 0%, rgba(7, 55, 109, 0.94) 100%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.product-link {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
  font-family: "Teko", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.02);
}

.product-card:hover::after,
.product-card:focus-visible::after,
.product-card:hover .product-link,
.product-card:focus-visible .product-link {
  opacity: 1;
  transform: translateY(0);
}

.content-section {
  padding: 8px 0 52px;
}

h1,
h2 {
  margin: 0;
  color: #1f2329;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.2;
}

h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.lead {
  margin-bottom: 14px;
}

.about-values-list,
.about-mission {
  margin-top: 22px;
}

.about-values-list h2,
.about-mission h2 {
  margin: 0 0 10px;
  color: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.about-values-list ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-values-list li {
  position: relative;
  padding-left: 18px;
  color: #333b45;
  font-weight: 600;
}

.about-values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--deep-red);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 34px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.value-item img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.content-section .value-item > img {
  filter: none !important;
}

.value-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  color: #fff;
  background: #071a32;
  padding: 36px 0 28px;
  font-size: 17px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
}

.home-socials {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.home-socials strong {
  color: #fff;
  font-family: "Teko", Arial, sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.site-footer p,
.site-footer address {
  margin: 0;
}

.site-footer address {
  font-style: normal;
  text-align: right;
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 8px 0 18px;
  padding: 0 14px;
  color: #fff;
  background: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    min-height: 310px;
    background-position: center;
  }

  .product-band {
    padding-top: 24px;
  }

  .product-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-link {
    right: 18px;
    bottom: 18px;
    font-size: 26px;
  }

  .content-section {
    padding-top: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
  }

  .site-footer address {
    text-align: left;
  }

  .home-socials {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .hero {
    min-height: 230px;
  }

  .language {
    right: 14px;
  }

  .product-card::after,
  .product-link {
    opacity: 1;
    transform: none;
  }

  .value-item {
    gap: 14px;
  }
}

.admin-body {
  min-height: 100vh;
  color: #20242b;
  background: #eef4fb;
  font-family: "Montserrat", Arial, sans-serif;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 22px 16px;
  color: #d8dde6;
  background: #071a32;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 24px;
  color: #fff;
}

.admin-logo span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep-red);
  font-weight: 800;
}

.admin-logo strong {
  font-size: 16px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a,
.admin-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  color: #cbd2dc;
  font-size: 14px;
  font-weight: 700;
}

.admin-menu a span,
.admin-logout span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
}

.admin-menu a:hover,
.admin-menu a:focus-visible,
.admin-menu a.is-active {
  color: #fff;
  background: rgba(47, 141, 228, 0.22);
}

.admin-menu a.is-active span {
  background: var(--deep-red);
}

.admin-logout {
  margin-top: auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.admin-main {
  min-height: 100vh;
  margin-left: 260px;
  padding: 30px;
}

.admin-shell {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 38px 0;
}

.admin-login,
.admin-panel,
.admin-card,
.admin-header {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
}

.admin-login {
  width: min(100%, 420px);
  margin: 12vh auto 0;
  padding: 28px;
}

.admin-login h1,
.admin-header h1 {
  font-size: 30px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
}

.admin-kicker {
  margin: 0 0 3px;
  color: #637083;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-header nav {
  display: flex;
  gap: 10px;
}

.admin-header a,
.admin-form button,
.admin-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font: 700 13px/1 "Montserrat", Arial, sans-serif;
  cursor: pointer;
}

.admin-header a:last-child {
  background: #20242b;
}

.admin-panel {
  padding: 20px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.add-form {
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #3b4250;
  font-size: 13px;
  font-weight: 700;
}

.admin-panel-title {
  margin: 0 0 16px;
  color: #20242b;
  font-size: 20px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 9px 11px;
  color: #1e242c;
  font: 500 14px/1.2 "Montserrat", Arial, sans-serif;
  background: #fff;
}

.admin-form textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

.admin-wide-field {
  grid-column: 1 / -1;
}

.admin-alert {
  margin: 0 0 14px;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
}

.admin-alert.success {
  color: #0b3f2e;
  background: #dff6ef;
}

.admin-alert.error {
  color: #07376d;
  background: #e8f1fb;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.admin-stats article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 14px;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 20px;
}

.admin-stats span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep-red);
  font-size: 22px;
}

.admin-stats strong {
  color: #20242b;
  font-size: 28px;
  line-height: 1;
}

.admin-stats p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-quick-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.seo-checklist {
  overflow-x: auto;
}

.seo-checklist table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.seo-checklist th,
.seo-checklist td {
  border-bottom: 1px solid #dfe7f1;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.seo-checklist th {
  color: #263244;
  background: #f5f9ff;
  font-weight: 800;
}

.seo-checklist .is-ok {
  color: #0b6b45;
  font-weight: 800;
}

.seo-checklist .is-missing {
  color: #9d2d20;
  font-weight: 800;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-panel + .admin-panel {
  margin-top: 18px;
}

.admin-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.admin-card img {
  width: 180px;
  aspect-ratio: 2553 / 1906;
  object-fit: cover;
  background: #f4f5f6;
}

.admin-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.admin-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.admin-open-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-upload {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-product-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.admin-product-edit-form button {
  width: fit-content;
}

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

.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-form-actions a,
.admin-row-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.admin-row-actions {
  justify-content: flex-end;
}

.admin-inline-upload label {
  display: grid;
  gap: 6px;
  color: #3b4250;
  font-size: 12px;
  font-weight: 800;
}

.admin-inline-upload input[type="file"] {
  width: 100%;
  max-width: 280px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
  color: #1e242c;
  font-size: 12px;
}

.admin-inline-upload button {
  width: fit-content;
}

.admin-card button.danger {
  background: #0b2f5f;
}

.admin-products {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.admin-product-group {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 18px;
}

.admin-product-group h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.admin-product-items {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  padding: 10px;
}

.admin-product-row img {
  width: 86px;
  height: 64px;
  object-fit: contain;
  background: #f4f5f6;
}

.admin-product-row strong {
  display: block;
  color: #20242b;
}

.admin-product-row p,
.admin-empty {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.admin-machine-row {
  margin-left: 34px;
  border-color: #cfe0f5;
  background: #f5f9ff;
}

.admin-gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-gallery-item {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e3f2;
  border-radius: 6px;
  padding: 9px;
  background: #fff;
}

.admin-gallery-item img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  background: #f4f5f6;
}

.admin-gallery-replace {
  display: grid;
  gap: 7px;
}

.admin-gallery-item input[type="file"] {
  width: 100%;
  font-size: 12px;
}

.admin-gallery-item button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-cover-card {
  border: 1px solid #edf0f4;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.admin-cover-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  background: #f4f5f6;
}

.admin-cover-card form {
  padding: 10px;
}

.admin-blog-edit .admin-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.admin-blog-thumb {
  width: 180px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #d8e3f2;
  border-radius: 6px;
  background: #f4f5f6;
}

.admin-blog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.admin-blog-list-panel > .admin-blog-edit {
  display: none;
}

.admin-blog-list {
  display: grid;
  gap: 10px;
}

.admin-blog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 38, 48, 0.06);
}

.admin-blog-row strong {
  display: block;
  color: #20242b;
  font-size: 15px;
}

.admin-blog-row span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.admin-blog-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-blog-row-actions a,
.admin-blog-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: var(--red);
  font: 800 12px/1 "Montserrat", Arial, sans-serif;
  cursor: pointer;
}

.admin-blog-row-actions a:first-child {
  background: #0b2f5f;
}

.admin-blog-row-actions button.danger {
  background: #07376d;
}

.admin-blog-row-actions form {
  margin: 0;
}

@media (max-width: 920px) {
  .add-form,
  .admin-list,
  .admin-card,
  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .admin-cover-grid {
    grid-template-columns: 1fr;
  }

  .admin-blog-edit .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-blog-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-blog-row-actions {
    flex-wrap: wrap;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-card img {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .admin-sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

  .admin-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    margin-left: 0;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .admin-menu {
    grid-template-columns: 1fr;
  }
}

.category-page {
  background: #f1f2f4;
  color: #444952;
}

.category-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.category-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
}

.category-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1 1 auto;
  color: #303640;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 88px;
  white-space: nowrap;
}

.category-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--deep-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.category-nav nav a:hover::after,
.category-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

.category-langs {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-langs a {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #e0e3e7;
  color: #2f3540;
  background: #fff;
}

.category-nav nav a.is-current {
  color: var(--deep-red);
}

.group-button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 170px;
  padding: 0 24px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.group-button span {
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.cover-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #dfe3e7;
}

.cover-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 700ms ease, transform 900ms ease;
}

.cover-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.cover-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 68px;
  border: 0;
  color: #fff;
  background: rgba(7, 55, 109, 0.9);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-arrow.prev {
  left: 0;
}

.slider-arrow.next {
  right: 0;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--deep-red);
  border-color: var(--deep-red);
}

.category-hero {
  padding: 58px 0 42px;
}

.category-hero h1,
.news-section h2,
.contact-section h2 {
  color: #3d4149;
  font-family: "Teko", Arial, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.section-eyebrow {
  position: relative;
  margin: 0 0 8px;
  color: #7f8794;
  font-family: "Teko", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.section-eyebrow::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--red);
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.subcat-card {
  position: relative;
  min-height: 325px;
  overflow: hidden;
  background: #fff;
  padding: 24px 18px 0;
  box-shadow: 0 8px 24px rgba(29, 34, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.subcat-card:hover,
.subcat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(29, 34, 42, 0.12);
}

.subcat-number {
  position: absolute;
  top: -8px;
  right: 18px;
  color: #d8dbe0;
  font-family: "Teko", Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.subcat-card img {
  display: block;
  width: 100%;
  height: 205px;
  object-fit: contain;
  margin: 0 auto 22px;
  image-rendering: auto;
}

.subcat-card h2 {
  color: #101318;
  font-family: "Teko", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
}

.olive-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 55px;
  color: #fff;
  background: var(--deep-red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  transition: width 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.olive-badge::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 44px;
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-22deg);
  transition: left 300ms ease;
}

.olive-badge::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(45deg);
}

.olive-badge img {
  display: none;
}

.subcat-card:hover .olive-badge,
.subcat-card:focus-visible .olive-badge {
  width: 96px;
  background: linear-gradient(135deg, var(--blue), var(--deep-red));
  box-shadow: -12px -10px 24px rgba(11, 77, 147, 0.22);
}

.subcat-card:hover .olive-badge::after,
.subcat-card:focus-visible .olive-badge::after {
  left: 120%;
}

.process-banner {
  position: relative;
  min-height: 202px;
  overflow: hidden;
  background: #e8e9eb;
}

.process-tube {
  position: absolute;
  left: max(0px, calc((100vw - 1280px) / 2));
  bottom: -22px;
  width: 310px;
  height: 230px;
  background:
    linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.9) 33%, rgba(255, 255, 255, 0.9) 42%, transparent 43%),
    linear-gradient(115deg, transparent 36%, #89a53a 37%, #d7dc8d 47%, #263746 48%, #46a0dc 56%, transparent 57%);
  transform: rotate(-28deg);
  opacity: 0.9;
}

.process-copy {
  position: relative;
  z-index: 1;
  padding: 44px 0;
  text-align: center;
}

.process-copy p {
  margin: 0 0 14px;
  color: #41454c;
  font-family: "Teko", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
}

.process-copy h2 {
  width: min(870px, 80%);
  margin: 0 auto;
  padding: 28px 16px;
  color: #a7c348;
  background: #fff;
  font-family: "Teko", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.process-copy h2 span {
  color: #54a8e2;
}

.news-section {
  background: #fff;
  padding: 45px 0 70px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.news-card {
  background: #fff;
  box-shadow: 0 9px 22px rgba(31, 38, 48, 0.18);
}

.news-image {
  position: relative;
}

.news-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.news-image span {
  position: absolute;
  left: 15px;
  bottom: -13px;
  min-width: 82px;
  padding: 6px 11px;
  color: #fff;
  background: var(--deep-red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.news-content {
  min-height: 242px;
  padding: 28px 18px 20px;
}

.news-content h3 {
  margin: 0 0 12px;
  color: #3b3f46;
  font-family: "Teko", Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.04;
  text-transform: uppercase;
}

.news-content p {
  color: #5f6670;
  font-size: 13px;
  line-height: 1.6;
}

.news-content a {
  display: block;
  margin-top: 18px;
  color: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d7e3f2;
  color: #07376d;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pagination a:hover,
.pagination a:focus-visible,
.pagination a.is-current {
  color: #fff;
  border-color: var(--deep-red);
  background: var(--deep-red);
}

.admin-pagination {
  justify-content: flex-start;
  margin-top: 18px;
}

.category-contact-block {
  background: #fff;
}

.category-contact-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.category-contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr 260px;
  gap: 28px;
  align-items: start;
  padding: 24px 0 46px;
}

.category-contact-meta p,
.category-contact-hours p {
  margin: 0 0 14px;
  color: #333b45;
  font-size: 14px;
}

.category-contact-meta strong {
  display: inline-block;
  width: 22px;
  color: var(--deep-red);
}

.category-contact-hours strong,
.category-contact-form h2 {
  color: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.category-contact-logo {
  width: 220px;
  max-height: 92px;
  object-fit: contain;
  justify-self: end;
}

.category-contact-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.category-contact-form h2 {
  margin: 0;
  color: #3d4149;
  font-size: 34px;
  text-transform: uppercase;
}

.category-contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-contact-form input,
.category-contact-form textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  padding: 13px 14px;
  color: #1f2530;
  background: #fff;
  font: 500 14px/1.4 "Montserrat", Arial, sans-serif;
}

.category-contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.category-contact-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.category-contact-bottom button {
  min-width: 88px;
  min-height: 42px;
  border: 0;
  color: #fff;
  background: var(--deep-red);
  font-weight: 800;
  text-transform: uppercase;
}

.blog-hero {
  padding: 48px 0 34px;
  background: #fff;
}

.blog-hero h1 {
  color: #3d4149;
  font-family: "Teko", Arial, sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.blog-list-section {
  padding-top: 24px;
}

.blog-stack {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.blog-stack-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 210px;
}

.blog-stack-image img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.blog-stack-card .news-content {
  min-height: 0;
  padding: 30px 28px 24px;
}

.blog-detail-section {
  padding: 0 0 72px;
  background: #f2f2f2;
}

.blog-detail-card {
  margin-top: 18px;
  padding: 34px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(31, 38, 48, 0.12);
}

.blog-detail-card > img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  margin-bottom: 22px;
}

.blog-detail-card time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
}

.blog-detail-card h2 {
  margin: 18px 0 14px;
  color: #2d333b;
  font-family: "Teko", Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.blog-lead {
  color: #4f5966;
  font-size: 17px;
  font-weight: 600;
}

.blog-content {
  color: #303640;
  line-height: 1.85;
}

.contact-section {
  background: #fff;
  padding: 28px 0 0;
}

.contact-map {
  height: 205px;
  margin-top: 34px;
  background: #dfddd8;
  box-shadow: inset 0 8px 10px rgba(0, 0, 0, 0.04);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 28px;
  padding: 46px 0 58px;
}

.contact-info p,
.working-hours p {
  margin: 0 0 10px;
  color: #626a75;
  font-size: 13px;
}

.working-hours strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep-red);
  font-size: 13px;
}

.contact-logo {
  width: 240px;
  max-width: 100%;
  justify-self: end;
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9dee6;
  padding: 13px 14px;
  color: #3a414a;
  font: 500 13px/1.4 "Montserrat", Arial, sans-serif;
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  grid-column: 3;
  justify-self: end;
  min-width: 78px;
  min-height: 42px;
  border: 0;
  background: var(--deep-red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.category-footer {
  color: #9da2aa;
  background: #071a32;
}

.category-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 55px 0 42px;
}

.category-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-footer li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 14px;
  font-size: 13px;
}

.category-footer li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  background: #2f8de4;
}

.category-footer strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-family: "Teko", Arial, sans-serif;
  font-size: 19px;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--deep-red);
  border-radius: 4px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--blue);
  transform: translateY(-2px);
}

.socials svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 13px;
}

.product-cover {
  min-height: 275px;
}

.subcategory-layout {
  padding: 56px 0 70px;
  background: #f2f3f5;
}

.subcategory-wrap {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 30px;
  align-items: start;
}

.filter-box {
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 34, 42, 0.08);
}

.filter-box h2 {
  margin: 0;
  padding: 17px 20px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
}

.filter-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-box a {
  display: block;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 18px;
  color: #3f4650;
  font-size: 13px;
  font-weight: 700;
}

.filter-box a:hover,
.filter-box a.is-active {
  color: var(--deep-red);
  background: #fff5f6;
}

.products-panel h1 {
  margin: 0;
  color: #3d4149;
  font-family: "Teko", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.machine-card {
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 34, 42, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.machine-card:hover,
.machine-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(29, 34, 42, 0.16);
}

.machine-card a {
  display: block;
  min-height: 100%;
  padding: 22px 20px 18px;
}

.machine-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.machine-card h2 {
  min-height: 64px;
  margin: 0 0 16px;
  color: #11151c;
  font-family: "Teko", Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.machine-card span {
  color: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
}

.empty-products {
  grid-column: 1 / -1;
  margin: 0;
  background: #fff;
  padding: 22px;
  color: #667085;
  font-weight: 700;
}

.product-topbar {
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.product-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  color: #1f2530;
  font-family: "Teko", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.product-topbar-inner span::before {
  color: var(--deep-red);
  margin-right: 8px;
}

.product-topbar-inner span:nth-child(1)::before {
  content: "●";
}

.product-topbar-inner span:nth-child(2)::before {
  content: "☎";
}

.product-topbar-inner span:nth-child(3)::before {
  content: "✉";
}

.product-topbar-inner strong {
  color: var(--deep-red);
  font-size: 23px;
  font-style: italic;
  white-space: nowrap;
}

.product-detail-hero {
  padding: 22px 0 16px;
  background: #fff;
}

.product-detail-hero h1 {
  position: relative;
  margin: 0 0 18px;
  color: #3d4149;
  font-family: "Teko", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.product-detail-hero h1::after {
  content: "";
  display: block;
  width: 118px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--deep-red);
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  color: #fff;
  background: #303030;
  font-size: 14px;
  font-weight: 800;
}

.product-breadcrumb a {
  color: #fff;
}

.product-breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #fff;
}

.product-detail-section {
  padding: 0 0 72px;
  background: #f2f2f2;
}

.product-detail-grid {
  display: block;
}

.product-detail-grid > .filter-box {
  display: none;
}

.product-detail-card {
  color: #222832;
}

.product-summary-box {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 46px 44px 40px;
  box-shadow: 0 10px 24px rgba(31, 38, 48, 0.14);
}

.product-gallery {
  display: grid;
  gap: 20px;
}

.product-main-image {
  display: grid;
  place-items: center;
  min-height: 380px;
  background: #fff;
}

.product-main-image img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.product-thumbs a {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid #e1e5eb;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.product-thumbs a.is-active,
.product-thumbs a:hover,
.product-thumbs a:focus-visible {
  border-color: var(--deep-red);
  box-shadow: 0 0 0 2px rgba(7, 55, 109, 0.14);
}

.product-thumbs img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.product-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.product-gallery-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000;
}

.product-gallery-dots span.is-active {
  background: var(--red);
}

.product-intro h2 {
  margin: 0 0 18px;
  padding: 12px 18px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.product-detail-card p {
  margin-bottom: 15px;
  color: #17202c;
  font-size: 14px;
  line-height: 1.6;
}

.product-info-section,
.product-video-section,
.product-spec-section {
  margin-top: 34px;
}

.product-info-section h3,
.product-video-section h3,
.product-spec-section h3 {
  position: relative;
  margin: 0 0 26px;
  padding: 13px 18px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Teko", Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.product-info-section h3::after,
.product-video-section h3::after,
.product-spec-section h3::after {
  content: "";
  position: absolute;
  top: 0;
  right: -42px;
  width: 42px;
  height: 100%;
  background: linear-gradient(135deg, var(--deep-red) 0 50%, transparent 51%);
}

.product-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #071a32;
  aspect-ratio: 16 / 9;
}

.product-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spec-table {
  width: min(920px, 100%);
  border-collapse: collapse;
  margin-top: 14px;
  background: #fff;
}

.spec-table th,
.spec-table td {
  border: 1px solid #aeb4bc;
  padding: 6px 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
}

.spec-table th {
  width: 34%;
  color: #20242b;
  background: #eeeeee;
}

.spec-title-row th {
  color: #3b3f46;
  background: #dedede;
  font-family: "Teko", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.contact-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.32), rgba(255,255,255,0.32)),
    repeating-linear-gradient(90deg, #d8d2c3 0 112px, #cfc8b7 112px 116px, #e5dfd3 116px 224px);
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(7,26,50,0.12));
  pointer-events: none;
}

.contact-hero-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: min(100% - 120px, 1180px);
  align-items: end;
}

.contact-hero-icons span {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 6px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7a7d82, #4f545b);
  box-shadow: 0 14px 26px rgba(31, 38, 48, 0.18);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 800;
}

.contact-hero-icons span:nth-child(1),
.contact-hero-icons span:nth-child(3) {
  transform: translateY(12px);
}

.contact-hero-icons span:nth-child(2),
.contact-hero-icons span:nth-child(4) {
  transform: translateY(-8px);
}

.contact-page-section {
  padding: 22px 0 58px;
  background: #fff;
}

.contact-page-section > .container,
.contact-template .category-footer > .container,
.contact-template .category-footer .copyright {
  width: min(calc(100% - 290px), 1390px);
  max-width: 1390px;
}

.contact-breadcrumb {
  margin-bottom: 34px;
  padding: 20px 22px;
  font-size: 17px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.contact-line {
  position: relative;
  margin: 0 0 24px;
  padding-left: 44px;
  color: #17202c;
  font-size: 20px;
  line-height: 1.35;
}

.contact-line::before {
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--deep-red);
  font-size: 25px;
  font-weight: 800;
}

.contact-line.location::before {
  content: "●";
}

.contact-line.phone::before {
  content: "☎";
}

.contact-line.mail::before {
  content: "✉";
}

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 1px solid #dce1e8;
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-form-panel h1 {
  margin: 0 0 16px;
  color: #444950;
  font-family: "Teko", Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
}

.contact-page-form {
  display: grid;
  gap: 20px;
}

.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  padding: 18px 20px;
  color: #1f2530;
  font: 500 18px/1.3 "Montserrat", Arial, sans-serif;
  background: #fff;
}

.contact-page-form textarea {
  min-height: 250px;
  resize: vertical;
}

.contact-page-form button {
  justify-self: end;
  min-width: 92px;
  min-height: 48px;
  border: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--deep-red);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 980px) {
  .product-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .product-summary-box {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }

  .product-info-section h3::after,
  .product-video-section h3::after,
  .product-spec-section h3::after {
    display: none;
  }

  .category-nav {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .category-nav nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .category-nav nav a {
    min-height: 36px;
  }

  .cover-slider {
    min-height: 390px;
  }

  .subcat-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-contact-inner,
  .category-contact-fields {
    grid-template-columns: 1fr;
  }

  .category-contact-logo {
    justify-self: start;
  }

  .blog-stack-card {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-logo {
    justify-self: start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    grid-column: 1;
  }

  .subcategory-wrap {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .group-button {
    min-height: 48px;
    align-self: auto;
  }

  .contact-page-section > .container,
  .contact-template .category-footer > .container,
  .contact-template .category-footer .copyright {
    width: min(calc(100% - 28px), var(--max));
  }

  .machine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-nav {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 0;
    padding: 8px 0 10px;
  }

  .brand-link img {
    width: 62px;
    height: 62px;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    border: 1px solid #d7e3f2;
    border-radius: 6px;
    padding: 8px 9px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0b4d93;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .category-nav.is-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .category-nav.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .category-nav.is-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .category-nav nav {
    display: none;
    justify-content: flex-start;
    gap: 0;
    flex: 1 0 100%;
    order: 2;
    overflow: visible;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    font-size: 12px;
  }

  .category-nav.is-menu-open nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-nav nav a {
    min-height: 38px;
    border-bottom: 1px solid #edf0f4;
    padding: 0 2px;
  }

  .cover-slider {
    min-height: 270px;
  }

  .slider-arrow {
    width: 38px;
    height: 52px;
    font-size: 32px;
  }

  .subcat-grid,
  .news-grid,
  .blog-stack-card,
  .machine-grid,
  .product-gallery,
  .category-footer-grid {
    grid-template-columns: 1fr;
  }

  .process-tube {
    opacity: 0.25;
  }

  .process-copy h2 {
    width: 100%;
    font-size: 34px;
  }

  .product-thumbs {
    gap: 12px;
  }

  .product-breadcrumb {
    font-size: 12px;
  }

  .contact-hero {
    min-height: 220px;
  }

  .contact-hero-icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: min(100% - 28px, 100%);
  }

  .contact-hero-icons span {
    border-width: 3px;
  }

  .contact-page-form button {
    justify-self: stretch;
  }

  .category-contact-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .category-contact-bottom button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .category-nav {
    padding-top: 7px;
  }

  .brand-link img {
    width: 56px;
    height: 56px;
  }

  .category-nav nav {
    gap: 16px;
    font-size: 11px;
  }
}

/* Contact page hard overrides: kept at the end to avoid older shared layout rules winning. */
body.contact-template .contact-hero {
  display: grid;
  place-items: center;
  min-height: 350px;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.32), rgba(255,255,255,0.32)),
    repeating-linear-gradient(90deg, #d8d2c3 0 112px, #cfc8b7 112px 116px, #e5dfd3 116px 224px);
}

body.contact-template .contact-page-section {
  padding: 24px 0 58px;
  background: #fff;
}

body.contact-template .contact-page-section > .container {
  width: min(calc(100% - 290px), 1390px);
  max-width: 1390px;
  margin-inline: auto;
}

body.contact-template .contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

body.contact-template .contact-page-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-form-alert {
  margin: 0 0 16px;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.contact-form-alert.success {
  color: #0b3f2e;
  background: #dff6ef;
}

.contact-form-alert.error {
  color: #07376d;
  background: #e8f1fb;
}

body.contact-template .contact-page-form input,
body.contact-template .contact-page-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #cfd6df;
  padding: 18px 20px;
  color: #1f2530;
  font: 500 18px/1.3 "Montserrat", Arial, sans-serif;
  background: #fff;
}

body.contact-template .contact-page-form textarea {
  min-height: 250px;
  resize: vertical;
}

body.contact-template .contact-page-form button {
  justify-self: end;
  min-width: 92px;
  min-height: 48px;
  border: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--deep-red);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

body.service-template .service-hero {
  min-height: 350px;
  background-image:
    linear-gradient(90deg, rgba(7, 26, 50, 0.08), rgba(255,255,255,0.1)),
    url("../images/service-cover.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

body.service-template .service-hero::after {
  content: none;
  display: none;
}

body.about-template .about-hero {
  min-height: 350px;
  background-image: url("../images/smir-building-cover.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

body.service-template .service-page-section {
  padding: 24px 0 72px;
  background: #fff;
}

body.about-template .about-page-section {
  padding: 22px 0 58px;
  background: #fff;
}

body.service-template .service-page-section > .container {
  width: min(calc(100% - 290px), 1390px);
  max-width: 1390px;
  margin-inline: auto;
}

body.about-template .about-page-section > .container {
  width: min(calc(100% - 290px), 1390px);
  max-width: 1390px;
  margin-inline: auto;
}

.service-breadcrumb {
  margin-bottom: 34px;
  padding: 20px 22px;
  font-size: 17px;
}

.service-content h1 {
  margin: 0 0 22px;
  color: #20242b;
  font-family: "Teko", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.about-content h1 {
  margin: 0 0 18px;
  color: #20242b;
  font-family: "Teko", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.about-content {
  color: #333b45;
  font-size: 15px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.about-values article {
  border-top: 4px solid var(--deep-red);
  background: #f4f7fb;
  padding: 22px;
}

.about-values h2 {
  margin: 0 0 10px;
  color: #15243c;
  font-family: "Teko", Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.service-text {
  color: #27303c;
  font-size: 16px;
  line-height: 1.78;
}

.service-text img {
  float: left;
  width: 300px;
  height: auto;
  object-fit: contain;
  margin: 4px 32px 16px 0;
  background: #fff;
}

.service-text p {
  margin: 0 0 18px;
}

body.contact-template .group-button {
  align-self: auto;
  min-height: 42px;
}

@media (max-width: 980px) {
  body.contact-template .contact-page-section > .container {
    width: min(calc(100% - 28px), var(--max));
  }

  body.contact-template .contact-page-grid {
    grid-template-columns: 1fr;
  }

  body.contact-template .contact-page-form button {
    justify-self: stretch;
  }

  body.service-template .service-page-section > .container {
    width: min(calc(100% - 28px), var(--max));
  }

  body.about-template .about-page-section > .container {
    width: min(calc(100% - 28px), var(--max));
  }

  body.service-template .service-hero {
    min-height: 220px;
  }

  body.about-template .about-hero {
    min-height: 220px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .service-text img {
    float: none;
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: 0 0 18px;
  }
}
