/*
Theme Name: ATSVARI Catalog
Theme URI: https://atsvari.lv/
Author: ATSVARI
Description: Modern WordPress catalog theme for ATSVARI trade scales and service requests.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: atsvari
*/

:root {
  --ats-blue: #06377a;
  --ats-blue-dark: #002a63;
  --ats-blue-deep: #001f4e;
  --ats-red: #d9272e;
  --ats-ink: #10213f;
  --ats-muted: #53627a;
  --ats-line: #dce5f1;
  --ats-bg: #f5f8fc;
  --ats-card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ats-ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Bootstrap-compatible layout primitives for clean block structure. */
.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1320px;
}

.container-fluid {
  max-width: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.g-0 {
  gap: 0;
}

.g-3 {
  gap: 16px;
}

.g-4 {
  gap: 24px;
}

.col,
.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.card {
  display: block;
  height: 100%;
}

.px-0 {
  padding-right: 0;
  padding-left: 0;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    width: 25%;
  }

  .col-lg-4 {
    width: 33.333333%;
  }

  .col-lg-5 {
    width: 41.666667%;
  }

  .col-lg-7 {
    width: 58.333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl {
    flex: 1 0 0%;
    width: auto;
  }

  .col-xl-2 {
    width: 20%;
  }

  .col-xl-3 {
    width: 25%;
  }

  .col-xl-4 {
    width: 33.333333%;
  }

  .col-xl-5 {
    width: 41.666667%;
  }
}

.ats-language-switch a {
  color: inherit;
  text-decoration: none;
}

.ats-language-switch a.is-active {
  color: var(--ats-logo-red);
  font-weight: 800;
}

/* Hero and the process strip are separate, readable blocks. */
.ats-process {
  padding: 30px 0 34px;
  background: #fff;
  border-bottom: 1px solid #e7edf3;
}

.ats-process h2 {
  margin: 0 0 22px;
  color: #111719;
  font-size: 24px;
  font-weight: 800;
}

.ats-process__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #e7edf3;
}

.ats-process__item {
  position: relative;
  min-height: 128px;
  padding: 22px 22px 12px;
  border-right: 1px solid #e7edf3;
}

.ats-process__item:first-child {
  padding-left: 0;
}

.ats-process__item:last-child {
  border-right: 0;
}

.ats-process__icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1.5px solid var(--ats-logo-red);
  border-radius: 50%;
  color: var(--ats-logo-red);
  font-size: 11px;
  font-weight: 800;
}

.ats-process h3 {
  margin: 0 0 6px;
  color: #111719;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.ats-process p {
  margin: 0;
  color: #596574;
  font-size: 12px;
  line-height: 1.45;
}

@media (min-width: 1200px) {
  .ats-contact-head {
    min-height: 104px;
    gap: 24px;
  }

  .ats-logo {
    width: 170px;
  }

  .ats-head-info {
    justify-content: flex-start;
    gap: 34px;
  }

  .ats-head-item,
  .ats-head-item:first-child {
    min-width: 0;
  }

  .ats-head-item:first-child {
    width: 228px;
  }

  .ats-head-item:nth-child(2) {
    width: 170px;
  }

  .ats-head-item:nth-child(3) {
    width: 188px;
  }

  .ats-head-actions {
    min-width: 0;
    gap: 14px;
  }

  .ats-hero-media .ats-hero-product {
    background:
      linear-gradient(90deg, rgba(17,23,25,0.16) 0%, rgba(17,23,25,0) 40%),
      url("assets/images/hero-home-v2.png") right center / cover no-repeat !important;
  }
}

@media (max-width: 860px) {
  .ats-nav-check {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
  }

  .ats-menu-button {
    cursor: pointer;
  }

  .ats-nav-check:checked + .ats-menu-button i {
    background: transparent;
  }

  .ats-nav-check:checked + .ats-menu-button i::before {
    top: 0;
    transform: rotate(45deg);
  }

  .ats-nav-check:checked + .ats-menu-button i::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .ats-process {
    padding: 28px 0;
  }

  .ats-process h2 {
    font-size: 22px;
  }

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

  .ats-process__item,
  .ats-process__item:first-child {
    min-height: 142px;
    padding: 18px;
    border-bottom: 1px solid #e7edf3;
  }

  .ats-process__item:nth-child(2n) {
    border-right: 0;
  }
}

.ats-hero-market__grid > [class*="col-"],
.ats-hero-media > [class*="col-"],
.ats-catalog-grid > [class*="col-"],
.ats-proof-row > [class*="col-"],
.ats-popular-row > [class*="col-"],
.ats-help-cta > [class*="col-"] {
  flex: initial;
  width: auto;
  max-width: none;
}

.ats-container {
  width: min(1320px, calc(100% - 60px));
  margin: 0 auto;
}

.ats-container.container {
  max-width: none;
}

.ats-contact-head > [class*="col-"],
.ats-nav-inner > [class*="col-"] {
  flex: initial;
  width: auto;
  max-width: none;
}

.ats-site-head {
  background: #fff;
}

.ats-contact-head,
.ats-head-info,
.ats-head-actions,
.ats-nav-inner,
.ats-actions,
.ats-grid,
.ats-product-card__meta {
  display: flex;
}

.ats-contact-head {
  min-height: 155px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ats-head-info {
  flex: 1;
  justify-content: center;
  gap: 42px;
  color: var(--ats-blue-deep);
  font-size: 16px;
}

.ats-head-item {
  position: relative;
  padding-left: 28px;
  min-width: 170px;
  white-space: nowrap;
}

.ats-head-item:first-child {
  min-width: 230px;
}

.ats-head-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat;
}

.ats-head-item:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2300337a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.ats-head-item:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2300337a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.59 2.61a2 2 0 0 1-.45 2.11L8 9.69a16 16 0 0 0 6.31 6.31l1.25-1.25a2 2 0 0 1 2.11-.45c.84.27 1.71.47 2.61.59A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}

.ats-head-item:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2300337a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.ats-head-actions {
  align-items: center;
  gap: 18px;
  color: var(--ats-blue-deep);
  font-size: 13px;
  font-weight: 700;
  min-width: 330px;
  white-space: nowrap;
}

.ats-nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, var(--ats-blue-deep), var(--ats-blue));
  color: #fff;
}

.ats-nav-check,
.ats-menu-button {
  display: none;
}

.ats-nav-inner {
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.ats-logo img {
  width: 245px;
  height: auto;
}

.ats-search {
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
}

.ats-btn,
.ats-btn-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}

.ats-btn {
  background: var(--ats-blue);
  color: #fff;
}

.ats-btn-secondary {
  border-color: var(--ats-line);
  background: #fff;
  color: var(--ats-blue-dark);
}

.ats-btn-small {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 15px;
  white-space: nowrap;
}

.ats-hero {
  background: var(--ats-bg);
}

.ats-hero-market {
  position: relative;
  overflow: hidden;
  min-height: 365px;
  padding: 28px 0 26px;
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.50) 58%, rgba(255,255,255,0.08) 100%),
    radial-gradient(circle at 72% 42%, rgba(201, 66, 43, 0.20), transparent 15%),
    repeating-linear-gradient(0deg, rgba(94, 58, 24, 0.12) 0 8px, rgba(248, 211, 130, 0.10) 8px 28px, rgba(57, 99, 38, 0.13) 28px 42px),
    linear-gradient(135deg, #eef3f9 0%, #fff 36%, #d8c4a7 100%);
}

.ats-hero-market::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 58%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(9, 47, 99, 0.04) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(173, 132, 72, 0.18), rgba(255,255,255,0));
  pointer-events: none;
}

.ats-hero-market__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
}

.ats-hero-copy h1 {
  margin: 0;
  color: var(--ats-blue-deep);
  font-size: 23px;
  line-height: 1.12;
}

.ats-hero-copy h1 span {
  display: block;
}

.ats-hero-copy h1 .ats-title-main {
  font-size: 38px;
  line-height: 1.08;
  text-transform: uppercase;
}

.ats-hero-copy p {
  max-width: 360px;
  margin: 13px 0 0;
  color: #273957;
  font-size: 16px;
}

.ats-brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  color: var(--ats-blue);
}

.ats-brand-line strong {
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.ats-brand-line img {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.ats-brand-line span {
  color: var(--ats-muted);
  font-size: 13px;
}

.ats-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 365px;
}

.ats-hero-product {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 38%, rgba(255,255,255,0) 64%),
    url("assets/images/hero-home-v2.png") center center / auto 100% no-repeat;
}

.ats-hero-benefits {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  width: 320px;
  overflow: hidden;
  border: 1px solid rgba(0, 42, 99, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(0, 31, 78, 0.12);
}

.ats-hero-benefits span {
  display: block;
  min-height: 47px;
  border-bottom: 1px solid var(--ats-line);
  padding: 10px 15px 10px 42px;
  color: var(--ats-blue-deep);
  font-size: 13px;
  font-weight: 700;
}

.ats-hero-benefits span:last-child {
  border-bottom: 0;
}

.ats-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.ats-eyebrow {
  margin: 0 0 12px;
  color: var(--ats-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ats-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ats-blue-dark);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.ats-hero-market .ats-hero-copy h1 {
  max-width: 390px;
  color: var(--ats-blue-deep);
  font-size: 23px;
  line-height: 1.12;
}

.ats-hero-market .ats-hero-copy h1 .ats-title-main {
  font-size: 38px;
  line-height: 1.08;
  text-transform: uppercase;
}

.ats-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ats-muted);
  font-size: 19px;
}

.ats-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ats-hero__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.ats-device {
  min-height: 310px;
  border: 1px solid var(--ats-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.ats-device:first-child {
  grid-row: span 2;
}

.ats-device h3,
.ats-product-card h3,
.ats-section h2 {
  margin: 0;
  color: var(--ats-blue-dark);
}

.ats-device img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.ats-device p {
  margin: 10px 0 0;
  color: var(--ats-muted);
  font-size: 14px;
}

.ats-strip {
  border-top: 1px solid var(--ats-line);
  border-bottom: 1px solid var(--ats-line);
  background: #fff;
}

.ats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.ats-strip span {
  padding: 18px 14px;
  color: var(--ats-blue-dark);
  font-weight: 700;
  text-align: center;
}

.ats-section {
  padding: 42px 0;
}

.ats-section-tight {
  padding: 24px 0 28px;
}

.ats-center-title {
  position: relative;
  margin: 0 0 18px;
  color: var(--ats-blue-deep);
  font-size: 26px;
  text-align: center;
}

.ats-center-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--ats-blue);
}

.ats-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ats-section__head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ats-muted);
}

.ats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ats-category {
  min-height: 170px;
  border: 1px solid var(--ats-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.ats-category strong {
  display: block;
  color: var(--ats-blue-dark);
  font-size: 18px;
}

.ats-category p {
  margin: 10px 0 0;
  color: var(--ats-muted);
}

.ats-category--primary {
  grid-column: span 2;
  background: var(--ats-blue);
  color: #fff;
}

.ats-category--primary strong,
.ats-category--primary p {
  color: #fff;
}

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

.ats-catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ats-catalog-card {
  position: relative;
  min-height: 244px;
  border: 1px solid var(--ats-line);
  border-radius: 5px;
  background: #fff;
  padding: 12px;
  color: var(--ats-blue-deep);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ats-catalog-card:hover {
  border-color: rgba(0, 42, 99, 0.45);
  box-shadow: 0 12px 24px rgba(0, 31, 78, 0.08);
}

.ats-catalog-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  margin-bottom: 10px;
}

.ats-catalog-card strong {
  display: block;
  min-height: 34px;
  font-size: 15px;
}

.ats-catalog-card p {
  margin: 7px 0 12px;
  color: var(--ats-ink);
  font-size: 12px;
}

.ats-catalog-card b {
  color: var(--ats-blue);
  font-size: 12px;
}

.ats-catalog-card > span {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 3px;
  background: var(--ats-blue);
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ats-catalog-card.is-featured {
  border-color: var(--ats-blue);
}

.ats-icon-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ats-icon-card i {
  display: grid;
  place-items: center;
  height: 112px;
  margin-bottom: 10px;
  color: var(--ats-blue);
  font-size: 54px;
  font-style: normal;
}

.ats-product-card {
  border: 1px solid var(--ats-line);
  border-radius: 5px;
  background: #fff;
  padding: 18px;
}

.ats-product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.ats-product-card__meta {
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ats-pill {
  border-radius: 999px;
  background: #edf2f8;
  padding: 5px 10px;
  color: var(--ats-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.ats-proof-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ats-line);
  border-bottom: 1px solid var(--ats-line);
  background: #f8fbff;
}

.ats-proof-row div {
  min-height: 82px;
  border-right: 1px solid var(--ats-line);
  padding: 18px;
}

.ats-proof-row div:last-child {
  border-right: 0;
}

.ats-proof-row strong,
.ats-proof-row span {
  display: block;
}

.ats-proof-row strong {
  color: var(--ats-blue-deep);
  font-size: 13px;
}

.ats-proof-row span {
  margin-top: 6px;
  color: var(--ats-muted);
  font-size: 12px;
}

.ats-popular-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.ats-popular-row .ats-product-card img {
  height: 132px;
}

.ats-popular-row .ats-product-card h3 {
  font-size: 15px;
}

.ats-popular-row .ats-product-card p,
.ats-popular-row .ats-product-card a {
  font-size: 13px;
}

.ats-help-cta {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) 130px 150px 170px;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ats-blue), var(--ats-blue-deep));
  padding: 18px 28px;
  color: #fff;
}

.ats-help-cta h2,
.ats-help-cta p {
  margin: 0;
}

.ats-help-cta h2 {
  font-size: 24px;
  line-height: 1.15;
}

.ats-help-cta p {
  margin-top: 8px;
  color: rgba(255,255,255,0.8);
}

.ats-help-cta strong,
.ats-help-cta span {
  display: block;
}

.ats-help-cta .ats-btn-secondary {
  border-color: #fff;
}

.ats-cta {
  background: var(--ats-blue-dark);
  color: #fff;
}

.ats-cta h2 {
  color: #fff;
}

.ats-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.ats-footer {
  padding: 28px 0;
  background: linear-gradient(90deg, var(--ats-blue-deep), var(--ats-blue));
  color: rgba(255, 255, 255, 0.82);
}

.ats-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.ats-footer-rich img {
  width: 150px;
  margin-bottom: 12px;
}

.ats-footer-rich a {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* Footer uses the same readable 1320px content width as the rest of the site. */
.ats-footer {
  padding: 0;
  background: #062b66;
}

.ats-footer__grid {
  min-height: 220px;
  gap: 0;
}

.ats-footer__grid > div {
  padding: 34px 28px 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ats-footer__grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.ats-footer-rich img {
  display: block;
  width: 142px;
  max-width: 100%;
  margin: 0 0 14px;
}

.ats-footer-rich p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.ats-footer-rich strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
}

.ats-footer-rich a {
  margin-top: 0;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.ats-footer-rich a:hover,
.ats-footer-rich a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.ats-footer-topic {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.2;
}

.ats-footer__bottom {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.ats-footer__bottom a {
  margin-left: auto;
  color: inherit;
}

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

  .ats-footer__grid > div,
  .ats-footer__grid > div:first-child {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .ats-footer__grid > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .ats-footer__bottom {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 8px 18px;
  }

  .ats-footer__bottom a {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .ats-footer__grid {
    grid-template-columns: 1fr;
  }

  .ats-footer__grid > div:nth-child(-n + 2) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .ats-footer__grid > div:first-child {
    border-top: 0;
  }
}

/* ATSVARI industrial service direction: dark graphite, white surfaces and restrained red actions. */
:root {
  --ats-blue: #151d20;
  --ats-blue-dark: #111719;
  --ats-blue-deep: #0b1012;
  --ats-red: #d52722;
  --ats-ink: #151a1c;
  --ats-muted: #616a6e;
  --ats-line: #e1e4e5;
  --ats-bg: #f5f6f5;
  --ats-logo-blue: #168bd0;
  --ats-logo-yellow: #efc21a;
}

body {
  color: var(--ats-ink);
  background: #fff;
}

.ats-site-head,
.ats-nav-bar {
  background: #fff;
}

.ats-contact-head {
  min-height: 82px;
}

.ats-logo img {
  width: 178px;
}

.ats-head-item,
.ats-head-item a,
.ats-head-actions {
  color: #1a2022;
}

.ats-nav-bar {
  border-top: 1px solid #eaeded;
  border-bottom: 1px solid #eaeded;
}

.ats-nav-inner {
  justify-content: center;
  gap: 42px;
}

.ats-nav-inner a {
  position: relative;
  padding: 16px 0;
  color: #181d1f;
  font-size: 14px;
}

.ats-nav-inner a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ats-logo-blue);
  content: '';
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ats-nav-inner a:hover::after,
.ats-nav-inner a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.ats-btn,
.ats-help-cta .ats-btn {
  border-color: var(--ats-red);
  background: var(--ats-red);
  box-shadow: none;
}

.ats-btn:hover,
.ats-btn:focus-visible,
.ats-help-cta .ats-btn:hover,
.ats-help-cta .ats-btn:focus-visible {
  border-color: #b81d18;
  background: #b81d18;
}

.ats-btn-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.ats-hero-market {
  overflow: hidden;
  background: #111719;
}

.ats-hero-market__grid.ats-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ats-hero-market__grid {
  min-height: 548px;
  background: #111719;
}

.ats-hero-copy {
  z-index: 2;
  padding: 76px 52px 64px max(32px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: linear-gradient(90deg, #111719 74%, rgba(17, 23, 25, 0.86));
}

.ats-hero-kicker,
.ats-eyebrow {
  color: var(--ats-logo-yellow);
}

.ats-hero-copy h1,
.ats-hero-copy h1 .ats-title-main {
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.ats-hero-copy h1 span {
  color: #fff;
}

.ats-hero-copy h1 .ats-title-main {
  font-size: 48px;
}

.ats-hero-copy p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.ats-hero-media {
  min-height: 548px;
  background: #111719;
}

.ats-hero-product {
  background:
    linear-gradient(90deg, #111719 0%, rgba(17, 23, 25, 0.18) 30%, rgba(17, 23, 25, 0) 56%),
    linear-gradient(0deg, rgba(5, 8, 9, 0.46), rgba(5, 8, 9, 0.02) 50%),
    url("assets/images/hero-home-v2.png") center center / cover no-repeat;
}

.ats-brand-line {
  filter: none;
  opacity: 1;
}

.ats-brand-line span {
  color: var(--ats-logo-yellow);
}

.ats-hero-benefits {
  display: none;
}

.ats-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.ats-center-title,
.ats-section__head h1 {
  color: #111719;
}

.ats-center-title::after {
  width: 54px;
  background: var(--ats-red);
}

.ats-catalog-card,
.ats-service-card {
  border: 1px solid #e1e4e5;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ats-catalog-card:hover,
.ats-service-card:hover {
  border-color: rgba(213, 39, 34, 0.6);
  box-shadow: 0 12px 28px rgba(16, 23, 25, 0.1);
  transform: translateY(-3px);
}

.ats-proof-row {
  border-color: #e1e4e5;
  background: #fff;
}

.ats-proof-row > div {
  min-height: 178px;
  border-color: #e1e4e5;
}

.ats-proof-row i {
  color: var(--ats-red);
}

.ats-help-cta {
  border-radius: 0;
  background: #111719;
}

.ats-footer {
  background: #0d1214;
}

.ats-footer-topic {
  border-color: rgba(213, 39, 34, 0.7);
  color: rgba(255, 255, 255, 0.92);
}

.ats-center-title::after {
  background: linear-gradient(90deg, var(--ats-logo-yellow) 0 50%, var(--ats-logo-blue) 50% 100%);
}

@media (max-width: 900px) {
  .ats-contact-head {
    min-height: 0;
  }

  .ats-hero-market__grid,
  .ats-hero-media {
    min-height: auto;
  }

  .ats-hero-copy {
    padding: 46px 28px 38px;
  }

  .ats-hero-copy h1,
  .ats-hero-copy h1 .ats-title-main {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .ats-nav-inner {
    gap: 0;
  }

  .ats-hero-copy {
    padding: 38px 22px 30px;
  }

  .ats-hero-copy h1,
  .ats-hero-copy h1 .ats-title-main {
    font-size: 32px;
  }

  .ats-hero-copy p {
    font-size: 16px;
  }
}

@media (min-width: 861px) {
  .ats-contact-head {
    flex-wrap: nowrap;
    min-height: 86px;
    gap: 28px;
  }

  .ats-contact-head > .ats-logo {
    flex: 0 0 180px;
    width: 180px;
  }

  .ats-contact-head > .ats-head-info {
    flex: 1 1 auto;
    width: auto;
    justify-content: space-between;
    gap: 18px;
  }

  .ats-head-item,
  .ats-head-item:first-child {
    min-width: 0;
    padding-left: 25px;
    font-size: 14px;
  }

  .ats-contact-head > .ats-head-actions {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    gap: 12px;
  }

  .ats-head-actions .ats-btn-small {
    min-height: 42px;
    padding: 11px 16px;
  }
}

@media (max-width: 860px) {
  .ats-hero__layout,
  .ats-products,
  .ats-help-cta,
  .ats-footer__grid {
    grid-template-columns: 1fr;
  }

  .ats-grid,
  .ats-strip__inner,
  .ats-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ats-catalog-grid,
  .ats-popular-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ats-hero-product img {
    transform: none;
  }

  .ats-head-info {
    display: none;
  }

  .ats-contact-head {
    min-height: auto;
    padding: 10px 0;
  }

  .ats-head-actions {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .ats-logo img {
    width: 118px;
  }

  .ats-btn-small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .ats-nav-bar {
    position: static;
  }

  .ats-menu-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .ats-menu-button i,
  .ats-menu-button i::before,
  .ats-menu-button i::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .ats-menu-button i {
    position: relative;
  }

  .ats-menu-button i::before,
  .ats-menu-button i::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .ats-menu-button i::before {
    top: -7px;
  }

  .ats-menu-button i::after {
    top: 7px;
  }

  .ats-nav-inner {
    display: none;
    min-height: 42px;
    padding: 8px 0 14px;
    font-size: 11px;
  }

  .ats-nav-check:checked ~ .ats-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ats-nav-inner a,
  .ats-nav-inner .ats-search {
    display: block;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
  }

  .ats-nav-inner .ats-search {
    margin-left: 0;
  }

  .ats-hero-market {
    min-height: auto;
    padding: 22px 0 18px;
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 62%, rgba(255, 255, 255, 0.72) 100%),
      url("assets/images/hero-generated.png") center top / cover no-repeat;
  }

  .ats-hero-market__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ats-hero-copy h1,
  .ats-hero-market .ats-hero-copy h1 {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.12;
  }

  .ats-hero-copy h1 .ats-title-main,
  .ats-hero-market .ats-hero-copy h1 .ats-title-main {
    font-size: 28px;
  }

  .ats-hero-copy p {
    max-width: 310px;
    margin-top: 10px;
    font-size: 13px;
  }

  .ats-brand-line {
    gap: 12px;
    margin-top: 12px;
  }

  .ats-brand-line strong {
    font-size: 15px;
  }

  .ats-brand-line img {
    height: 20px;
  }

  .ats-brand-line span {
    font-size: 10px;
  }

  .ats-hero-market .ats-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .ats-hero-market .ats-btn,
  .ats-hero-market .ats-btn-secondary {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .ats-hero-product {
    display: none;
  }

  .ats-hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(0, 31, 78, 0.08);
  }

  .ats-hero-benefits span {
    min-height: 44px;
    padding: 9px 8px;
    border-right: 1px solid var(--ats-line);
    font-size: 9px;
    text-align: center;
  }

  .ats-catalog-grid,
  .ats-popular-row {
    gap: 12px;
  }

  .ats-catalog-card {
    min-height: 0;
    padding: 14px;
  }

  .ats-catalog-card img,
  .ats-icon-card i {
    height: 125px;
  }

  .ats-catalog-card strong {
    min-height: 0;
    font-size: 15px;
  }

  .ats-catalog-card p,
  .ats-catalog-card b {
    font-size: 12px;
  }

  .ats-proof-row div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 6px 10px;
    padding: 12px;
  }

  .ats-proof-row i {
    grid-row: span 2;
    font-style: normal;
    color: var(--ats-blue);
    font-size: 22px;
  }
}

/* Keep the desktop hero outside the 1320px content container. */
@media (min-width: 861px) {
  .ats-hero-market > .ats-hero-market__grid.ats-container {
    width: 100vw !important;
    max-width: none !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
  }
}

@media (min-width: 861px) {
  .ats-hero-market {
    padding: 0 !important;
    background: #111719 !important;
  }

  .ats-hero-market > .ats-hero-market__grid.ats-container {
    display: flex;
    gap: 0;
    min-height: 548px;
  }

  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 46%;
    width: 46%;
    margin-top: 0 !important;
    padding: 76px 52px 64px clamp(56px, 5vw, 96px);
  }

  .ats-hero-market__grid .ats-hero-media {
    flex: 1 1 54%;
    width: 54%;
  }

  .ats-hero-media .ats-hero-benefits {
    display: block;
    top: 50%;
    right: auto;
    left: 9%;
    width: min(310px, 48%);
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(4, 10, 12, 0.2);
  }

  .ats-hero-media .ats-hero-benefits span {
    min-height: 64px;
    padding: 17px 16px 17px 52px;
    color: #0f315e;
    font-size: 14px;
  }
}

/* Final desktop composition: a compact 1320px hero stage with calm typography. */
@media (min-width: 1200px) {
  .ats-hero-market {
    height: 640px !important;
    min-height: 640px !important;
  }

  .ats-hero-market > .ats-hero-market__grid.ats-container {
    width: 1320px !important;
    height: 640px !important;
    min-height: 640px !important;
    max-width: 100% !important;
  }

  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 46% !important;
    width: 46% !important;
    min-height: 640px !important;
    padding: 62px 42px 48px 60px !important;
  }

  .ats-hero-market__grid .ats-hero-media {
    flex: 0 0 54% !important;
    width: 54% !important;
    min-height: 640px !important;
  }

  .ats-hero-media .ats-hero-product {
    width: 100% !important;
    height: 100% !important;
    min-height: 640px !important;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 38%, rgba(255,255,255,0) 64%),
      url("assets/images/hero-home-v2.png") center center / cover no-repeat !important;
  }

  .ats-hero-market .ats-hero-copy h1 {
    max-width: 520px;
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  .ats-hero-market .ats-hero-copy h1 .ats-title-main {
    font-size: 50px !important;
    line-height: 1.04 !important;
  }

  .ats-hero-copy p {
    max-width: 410px;
    margin-top: 18px !important;
    font-size: 17px !important;
    line-height: 1.42 !important;
  }

  .ats-brand-line {
    gap: 16px !important;
    margin-top: 20px !important;
  }

  .ats-brand-line img {
    height: 27px !important;
  }

  .ats-hero-media .ats-hero-benefits {
    left: 9% !important;
    width: min(310px, 48%) !important;
    transform: translateY(-50%) !important;
  }

  .ats-hero-media .ats-hero-benefits span {
    min-height: 62px !important;
    padding: 16px 14px 16px 48px !important;
    font-size: 13px !important;
  }
}

/* Desktop hero is intentionally restrained: centered 1320px stage inside a full-bleed dark band. */
@media (min-width: 861px) {
  .ats-hero-market {
    min-height: 640px;
    background: #111719 !important;
  }

  .ats-hero-market > .ats-hero-market__grid.ats-container {
    width: min(1320px, 100vw) !important;
    min-height: 640px;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-media {
    min-height: 640px;
  }

  .ats-hero-market__grid .ats-hero-copy {
    padding: 76px 46px 58px 64px;
  }
}

/* Service and information pages */
.ats-page-hero {
  background: #f8fafc;
}

.ats-page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--ats-blue-deep);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.ats-page-intro,
.ats-copy-layout > div {
  max-width: 780px;
  color: #43536d;
  font-size: 18px;
}

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

.ats-service-card {
  min-height: 196px;
  padding: 26px;
  border: 1px solid var(--ats-line);
  border-top: 3px solid var(--ats-blue);
  background: #fff;
  color: var(--ats-ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ats-service-card:hover {
  border-color: var(--ats-blue);
  box-shadow: 0 14px 28px rgba(0, 31, 78, 0.12);
  transform: translateY(-3px);
}

.ats-service-card h2 {
  margin: 0 0 12px;
  color: var(--ats-blue-deep);
  font-size: 20px;
}

.ats-service-card p {
  margin: 0;
  color: var(--ats-muted);
}

.ats-copy-layout,
.ats-contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
}

.ats-company-facts,
.ats-contact-panel,
.ats-contact-details {
  padding: 30px;
  border: 1px solid var(--ats-line);
  background: #fff;
}

.ats-company-facts strong,
.ats-contact-details h2,
.ats-contact-panel h2 {
  display: block;
  margin: 0 0 18px;
  color: var(--ats-blue-deep);
  font-size: 20px;
}

.ats-company-facts p,
.ats-contact-details p {
  margin: 0 0 12px;
  color: var(--ats-muted);
}

.ats-contact-form {
  display: grid;
  gap: 14px;
}

.ats-contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ats-ink);
  font-weight: 700;
}

.ats-contact-form input,
.ats-contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #b9c7d8;
  border-radius: 0;
  background: #fff;
  color: var(--ats-ink);
  font: inherit;
}

.ats-contact-form textarea {
  min-height: 122px;
  resize: vertical;
}

.ats-contact-form input:focus,
.ats-contact-form textarea:focus,
.ats-service-card:focus-visible {
  outline: 3px solid rgba(6, 55, 122, 0.28);
  outline-offset: 2px;
  border-color: var(--ats-blue);
}

.ats-form-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--ats-blue);
  background: #eef5ff;
  color: var(--ats-blue-deep);
}

.ats-map-frame iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

.ats-news-list {
  display: grid;
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--ats-line);
}

.ats-news-list article {
  padding: 24px;
  background: #fff;
}

.ats-news-list time {
  color: var(--ats-muted);
  font-size: 14px;
}

.ats-news-list h2 {
  margin: 8px 0;
  color: var(--ats-blue-deep);
  font-size: 24px;
}

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

  .ats-copy-layout,
  .ats-contacts-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .ats-services-grid {
    grid-template-columns: 1fr;
  }

  .ats-service-card,
  .ats-company-facts,
  .ats-contact-panel,
  .ats-contact-details {
    padding: 22px;
  }

  .ats-map-frame iframe {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ats-service-card {
    transition: none;
  }
}

/* Visual service stories */
.ats-service-card {
  min-height: 100%;
  padding: 0 26px 26px;
}

.ats-service-card img {
  display: block;
  width: calc(100% + 52px);
  height: 190px;
  margin-left: -26px;
  object-fit: cover;
  border-bottom: 1px solid var(--ats-line);
  background: #fff;
}

.ats-service-card h2 {
  margin-top: 20px;
}

.ats-service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 48px;
}

.ats-service-detail > div {
  color: #43536d;
  font-size: 18px;
}

.ats-service-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ats-line);
  color: var(--ats-muted);
}

.ats-service-detail__media,
.ats-about-image {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.ats-service-detail__media img {
  display: block;
  width: 100%;
  min-height: 390px;
  max-height: 520px;
  object-fit: cover;
  background: #fff;
}

.ats-service-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ats-line);
  background: #fff;
}

.ats-service-steps > div {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid var(--ats-line);
  color: var(--ats-muted);
}

.ats-service-steps > div:last-child {
  border-right: 0;
}

.ats-service-steps strong {
  color: var(--ats-blue);
  font-size: 28px;
}

.ats-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
}

.ats-about-layout > div:first-child {
  color: #43536d;
  font-size: 18px;
}

.ats-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ats-about-image + .ats-company-facts {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .ats-service-detail,
  .ats-about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ats-service-steps {
    grid-template-columns: 1fr;
  }

  .ats-service-steps > div {
    border-right: 0;
    border-bottom: 1px solid var(--ats-line);
  }

  .ats-service-steps > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .ats-contact-head,
  .ats-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ats-nav-inner {
    overflow-x: visible;
    justify-content: flex-start;
    gap: 0;
  }

  .ats-hero__visual,
  .ats-grid,
  .ats-strip__inner,
  .ats-catalog-grid,
  .ats-popular-row,
  .ats-proof-row {
    grid-template-columns: 1fr;
  }

  .ats-category--primary {
    grid-column: span 1;
  }
}

@media (min-width: 861px) {
  .ats-container {
    width: min(1320px, calc(100% - 112px));
  }

  .ats-hero-market > .ats-container {
    width: min(1320px, calc(100% - 112px));
    margin-left: auto;
    margin-right: auto;
  }

  .ats-nav-inner {
    justify-content: flex-start;
    gap: 70px;
    font-size: 18px;
  }

  .ats-hero-market {
    min-height: 675px;
    padding: 0;
    background:
      linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 24%, rgba(255,255,255,0.66) 41%, rgba(255,255,255,0.08) 63%),
      url("assets/images/hero-generated.png") left center / auto 100% no-repeat;
  }

  .ats-hero-market__grid {
    min-height: 675px;
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: start;
  }

  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 650px;
  }

  .ats-hero-market__grid .ats-hero-product {
    flex: 1 1 auto;
  }

  .ats-hero-market__grid .ats-hero-benefits {
    flex: 0 0 320px;
  }

  .ats-hero-copy {
    margin-top: 88px;
  }

  .ats-hero-market .ats-hero-copy h1 {
    max-width: 650px;
    font-size: 38px;
    line-height: 1.18;
  }

  .ats-hero-market .ats-hero-copy h1 .ats-title-main {
    font-size: 64px;
    line-height: 1.04;
  }

  .ats-hero-copy p {
    max-width: 450px;
    margin-top: 24px;
    font-size: 21px;
    line-height: 1.42;
  }

  .ats-brand-line {
    gap: 22px;
    margin-top: 30px;
  }

  .ats-brand-line strong {
    font-size: 24px;
  }

  .ats-brand-line img {
    height: 32px;
  }

  .ats-brand-line span {
    font-size: 14px;
  }

  .ats-hero-product {
    min-height: 1px;
  }

  .ats-hero-benefits span {
    position: relative;
    min-height: 76px;
    padding: 20px 22px 20px 68px;
    font-size: 17px;
    line-height: 1.28;
  }

  .ats-hero-benefits {
    margin-top: 56px;
  }

  .ats-hero-benefits span::before {
    position: absolute;
    left: 26px;
    top: 50%;
    width: 24px;
    color: var(--ats-blue);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
  }

  .ats-hero-benefits span:nth-child(1)::before { content: "♙"; }
  .ats-hero-benefits span:nth-child(2)::before { content: "▣"; }
  .ats-hero-benefits span:nth-child(3)::before { content: "▱"; }
  .ats-hero-benefits span:nth-child(4)::before { content: "⚒"; }
  .ats-hero-benefits span:nth-child(5)::before { content: "◴"; }
  .ats-hero-benefits span:nth-child(6)::before { content: "◇"; }

  .ats-hero-market .ats-actions {
    flex-wrap: nowrap;
    gap: 28px;
    margin-top: 34px;
  }

  .ats-hero-market .ats-btn,
  .ats-hero-market .ats-btn-secondary {
    min-height: 60px;
    min-width: 235px;
    padding: 14px 30px;
    border-radius: 7px;
    font-size: 17px;
  }

  .ats-section-tight {
    padding: 30px 0 32px;
  }

  .ats-center-title {
    margin-bottom: 34px;
    font-size: 42px;
    text-transform: uppercase;
  }

  .ats-catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  .ats-catalog-card {
    min-height: 360px;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 31, 78, 0.06);
  }

  .ats-catalog-card img,
  .ats-icon-card i {
    height: 165px;
    margin-bottom: 18px;
  }

  .ats-icon-card i {
    font-size: 88px;
  }

  .ats-catalog-card strong {
    min-height: 34px;
    font-size: 19px;
  }

  .ats-catalog-card p {
    margin: 12px 0 26px;
    font-size: 15px;
    line-height: 1.55;
  }

  .ats-catalog-card b {
    font-size: 15px;
  }

  .ats-catalog-card > span {
    left: 20px;
    top: 20px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .ats-proof-row div {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    min-height: 128px;
    padding: 26px 28px;
  }

  .ats-proof-row i {
    grid-row: span 2;
    color: var(--ats-blue);
    font-size: 40px;
    font-style: normal;
  }

  .ats-proof-row strong {
    font-size: 17px;
  }

  .ats-proof-row span {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Keep header and hero as Bootstrap-style blocks without stretching the image across the page. */
.ats-head-info {
  flex: 1 1 auto;
}

.ats-head-actions,
.ats-logo {
  flex: 0 0 auto;
}

.ats-hero-market {
  background: #fff;
}

.ats-hero-market::after {
  display: none;
}

.ats-hero-market__grid {
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 24%, rgba(255,255,255,0.66) 41%, rgba(255,255,255,0.08) 63%),
    url("assets/images/hero-generated.png") left center / auto 100% no-repeat;
}

@media (min-width: 861px) {
  .ats-hero-market {
    padding: 0;
    background: #fff;
  }

  .ats-hero-market > .ats-container {
    width: min(1320px, calc(100% - 112px));
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market {
    padding: 42px 0 36px;
    background: #fff;
  }

  .ats-hero-market__grid {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.86) 62%, rgba(255,255,255,0.42) 100%),
      url("assets/images/hero-generated.png") center center / cover no-repeat;
  }
}

@media (max-width: 860px) {
  .ats-hero-market {
    background: #fff;
  }

  .ats-hero-market__grid {
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 62%, rgba(255, 255, 255, 0.72) 100%),
      url("assets/images/hero-generated.png") center top / cover no-repeat;
  }
}

/* Definitive hero override, kept last so older generated rules cannot win. */
.ats-hero-market,
.ats-hero-market__grid {
  background: #fff;
}

.ats-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 675px;
  overflow: hidden;
}

.ats-hero-media .ats-hero-product {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.34) 34%, rgba(255,255,255,0) 66%),
    url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
}

.ats-hero-media .ats-hero-benefits {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 2;
  width: 320px;
  margin-top: 0;
  transform: translate(-50%, -50%);
}

@media (min-width: 861px) {
  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 650px;
  }

  .ats-hero-market__grid .ats-hero-media {
    flex: 1 1 auto;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market {
    padding: 42px 0 36px;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-media {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .ats-hero-media .ats-hero-product {
    display: block;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.24) 45%, rgba(255,255,255,0) 100%),
      url("assets/images/hero-home-v2.png") center center / auto 100% no-repeat;
  }

  .ats-hero-media .ats-hero-benefits {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(100%, 720px);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 860px) {
  .ats-hero-market,
  .ats-hero-market__grid {
    background: #fff;
  }

  .ats-hero-media {
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .ats-hero-media .ats-hero-product {
    display: none;
  }

  .ats-hero-media .ats-hero-benefits {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
}

@media (min-width: 861px) {
  .ats-brand-line {
    gap: 16px;
  }

  .ats-brand-line img {
    height: 28px;
  }
}

/* Proof row: fixed icon column prevents text overlap in narrow five-column blocks. */
.ats-proof-row div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}

.ats-proof-row i {
  grid-row: 1 / span 2;
  width: 42px;
  color: var(--ats-blue);
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.ats-proof-row strong,
.ats-proof-row span {
  min-width: 0;
}

@media (min-width: 861px) {
  .ats-proof-row div {
    padding: 24px 18px;
  }

  .ats-proof-row i {
    font-size: 32px;
  }

  .ats-proof-row strong {
    font-size: 16px;
    line-height: 1.35;
  }

  .ats-proof-row span {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 860px) {
  .ats-proof-row div {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px;
  }

  .ats-proof-row i {
    width: 28px;
    font-size: 22px;
  }
}

/* Last hero correction: image is only in the media block; benefits are centered inside it. */
.ats-hero-market,
.ats-hero-market__grid {
  background: #fff;
}

.ats-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 675px;
  overflow: hidden;
}

.ats-hero-media .ats-hero-product {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.34) 34%, rgba(255,255,255,0) 66%),
    url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
}

.ats-hero-media .ats-hero-benefits {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 2;
  width: 320px;
  margin-top: 0;
  transform: translate(-50%, -50%);
}

@media (min-width: 861px) {
  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 650px;
  }

  .ats-hero-market__grid .ats-hero-media {
    flex: 1 1 auto;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market {
    padding: 42px 0 36px;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-media {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .ats-hero-media .ats-hero-product {
    display: block;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.24) 45%, rgba(255,255,255,0) 100%),
      url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
  }

  .ats-hero-media .ats-hero-benefits {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(100%, 720px);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 860px) {
  .ats-hero-market,
  .ats-hero-market__grid {
    background: #fff;
  }

  .ats-hero-media {
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .ats-hero-media .ats-hero-product {
    display: none;
  }

  .ats-hero-media .ats-hero-benefits {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
}

/* Final override: benefits and scales image are one shared right-side media block. */
.ats-hero-market {
  background: #fff;
}

.ats-hero-market__grid {
  background: none;
}

.ats-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 675px;
  overflow: hidden;
}

.ats-hero-media .ats-hero-product {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.34) 34%, rgba(255,255,255,0) 66%),
    url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
}

.ats-hero-media .ats-hero-benefits {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 2;
  width: 320px;
  margin-top: 0;
  transform: translate(-50%, -50%);
}

@media (min-width: 861px) {
  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 650px;
  }

  .ats-hero-market__grid .ats-hero-media {
    flex: 1 1 auto;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market {
    background: #fff;
  }

  .ats-hero-market__grid {
    background: none;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-media {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .ats-hero-media .ats-hero-product {
    display: block;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.24) 45%, rgba(255,255,255,0) 100%),
      url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
  }

  .ats-hero-media .ats-hero-benefits {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .ats-hero-market {
    background: #fff;
  }

  .ats-hero-market__grid {
    background: none;
  }

  .ats-hero-media {
    width: 100%;
    min-height: 0;
  }

  .ats-hero-media .ats-hero-product {
    display: none;
  }

  .ats-hero-media .ats-hero-benefits {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
}

/* Final layout: one media block combines scales image and benefits list. */
.ats-hero-market__grid {
  background: none;
}

.ats-hero-market__grid .ats-hero-copy {
  flex: 0 0 650px;
}

.ats-hero-market__grid .ats-hero-media {
  flex: 1 1 auto;
}

.ats-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 675px;
}

.ats-hero-media .ats-hero-product {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 38%, rgba(255,255,255,0) 64%),
    url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
}

.ats-hero-media .ats-hero-benefits {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  width: 320px;
  margin-top: 0;
  transform: translateY(-50%);
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market__grid {
    background: none;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-media {
    flex: 0 0 auto;
    width: 100%;
  }

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

  .ats-hero-media .ats-hero-product {
    display: block;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.24) 44%, rgba(255,255,255,0) 100%),
      url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
  }

  .ats-hero-media .ats-hero-benefits {
    right: 0;
    width: min(100%, 720px);
  }
}

@media (max-width: 860px) {
  .ats-hero-market__grid {
    background: none;
  }

  .ats-hero-media {
    width: 100%;
    min-height: 330px;
  }

  .ats-hero-media .ats-hero-product {
    display: block;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
      url("assets/images/hero-generated.png") center top / contain no-repeat;
  }

  .ats-hero-media .ats-hero-benefits {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
  }
}

/* The scales image is a hero image block, not the benefits block and not the full section background. */
.ats-hero-market__grid {
  background: none;
}

.ats-hero-product {
  align-self: stretch;
  min-height: 365px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.32) 35%, rgba(255,255,255,0) 62%),
    url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
}

@media (min-width: 861px) {
  .ats-hero-product {
    min-height: 675px;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-product {
    display: block;
    min-height: 300px;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 42%, rgba(255,255,255,0) 100%),
      url("assets/images/hero-generated.png") center center / auto 100% no-repeat;
  }
}

@media (max-width: 860px) {
  .ats-hero-market__grid {
    background: none;
  }

  .ats-hero-product {
    display: block;
    width: 100%;
    min-height: 180px;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
      url("assets/images/hero-home-v2.png") center center / contain no-repeat;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-contact-head {
    min-height: auto;
    padding: 22px 0;
  }

  .ats-logo {
    width: auto;
  }

  .ats-logo img {
    width: 210px;
  }

  .ats-head-info {
    display: none;
  }

  .ats-head-actions {
    min-width: 0;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .ats-nav-bar {
    position: static;
  }

  .ats-menu-button {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .ats-menu-button i,
  .ats-menu-button i::before,
  .ats-menu-button i::after {
    display: block;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .ats-menu-button i {
    position: relative;
  }

  .ats-menu-button i::before,
  .ats-menu-button i::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .ats-menu-button i::before {
    top: -8px;
  }

  .ats-menu-button i::after {
    top: 8px;
  }

  .ats-nav-inner {
    display: none;
    min-height: auto;
    padding: 8px 0 16px;
    font-size: 14px;
  }

  .ats-nav-check:checked ~ .ats-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ats-nav-inner a,
  .ats-nav-inner .ats-search {
    display: block;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .ats-nav-inner .ats-search {
    margin-left: 0;
  }

  .ats-hero-market,
  .ats-hero-market > .ats-container,
  .ats-hero-market__grid {
    min-height: auto;
  }

  .ats-hero-market {
    padding: 42px 0 36px;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.86) 62%, rgba(255,255,255,0.42) 100%),
      url("assets/images/hero-generated.png") center center / cover no-repeat;
  }

  .ats-hero-market > .ats-container {
    width: calc(100% - 60px);
    margin-right: auto;
    margin-left: auto;
  }

  .ats-hero-market__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .ats-hero-market__grid .ats-hero-copy,
  .ats-hero-market__grid .ats-hero-product,
  .ats-hero-market__grid .ats-hero-benefits {
    flex: 0 0 auto;
    width: 100%;
  }

  .ats-hero-copy {
    margin-top: 0;
  }

  .ats-hero-product {
    display: none;
  }

  .ats-hero-market .ats-hero-copy h1 {
    max-width: 680px;
    font-size: 34px;
  }

  .ats-hero-market .ats-hero-copy h1 .ats-title-main {
    font-size: 56px;
  }

  .ats-hero-copy p {
    max-width: 560px;
    font-size: 19px;
  }

  .ats-hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .ats-hero-benefits span {
    min-height: 74px;
    padding: 18px 18px 18px 58px;
    font-size: 15px;
  }
}

/* Final block-layout guard: hero image belongs to the inner block, not the full page section. */
.ats-hero-market {
  background: #fff;
}

.ats-hero-market::after {
  display: none;
}

.ats-hero-market__grid {
  background: #fff;
}

@media (min-width: 861px) {
  .ats-hero-market {
    padding: 0;
    background: #fff;
  }

  .ats-hero-market > .ats-container {
    width: min(1320px, calc(100% - 112px));
    margin-right: auto;
    margin-left: auto;
  }

  .ats-hero-market__grid {
    background: #fff;
  }

  .ats-hero-media .ats-hero-benefits {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .ats-hero-market {
    padding: 42px 0 36px;
    background: #fff;
  }

  .ats-hero-market__grid {
    background: #fff;
  }

  .ats-hero-media .ats-hero-benefits {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(100%, 720px);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 860px) {
  .ats-hero-market {
    background: #fff;
  }

  .ats-hero-market__grid {
    background: #fff;
  }

  .ats-hero-market__grid .ats-hero-copy {
    flex: 0 0 auto;
    width: 100%;
  }

  .ats-hero-media {
    min-height: 0;
    overflow: visible;
  }

  .ats-hero-media .ats-hero-product {
    display: none;
  }

  .ats-hero-media .ats-hero-benefits {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
}
