/*
 * APT Instruments custom behavior styles.
 * Keep additions that belong to the theme integration in this single file.
 */

.aq-header-area.apt-header-is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #fff;
}

body.admin-bar .aq-header-area.apt-header-is-sticky { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .aq-header-area.apt-header-is-sticky { top: 46px; }
}

body.apt-wishlist-open { overflow: hidden; }

/* Full-viewport hero: retain the supplied slider classes and Swiper behavior,
 * while giving every slide a consistent viewport-height stage. */
.aqf-slider-area.apt-hero-slider,
.aqf-slider-area.apt-hero-slider .aqf-slider-active,
.aqf-slider-area.apt-hero-slider .swiper-wrapper,
.aqf-slider-area.apt-hero-slider .swiper-slide,
.aqf-slider-area.apt-hero-slider .aqf-slider-item {
  height: 84vh;
  height: 84svh;
}

.aqf-slider-area.apt-hero-slider {
  overflow: hidden;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-item {
  display: flex;
  align-items: center;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-item > .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-thumb {
  height: 100%;
}

.aqf-slider-area.apt-hero-slider .aqf-slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Reusable native WebGL liquid-glass layer. Add apt-liquid-glass to any
 * Elementor section/container that should receive the effect. */
.apt-liquid-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.apt-liquid-glass > *:not(.apt-liquid-glass__canvas) {
  position: relative;
  z-index: 1;
}

.apt-liquid-glass .apt-liquid-glass__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .96;
  mix-blend-mode: normal;
  filter: saturate(1.08) contrast(1.04);
}

.apt-liquid-glass.apt-liquid-glass-fallback .apt-liquid-glass__canvas {
  opacity: .35;
}

/* Lightweight particle-wave field inspired by the supplied Three.js
 * reference. Add apt-particle-wave to any Elementor section/container. */
.apt-particle-wave {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --apt-particle-wave-color: 141, 204, 235;
  --apt-particle-wave-accent: 228, 176, 96;
  --apt-particle-wave-opacity: .92;
  --apt-particle-wave-speed: 1;
  --apt-particle-wave-height: 1;
}

.apt-particle-wave > *:not(.apt-particle-wave__canvas) {
  position: relative;
  z-index: 1;
}

.apt-particle-wave .apt-particle-wave__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--apt-particle-wave-opacity);
  mix-blend-mode: normal;
  filter: saturate(1.12) brightness(1.08);
}

@media (max-width: 767px) {
  .apt-particle-wave {
    --apt-particle-wave-opacity: .68;
    --apt-particle-wave-height: .72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-particle-wave .apt-particle-wave__canvas { opacity: .42; }
}

/* Three.js perspective wavy-cube field. Add the base class and either the
 * dark or light modifier to an Elementor section/container. */
.apt-wavy-cubes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--apt-wavy-cubes-background, #f3f7fa);
  --apt-wavy-cubes-opacity: .9;
  --apt-wavy-cubes-speed: 1;
  --apt-wavy-cubes-height: 1;
  --apt-wavy-cubes-background: #f3f7fa;
  --apt-wavy-cubes-color-base: #4c8198;
  --apt-wavy-cubes-color-high: #c68a2c;
  --apt-wavy-cubes-light: #ffffff;
  --apt-wavy-cubes-light-2: #b8d9e6;
}

.apt-wavy-cubes--dark {
  --apt-wavy-cubes-background: #071019;
  --apt-wavy-cubes-color-base: #5f9fc2;
  --apt-wavy-cubes-color-high: #efbd61;
  --apt-wavy-cubes-light: #dcefff;
  --apt-wavy-cubes-light-2: #6b9fc1;
}

.apt-wavy-cubes--light {
  --apt-wavy-cubes-background: #f3f7fa;
  --apt-wavy-cubes-color-base: #3d7892;
  --apt-wavy-cubes-color-high: #c68a2c;
  --apt-wavy-cubes-light: #ffffff;
  --apt-wavy-cubes-light-2: #b8d9e6;
}

.apt-wavy-cubes > *:not(.apt-wavy-cubes__canvas) {
  position: relative;
  z-index: 1;
}

.apt-wavy-cubes .apt-wavy-cubes__canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--apt-wavy-cubes-opacity);
  transform: translateZ(0);
}

@media (max-width: 767px) {
  .apt-wavy-cubes {
    --apt-wavy-cubes-opacity: .68;
    --apt-wavy-cubes-height: .72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-wavy-cubes .apt-wavy-cubes__canvas { opacity: .5; }
}

.apt-wishlist-panel .aq-wishlist-popup-close,
.apt-wishlist-panel .apt-wishlist-remove {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.apt-wishlist-panel .aq-wishlist-popup-close { cursor: pointer; }
.apt-wishlist-item { gap: 15px; }
.apt-wishlist-stock,
.apt-wishlist-variation-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.2;
}
.apt-wishlist-stock.is-in-stock { color: #287a3d; }
.apt-wishlist-stock.is-out-of-stock { color: #b21f24; }
.apt-wishlist-variation-note { color: rgba(15, 15, 15, 0.7); }
.apt-wishlist-empty { padding: 20px 0; text-align: center; }
.apt-wishlist-empty p { margin-bottom: 20px; }
.apt-wishlist-actions { min-width: 130px; }

.apt-search-sku {
  display: block;
  margin-bottom: 6px;
  color: rgba(15, 15, 15, 0.62);
  font-size: 12px;
  line-height: 1.3;
}

.apt-search-empty {
  margin: 0;
  color: rgba(15, 15, 15, 0.68);
}

.apt-search-view-all {
  margin-top: 4px;
  text-align: right;
}

/* Product category slider: keep every thumbnail centered inside a soft circle. */
.apt-product-categories-slider .aqf-categories-2-active .swiper-wrapper {
  align-items: flex-start;
}

.apt-product-categories-slider .aqf-categories-2-active .swiper-slide {
  display: flex;
  height: auto;
  justify-content: center;
}

.apt-product-categories-slider .aqf-categories-item {
  display: block;
  width: 100%;
  text-align: center;
}

.apt-product-categories-slider .aqf-categories-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 50%;
  background-color: #f0efff;
}

.apt-product-categories-slider .aqf-categories-img img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  object-position: center;
}

/* Top-category slider count: keep the quantity inside the reference circle. */
.apt-top-categories-slider .swiper-slide > a {
  display: block;
  text-align: center;
}

.apt-top-categories-slider .apt-top-category-count {
  margin: 8px 0 0;
  color: #818487;
  font-family: var(--aq-ff-satoshi-medium, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .apt-top-categories-slider .apt-top-category-count { font-size: 13px; }
}

/* Shop by Category product cards: equal, uncropped technical-product imagery. */
.apt-shop-by-category .row > .col {
  display: flex;
  align-items: stretch;
}

.apt-shop-by-category .aq-product-item {
  display: flex;
  width: 100%;
  height: calc(100% - 60px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(22, 35, 54, .04);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.apt-shop-by-category .aq-product-item:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 54, 74, .18);
  box-shadow: 0 13px 30px rgba(22, 35, 54, .11);
}

.apt-shop-by-category .aq-product-thumb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
  padding: 18px;
  overflow: hidden;
  background: #f6f8fb;
}

.apt-shop-by-category .aq-product-thumb > a:not(.aq-product-action-btn) {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.apt-shop-by-category .aq-product-thumb img.aq-product-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform .35s ease;
}

.apt-shop-by-category .aq-product-item:hover .aq-product-thumb img.aq-product-img { transform: scale(1.04); }

.apt-shop-by-category .aq-product-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 16px 22px;
}

.apt-shop-by-category .aq-product-price {
  min-height: 24px;
  margin-bottom: 8px !important;
}

.apt-shop-by-category .aq-product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 0 !important;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apt-shop-by-category .apt-shop-category-empty {
  margin: 0 0 30px;
  color: #818487;
  text-align: center;
}

@media (max-width: 767px) {
  .apt-shop-by-category .aq-product-item { height: calc(100% - 30px); }
  .apt-shop-by-category .aq-product-thumb { padding: 14px; }
  .apt-shop-by-category .aq-product-content { padding: 14px 12px 18px; }
  .apt-shop-by-category .aq-product-title { font-size: 15px; }
}

/* Best sellers: normalize technical product imagery without cropping it. */
.apt-best-sellers .aq-product-active .swiper-wrapper {
  align-items: stretch;
}

.apt-best-sellers .aq-product-active .swiper-slide {
  display: flex;
  height: auto;
  align-items: stretch;
}

.apt-best-sellers .aq-product-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100% - 60px);
  padding: 14px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 18px rgba(22, 35, 54, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.apt-best-sellers .aq-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 35, 54, 0.1);
}

.apt-best-sellers .aq-product-thumb {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px !important;
  padding: 18px;
  overflow: hidden;
  border-radius: 9px;
  background-color: #f6f8fb;
}

.apt-best-sellers .aq-product-thumb > a:not(.aq-product-action-btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.apt-best-sellers .aq-product-thumb img.aq-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.apt-best-sellers .aq-product-item:hover .aq-product-thumb img.aq-product-img {
  transform: scale(1.04);
}

.apt-best-sellers .aq-product-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 4px 4px;
}

.apt-best-sellers .aq-product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apt-best-sellers .aq-product-price {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0;
  line-height: 1.4;
}

.apt-best-sellers .aq-product-price .amount {
  font-size: 16px;
}

@media (max-width: 767px) {
  .apt-best-sellers .aq-product-item {
    padding: 10px;
  }

  .apt-best-sellers .aq-product-thumb {
    padding: 14px;
  }
}

@media (max-width: 767px) {
  .apt-wishlist-item { align-items: flex-start !important; }
  .apt-wishlist-actions { width: 100%; }
}

/* Homepage additions: native Elementor sections using the existing theme system. */
.apt-home-section {
  width: 100%;
  padding: clamp(56px, 7vw, 104px) 20px;
  background-color: #fff;
}

.apt-home-section > .e-con-inner {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
}

.apt-home-section.apt-home-solutions,
.apt-home-section.apt-home-benefits,
.apt-home-section.apt-home-tubing {
  background-color: #f7f9fc;
}

.apt-home-heading,
.apt-home-lead {
  width: 100%;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.apt-home-heading .elementor-heading-title {
  color: #24364a;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.15;
}

.apt-home-lead p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #667384;
  font-size: 17px;
  line-height: 1.65;
}

.apt-home-shortcode {
  width: 100%;
}

.apt-home-shortcode .apt-product-categories-slider {
  padding-top: 24px;
  padding-bottom: 12px;
}

.apt-home-cta {
  margin: 6px auto 0;
  text-align: center;
}

.apt-home-cta .apt-dynamic-category-button,
.apt-product-highlight__content .aq-btn-white {
  color: #fff;
  background-color: #24364a;
  border-color: #24364a;
}

.apt-home-cta .apt-dynamic-category-button:hover,
.apt-product-highlight__content .aq-btn-white:hover {
  color: #24364a;
  background-color: transparent;
  border-color: #24364a;
}

.apt-solution-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1320px);
  margin: 28px auto 0;
}

.apt-solution-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(36, 54, 74, 0.1);
  border-radius: 12px;
  color: #24364a;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 35, 54, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.apt-solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 54, 74, 0.26);
  color: #24364a;
  box-shadow: 0 14px 30px rgba(22, 35, 54, 0.1);
}

.apt-solution-card__eyebrow,
.apt-home-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a51f2b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apt-solution-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 23px;
  line-height: 1.25;
}

.apt-solution-card__count {
  color: #6d7885;
  font-size: 14px;
}

.apt-solution-card__link {
  margin-top: 20px;
  color: #a51f2b;
  font-size: 14px;
  font-weight: 700;
}

.apt-product-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  width: min(100%, 1250px);
  margin: 30px auto 0;
}

.apt-product-highlight__media {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  padding: 36px;
  overflow: hidden;
  border-radius: 14px;
  background-color: #f5f7fa;
}

.apt-product-highlight__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.apt-product-highlight__media:hover img {
  transform: scale(1.035);
}

.apt-product-highlight__content h3 {
  margin: 0 0 18px;
  color: #24364a;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.2;
}

.apt-product-highlight__description {
  margin-bottom: 18px;
  color: #667384;
  font-size: 16px;
  line-height: 1.7;
}

.apt-product-highlight__price {
  margin-bottom: 24px;
  color: #24364a;
  font-size: 21px;
  font-weight: 700;
}

.apt-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  width: min(100%, 900px);
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.apt-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #24364a;
  font-size: 16px;
  line-height: 1.5;
}

.apt-benefits-list__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background-color: #a51f2b;
  font-size: 12px;
}

.apt-support-cta {
  display: flex;
  width: min(100%, 1320px);
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 16px;
  color: #fff;
  background: #162536;
}

.apt-support-cta__content {
  max-width: 700px;
}

.apt-support-cta .apt-home-eyebrow {
  color: #c9d5e2;
}

.apt-support-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.2;
}

.apt-support-cta p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.apt-support-cta__actions {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.apt-support-cta__contact {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.apt-support-cta__contact:hover {
  color: #fff;
}

.apt-support-cta__contact span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 991px) {
  .apt-solution-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apt-support-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .apt-home-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .apt-home-lead p {
    font-size: 15px;
  }

  .apt-solution-card-grid,
  .apt-product-highlight,
  .apt-benefits-list {
    grid-template-columns: 1fr;
  }

  .apt-solution-card {
    min-height: 160px;
    padding: 22px;
  }

  .apt-product-highlight__media {
    padding: 24px;
  }

  .apt-support-cta__actions {
    width: 100%;
  }
}
/* APT reference footer */
.apt-reference-footer {
  --apt-footer-bg: #07090a;
  --apt-footer-panel: #0b0e11;
  --apt-footer-line: rgba(255, 255, 255, .12);
  --apt-footer-muted: #89909a;
  --apt-footer-accent: #dc2632;
  font-family: var(--aq-ff-onest, "Onest", sans-serif);
  background: var(--apt-footer-bg);
  color: #fff;
}

/* Keep the same responsive content width used by the previous footer. */
.apt-reference-footer .container.container-1750 {
  width: 100%;
  max-width: 1750px;
}

.apt-footer-newsletter {
  position: relative;
  overflow: hidden;
  background: var(--apt-footer-panel);
  border-bottom: 1px solid var(--apt-footer-line);
}

.apt-footer-newsletter::before,
.apt-footer-newsletter::after {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 1px;
  content: "";
  pointer-events: none;
  transform: rotate(-1.25deg);
  background: rgba(220, 38, 50, .7);
}

.apt-footer-newsletter::before { top: 58%; }
.apt-footer-newsletter::after { top: 50%; background: rgba(255, 255, 255, .06); transform: rotate(.45deg); }

.apt-footer-newsletter__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: center;
  min-height: 182px;
  padding: 36px 0 34px;
}

.apt-footer-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: #9ba1a8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.apt-footer-kicker > span {
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--apt-footer-accent);
}

.apt-footer-newsletter h2 {
  margin: 0 0 7px;
  color: #f4f5f6;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.apt-footer-newsletter p {
  max-width: 440px;
  margin: 0;
  color: var(--apt-footer-muted);
  font-size: 11px;
  line-height: 1.55;
}

.apt-footer-newsletter__form .wpcf7-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: end;
  margin: 0;
}

/* Contact Form 7 may wrap the controls in a paragraph; keep the reference
 * two-column email/button treatment in either generated markup shape. */
.apt-footer-newsletter__form .wpcf7-form > p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  gap: 0;
  align-items: end;
  margin: 0;
}

.apt-footer-newsletter__form .wpcf7-form > p > .wpcf7-form-control-wrap { min-width: 0; }

.apt-footer-newsletter__form .wpcf7-form > p {
  display: flex;
}

.apt-footer-newsletter__form .wpcf7-form > p > .wpcf7-form-control-wrap { flex: 1 1 auto; }
.apt-footer-newsletter__form .wpcf7-form > p > input[type="submit"] { flex: 0 0 72px; width: 72px; }

.apt-footer-newsletter__form .apt-cf7-newsletter-fields > p {
  display: flex;
  grid-column: 1 / -1;
  gap: 0;
  align-items: end;
  margin: 0;
}

.apt-footer-newsletter__form .apt-cf7-newsletter-fields > p > .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.apt-footer-newsletter__form .apt-cf7-newsletter-fields > p > input[type="submit"] { flex: 0 0 72px; width: 72px; }

.apt-footer-newsletter__form .apt-cf7-newsletter-fields {
  display: contents;
}

.apt-footer-newsletter__form .wpcf7-form-control-wrap { display: block; }

.apt-footer-newsletter__form input[type="email"] {
  width: 100%;
  height: 43px;
  padding: 0 10px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .27);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
}

.apt-footer-newsletter__form input[type="email"]::placeholder { color: #737b84; opacity: 1; }

.apt-footer-newsletter__form input[type="submit"] {
  min-width: 72px;
  height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--apt-footer-accent);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: background-color .25s ease, transform .25s ease;
}

.apt-footer-newsletter__form input[type="submit"]:hover { background: #ef3340; transform: translateY(-1px); }

.apt-footer-newsletter__form small {
  display: block;
  margin-top: 9px;
  color: #626b75;
  font-size: 9px;
  line-height: 1.4;
}

.apt-footer-newsletter__form .wpcf7-not-valid-tip,
.apt-footer-newsletter__form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  border: 0;
  color: #ff8c95;
  font-size: 10px;
}

.apt-footer-main { background: var(--apt-footer-bg); }

.apt-footer-main > .container { padding-top: 52px; padding-bottom: 0; }

.apt-footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: 54px;
  padding-bottom: 45px;
}

.apt-footer-brand__logo { display: inline-block; max-width: 215px; margin-bottom: 19px; }
.apt-footer-brand__logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 62px; }

.apt-footer-brand__description {
  max-width: 260px;
  margin: 0 0 17px;
  color: var(--apt-footer-muted);
  font-size: 11px;
  line-height: 1.65;
}

.apt-footer-contact,
.apt-footer-nav__list { margin: 0; padding: 0; list-style: none; }

.apt-footer-contact { display: grid; gap: 7px; }

.apt-footer-contact li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--apt-footer-muted);
  font-size: 10px;
  line-height: 1.5;
}

.apt-footer-contact li > i { width: 13px; padding-top: 2px; color: var(--apt-footer-accent); text-align: center; }
.apt-footer-contact a { color: inherit; transition: color .2s ease; }
.apt-footer-contact a:hover { color: #fff; }

.apt-footer-socials { display: flex; gap: 7px; margin-top: 19px; }

.apt-footer-socials a {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #d2d6da;
  font-size: 10px;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.apt-footer-socials a:hover { border-color: var(--apt-footer-accent); background: var(--apt-footer-accent); color: #fff; }

.apt-footer-cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.apt-footer-cta span { color: var(--apt-footer-accent); font-size: 16px; line-height: 1; }

.apt-footer-nav h3 {
  margin: 0 0 19px;
  color: #f1f2f3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apt-footer-nav__list { display: grid; gap: 11px; }
.apt-footer-nav__list a { color: var(--apt-footer-muted); font-size: 10px; line-height: 1.4; transition: color .2s ease; }
.apt-footer-nav__list a:hover { color: #fff; }
.apt-footer-nav__list .sub-menu { display: grid; gap: 8px; margin: 8px 0 0 10px; padding: 0; list-style: none; }

.apt-footer-subrow {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--apt-footer-line);
}

.apt-footer-newsletter-link { color: var(--apt-footer-muted); font-size: 10px; transition: color .2s ease; }
.apt-footer-newsletter-link:hover { color: #fff; }
.apt-footer-payments img { display: block; max-width: 180px; height: auto; opacity: .75; }

.apt-footer-bottom { border-top: 1px solid var(--apt-footer-line); background: var(--apt-footer-bg); }

.apt-footer-bottom__inner {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.apt-footer-bottom p { margin: 0; color: #66707a; font-size: 9px; }
.apt-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.apt-footer-bottom nav a { color: #66707a; font-size: 9px; transition: color .2s ease; }
.apt-footer-bottom nav a:hover { color: #fff; }

@media (max-width: 991px) {
  .apt-footer-newsletter__grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .apt-footer-grid { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 1fr)); gap: 38px 28px; }
  .apt-footer-brand { grid-row: span 2; }
}

@media (max-width: 767px) {
  .apt-footer-newsletter__grid { display: block; padding: 34px 0 31px; }
  .apt-footer-newsletter__intro { margin-bottom: 25px; }
  .apt-footer-newsletter__form .wpcf7-form { grid-template-columns: minmax(0, 1fr) auto; }
  .apt-footer-main > .container { padding-top: 39px; }
  .apt-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding-bottom: 35px; }
  .apt-footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .apt-footer-subrow { min-height: 62px; }
  .apt-footer-bottom__inner { display: block; padding: 15px 0 17px; }
  .apt-footer-bottom p { margin-bottom: 12px; }
  .apt-footer-bottom nav { justify-content: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .apt-footer-grid { grid-template-columns: 1fr; }
  .apt-footer-newsletter__form .wpcf7-form { grid-template-columns: 1fr; gap: 10px; }
  .apt-footer-newsletter__form input[type="submit"] { width: 100%; }
  .apt-footer-subrow { align-items: flex-start; flex-direction: column; justify-content: center; gap: 9px; padding: 13px 0; }
}

/* Footer typography: keep the reference layout and width while matching the
 * larger type scale used by the APT Instruments website. */
.apt-reference-footer .apt-footer-kicker {
  font-size: 11px;
}

.apt-reference-footer .apt-footer-newsletter p {
  font-size: 14px;
  line-height: 1.55;
}

.apt-reference-footer .apt-footer-newsletter__form input[type="email"] {
  font-size: 14px;
}

.apt-reference-footer .apt-footer-newsletter__form input[type="submit"] {
  font-size: 12px;
}

.apt-reference-footer .apt-footer-newsletter__form small {
  font-size: 11px;
}

.apt-reference-footer .apt-footer-brand__description {
  font-size: 14px;
  line-height: 1.55;
}

.apt-reference-footer .apt-footer-contact li {
  font-size: 13px;
}

.apt-reference-footer .apt-footer-cta {
  font-size: 13px;
}

.apt-reference-footer .apt-footer-nav h3 {
  font-size: 12px;
}

.apt-reference-footer .apt-footer-nav__list a {
  font-size: 14px;
  line-height: 1.5;
}

.apt-reference-footer .apt-footer-newsletter-link {
  font-size: 13px;
}

.apt-reference-footer .apt-footer-bottom p,
.apt-reference-footer .apt-footer-bottom nav a {
  font-size: 12px;
}

/* Reference footer system: newsletter waveform and technical footer layout. */
.s-news,
.ftr {
  --apt-ref-ink: #0b0d0f;
  --apt-ref-steel: #878f97;
  --apt-ref-steel-2: #aeb5bb;
  --apt-ref-hair-dark: rgba(255, 255, 255, .10);
  --apt-ref-hair-dark-strong: rgba(255, 255, 255, .20);
  --apt-ref-red: #d8232a;
  font-family: var(--aq-ff-onest, "Onest", "Helvetica Neue", Arial, sans-serif);
}

.s-news .wrap,
.ftr .wrap {
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  padding-right: clamp(20px, 4.2vw, 72px);
  padding-left: clamp(20px, 4.2vw, 72px);
}

.s-news {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 110px) 0;
  background: var(--apt-ref-ink);
  color: #fff;
}

.s-news .wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}

.s-news .wave path {
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1;
}

.s-news .wave path.red {
  stroke: var(--apt-ref-red);
  stroke-width: 1.5;
  opacity: .9;
}

.s-news .news-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 70px);
  align-items: center;
}

.s-news .mlabel {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--apt-ref-steel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.s-news .mlabel::before {
  width: 22px;
  height: 1px;
  background: var(--apt-ref-red);
  content: "";
}

.s-news .mlabel i {
  color: var(--apt-ref-red);
  font-style: normal;
}

.s-news h2 {
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.s-news .news-in > div:first-child p {
  max-width: 42ch;
  margin: 0;
  color: var(--apt-ref-steel-2);
  font-size: 1rem;
  line-height: 1.6;
}

.apt-reference-newsletter-form .wpcf7-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0;
}

.apt-reference-newsletter-form .wpcf7-form > p {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  align-items: flex-end;
  min-width: 0;
  margin: 0;
}

.apt-reference-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  flex: 1 1 auto;
  min-width: 230px;
}

.apt-reference-newsletter-form .wpcf7-form input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 57px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--apt-ref-hair-dark-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  transition: border-color .4s ease;
}

.apt-reference-newsletter-form .wpcf7-form input[type="email"]:focus {
  border-bottom-color: var(--apt-ref-red);
}

.apt-reference-newsletter-form .wpcf7-form input[type="email"]::placeholder {
  color: var(--apt-ref-steel);
  opacity: 1;
}

.apt-reference-newsletter-form .wpcf7-form input[type="submit"] {
  min-width: 92px;
  height: 57px;
  padding: 0 20px;
  border: 1px solid var(--apt-ref-red);
  border-radius: 2px;
  background: var(--apt-ref-red);
  color: #fff;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, border-color .3s ease;
}

.s-news .apt-reference-newsletter-form .wpcf7-form > p::after {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: #fff;
  content: "→";
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.s-news .apt-reference-newsletter-form .wpcf7-form input[type="submit"] {
  width: 112px;
  flex: 0 0 112px;
  padding-right: 36px;
}

.apt-reference-newsletter-form .wpcf7-form input[type="submit"]:hover {
  border-color: #ff3a32;
  background: #ff3a32;
  transform: translateY(-2px);
}

.apt-reference-newsletter-form .wpcf7-not-valid-tip,
.apt-reference-newsletter-form .wpcf7-response-output {
  flex-basis: 100%;
  margin: 8px 0 0;
  border: 0;
  color: #ff8b92;
  font-size: .78rem;
}

.apt-reference-newsletter-form .nnote {
  margin: 16px 0 0;
  color: var(--apt-ref-steel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .62rem;
  letter-spacing: .08em;
}

.ftr {
  padding: clamp(52px, 6vw, 88px) 0 0;
  background: #07090a;
  color: var(--apt-ref-steel-2);
}

.ftr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 58px);
  padding-bottom: clamp(40px, 4.4vw, 64px);
}

.ftr-brand-logo {
  display: inline-block;
  max-width: 240px;
}

.ftr-brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62px;
}

.ftr-brand > p {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--apt-ref-steel);
  font-size: .9rem;
  line-height: 1.65;
}

.ftr h4 {
  margin: 0 0 16px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ftr nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftr nav li a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  color: var(--apt-ref-steel-2);
  font-size: .885rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
}

.ftr nav li a::before {
  width: 0;
  height: 1px;
  background: var(--apt-ref-red);
  content: "";
  transition: width .4s cubic-bezier(.16, 1, .3, 1);
}

.ftr nav li a:hover {
  color: #fff;
  transform: translateX(4px);
}

.ftr nav li a:hover::before {
  width: 10px;
}

.ftr nav .sub-menu {
  margin-left: 14px;
}

.ftr-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
  color: var(--apt-ref-steel-2);
  font-size: .885rem;
}

.ftr-contact > a,
.ftr-contact > span {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--apt-ref-steel-2);
  line-height: 1.45;
  text-decoration: none;
}

.ftr-contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  fill: none;
  color: var(--apt-ref-red);
  stroke: currentColor;
  stroke-width: 1.7;
}

.ftr-contact a:hover {
  color: #fff;
}

.ftr-contact a span[aria-hidden="true"] {
  color: var(--apt-ref-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
}

.ftr .socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.ftr .socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--apt-ref-hair-dark);
  border-radius: 2px;
  color: var(--apt-ref-steel-2);
  transition: all .34s cubic-bezier(.22, .61, .36, 1);
}

.ftr .socials a:hover {
  border-color: var(--apt-ref-red);
  background: var(--apt-ref-red);
  color: #fff;
}

.ftr .socials i {
  font-size: 14px;
}

.ftr .apt-footer-cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.ftr .apt-footer-cta span {
  color: var(--apt-ref-red);
  font-size: 1.1rem;
  line-height: 1;
}

.ftr-mid {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid var(--apt-ref-hair-dark);
  flex-wrap: wrap;
}

.ftr .pay {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.ftr .pay .pc {
  display: grid;
  height: 26px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--apt-ref-hair-dark);
  border-radius: 2px;
  color: var(--apt-ref-steel-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6rem;
  letter-spacing: .09em;
}

.ftr-bot {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 0 30px;
  border-top: 1px solid var(--apt-ref-hair-dark);
  color: var(--apt-ref-steel);
  font-size: .78rem;
  flex-wrap: wrap;
}

.ftr-bot a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

.ftr-bot a:hover {
  color: #fff;
}

.ftr-bot .legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* Prevent decorative transforms and wide Elementor rows from creating a page
 * scrollbar while preserving normal vertical scrolling. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
 * Reusable APT Instruments section backgrounds.
 * Add one of these classes to an Elementor section/container. Decorative
 * layers stay behind content and do not require any additional markup.
 * -------------------------------------------------------------------------- */
.apt-bg-orbit,
.apt-bg-glow,
.apt-bg-grid-3d,
.apt-bg-wave,
.apt-bg-particles {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f3f8fb;
}

.apt-bg-orbit > *,
.apt-bg-glow > *,
.apt-bg-grid-3d > *,
.apt-bg-wave > *,
.apt-bg-particles > * {
  position: relative;
  z-index: 1;
}

.apt-bg-orbit::before,
.apt-bg-orbit::after,
.apt-bg-glow::before,
.apt-bg-glow::after,
.apt-bg-grid-3d::before,
.apt-bg-grid-3d::after,
.apt-bg-wave::before,
.apt-bg-wave::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  translate: var(--apt-bg-parallax-x, 0px) var(--apt-bg-parallax-y, 0px);
}

.apt-bg-orbit::before {
  top: -30%;
  left: 38%;
  width: 48%;
  height: 155%;
  border: 1px solid rgba(73, 123, 156, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(73, 123, 156, .08),
    0 0 0 52px rgba(73, 123, 156, .055),
    0 0 48px rgba(73, 123, 156, .1);
  transform: rotate(-18deg);
  animation: apt-bg-orbit-drift 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-orbit::after {
  inset: 0;
  background:
    radial-gradient(circle at 14% 28%, rgba(72, 139, 181, .55) 0 9px, rgba(72, 139, 181, .17) 10px 34px, transparent 35px),
    radial-gradient(circle at 77% 22%, rgba(121, 169, 198, .58) 0 13px, rgba(121, 169, 198, .18) 14px 43px, transparent 44px),
    radial-gradient(circle at 83% 78%, rgba(72, 139, 181, .42) 0 9px, rgba(72, 139, 181, .13) 10px 29px, transparent 30px),
    radial-gradient(circle at 28% 84%, rgba(175, 205, 220, .55) 0 12px, rgba(175, 205, 220, .16) 13px 38px, transparent 39px);
  animation: apt-bg-orbit-spheres 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-glow::before {
  top: -28%;
  right: -8%;
  width: 72%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(82, 157, 199, .34) 0%, rgba(151, 199, 219, .17) 38%, transparent 72%);
  filter: blur(24px);
  transform: translate3d(0, 0, 0);
  animation: apt-bg-glow-float 20s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-glow::after {
  bottom: -36%;
  left: -10%;
  width: 62%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(167, 202, 219, .38) 0%, rgba(210, 228, 237, .16) 42%, transparent 74%);
  filter: blur(28px);
  animation: apt-bg-glow-float-alt 24s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-grid-3d::before {
  inset: -40% -15% -16%;
  background-image:
    linear-gradient(rgba(63, 111, 142, .19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 111, 142, .19) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(850px) rotateX(61deg) scale(1.35) translateY(11%);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .85) 34%, rgba(0, 0, 0, .2) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .85) 34%, rgba(0, 0, 0, .2) 100%);
  animation: apt-bg-grid-drift 26s linear infinite;
  animation-play-state: paused;
}

.apt-bg-grid-3d::after {
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(243, 248, 251, .1) 44%, rgba(243, 248, 251, .84) 100%);
}

.apt-bg-wave::before {
  right: -18%;
  bottom: -52%;
  left: -18%;
  height: 115%;
  border-radius: 48% 52% 0 0 / 35% 42% 0 0;
  background:
    repeating-linear-gradient(174deg, transparent 0 17px, rgba(65, 127, 158, .16) 18px 20px),
    repeating-linear-gradient(8deg, transparent 0 31px, rgba(127, 171, 193, .1) 32px 33px),
    radial-gradient(ellipse at 50% 18%, rgba(91, 157, 186, .28), rgba(196, 222, 232, .12) 48%, transparent 73%);
  filter: blur(.2px);
  transform: rotate(-3deg) translate3d(0, 0, 0);
  animation: apt-bg-wave-motion 19s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-wave::after {
  top: -34%;
  right: -12%;
  width: 70%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126, 185, 209, .25) 0%, rgba(214, 235, 241, .12) 54%, transparent 73%);
  filter: blur(24px);
  animation: apt-bg-wave-orb 23s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.apt-bg-particles::before {
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(243, 248, 251, .3) 100%);
}

.apt-bg-particles > .apt-bg-particles-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.apt-bg-is-visible.apt-bg-orbit::before,
.apt-bg-is-visible.apt-bg-orbit::after,
.apt-bg-is-visible.apt-bg-glow::before,
.apt-bg-is-visible.apt-bg-glow::after,
.apt-bg-is-visible.apt-bg-grid-3d::before,
.apt-bg-is-visible.apt-bg-wave::before,
.apt-bg-is-visible.apt-bg-wave::after {
  animation-play-state: running;
}

@keyframes apt-bg-orbit-drift {
  0% { transform: rotate(-18deg) translate3d(-2%, 1%, 0); }
  100% { transform: rotate(-11deg) translate3d(3%, -2%, 0); }
}

@keyframes apt-bg-orbit-spheres {
  0% { transform: translate3d(-1.5%, 1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, -1.5%, 0) scale(1.025); }
}

@keyframes apt-bg-glow-float {
  0% { transform: translate3d(-3%, 2%, 0) scale(.98); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.04); }
}

@keyframes apt-bg-glow-float-alt {
  0% { transform: translate3d(2%, -2%, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

@keyframes apt-bg-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 54px 27px, 54px 27px; }
}

@keyframes apt-bg-wave-motion {
  0% { transform: rotate(-3deg) translate3d(-1%, 1%, 0) scaleX(1); }
  100% { transform: rotate(2deg) translate3d(2%, -2%, 0) scaleX(1.03); }
}

@keyframes apt-bg-wave-orb {
  0% { transform: translate3d(2%, 1%, 0) scale(.96); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.05); }
}

@media (max-width: 767px) {
  .apt-bg-orbit::before {
    left: 28%;
    width: 66%;
    opacity: .72;
  }

  .apt-bg-grid-3d::before {
    background-size: 38px 38px;
    transform: perspective(650px) rotateX(62deg) scale(1.3) translateY(12%);
    opacity: .72;
  }

  .apt-bg-particles > .apt-bg-particles-canvas {
    opacity: .52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apt-bg-orbit::before,
  .apt-bg-orbit::after,
  .apt-bg-glow::before,
  .apt-bg-glow::after,
  .apt-bg-grid-3d::before,
  .apt-bg-wave::before,
  .apt-bg-wave::after {
    animation: none !important;
  }

  .apt-bg-particles > .apt-bg-particles-canvas {
    display: none;
  }
}

@media (max-width: 760px) {
  .s-news .news-in {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ftr-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 420px) {
  .apt-reference-newsletter-form .wpcf7-form > p {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .apt-reference-newsletter-form .wpcf7-form-control-wrap {
    min-width: 0;
  }

  .apt-reference-newsletter-form .wpcf7-form input[type="submit"] {
    width: 100%;
  }

  .ftr-bot {
    display: block;
  }

  .ftr-bot .legal {
    gap: 12px;
    margin-top: 12px;
  }
}
