/*
 * Atlas Hydro — design system
 * Industrial RTL · Vazirmatn · charcoal / steel / red accent
 */

:root {
  --ink: #0B1C2C;
  --ink-deep: #07131E;
  --brand-green: #0B5C2E;
  --brand-green-deep: #084526;
  --accent: #E31C23;
  --accent-hover: #C4161C;
  --surface: #F7F8FA;
  --steel: #4A5568;
  --steel-light: #718096;
  --white: #fff;
  --border: #E2E8F0;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 12px 40px rgba(11, 28, 44, 0.08);

  /* aliases for older class naming */
  --color-navy: var(--ink);
  --color-navy-deep: var(--ink-deep);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-offwhite: var(--surface);
  --color-steel: var(--steel);
  --color-steel-light: var(--steel-light);
  --color-border: var(--border);
  --color-white: var(--white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.content-narrow {
  width: min(100%, 720px);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 44, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled,
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 19, 30, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
  position: relative;
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  min-width: 0;
}

.brand-link:hover {
  color: var(--white);
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--brand-green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  order: 3;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 0 1 auto;
  min-width: 0;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav .menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
  color: var(--white);
}

.header-cta {
  flex-shrink: 0;
  order: 2;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary,
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  border-color: var(--accent-hover);
}

.btn--secondary,
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover,
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost,
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--sm,
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------------- */
/* Hero — full-bleed                                                          */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5rem;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-plane__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  animation: hero-pan 18s var(--ease) infinite alternate;
}

@keyframes hero-pan {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.06) translateX(-1.5%); }
}

.hero-plane__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 19, 30, 0.88) 0%, rgba(11, 28, 44, 0.72) 48%, rgba(185, 28, 28, 0.38) 100%),
    linear-gradient(180deg, transparent 35%, rgba(7, 19, 30, 0.88) 100%);
}

.hero-plane__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: hero-in 0.9s var(--ease) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--white);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section--muted,
.section--trust {
  background: var(--white);
}

.section--products {
  background: var(--surface);
}

.section--blog {
  background: var(--white);
}

.section--pillars {
  background: var(--surface);
}

.section-header {
  position: relative;
  max-width: 720px;
  margin-bottom: 2.75rem;
  padding-top: 0.15rem;
}

.section-header::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--brand-green));
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-header p {
  margin: 0;
  max-width: 54ch;
  color: var(--steel);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.section-header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.section-header--row::before {
  width: 100%;
  max-width: 2.75rem;
}

.section-header--row .section-header__copy {
  flex: 1 1 18rem;
  max-width: 54ch;
}

.section-header--row .section-header__action {
  flex: 0 0 auto;
  margin-bottom: 0.15rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.feature-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-rows--spaced {
  margin-top: 2.5rem;
}

.feature-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row h2,
.feature-row h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.feature-row p {
  margin: 0;
  color: var(--steel);
  max-width: 62ch;
}

.service-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.service-media-card {
  border-top: 3px solid var(--accent);
  padding-top: 0;
}

.service-media-card__media {
  aspect-ratio: 640 / 420;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: #d8dee6;
}

.service-media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.service-media-card:hover .service-media-card__media img {
  transform: scale(1.03);
}

.service-media-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.service-media-card p {
  margin: 0;
  color: var(--steel);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  padding: 1.75rem 0;
  border-top: 3px solid var(--accent);
}

.pillar-icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.pillar-icon svg {
  display: block;
}

.pillar-media {
  aspect-ratio: 640 / 420;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: #d8dee6;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.pillar:hover .pillar-media img {
  transform: scale(1.04);
}

.pillar h3 {
  font-size: 1.2rem;
}

.pillar p {
  margin: 0;
  color: var(--steel);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.category-item {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}

.category-item:hover {
  color: inherit;
}

.category-item h3 {
  margin-bottom: 0.35rem;
}

.category-item p {
  margin: 0 0 0.65rem;
  color: var(--steel);
  font-size: 0.95rem;
}

.split-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.plain-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 0;
  padding-inline-start: 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--steel);
}

.plain-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.industrial-panel {
  min-height: 280px;
  background:
    linear-gradient(145deg, var(--ink) 0%, #1a3348 55%, #3f1515 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 0 100%);
}

/* -------------------------------------------------------------------------- */
/* Product grid / cards                                                       */
/* -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.product-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-card__link:hover {
  color: inherit;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0;
  background:
    linear-gradient(145deg, rgba(11, 92, 46, 0.08), transparent 45%),
    linear-gradient(160deg, #d5dde6, #eef2f6);
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
  z-index: 1;
}

.product-card__link:hover .product-card__media::after,
.product-card__link:focus-visible .product-card__media::after {
  width: 100%;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.65s var(--ease);
}

.product-card__link:hover .product-card__media img,
.product-card__link:focus-visible .product-card__media img {
  transform: scale(1.05);
  filter: contrast(1.03) saturate(1.04);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    linear-gradient(135deg, #cfd6de 0%, #e8ecf0 50%, #b7c0cb 100%);
}

.product-card__media img[src$=".svg"],
.product-media img[src$=".svg"] {
  object-fit: contain;
  padding: 1.25rem;
  background:
    linear-gradient(145deg, #e8edf2 0%, #f7f8fa 55%, #dfe6ee 100%);
}

.product-card__media img[src$=".jpg"],
.product-card__media img[src$=".jpeg"],
.product-card__media img[src$=".webp"],
.product-media img[src$=".jpg"],
.product-media img[src$=".jpeg"],
.product-media img[src$=".webp"] {
  object-fit: cover;
  padding: 0;
  background: #d8dee6;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 0 0.15rem;
}

.product-card__cat {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: 0.04em;
}

.product-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.4;
  transition: color 0.25s var(--ease);
}

.product-card__link:hover .product-card__title,
.product-card__link:focus-visible .product-card__title {
  color: var(--accent);
}

.product-card__excerpt {
  margin: 0 0 0.85rem;
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.product-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.product-media img,
.product-media .product-placeholder {
  width: 100%;
  min-height: 280px;
}

.product-lead {
  font-size: 1.1rem;
  color: var(--steel);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.term-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.term-pill:hover {
  color: var(--white);
  border-color: var(--white);
}

.specs-block,
.faq-block {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.specs-block h2,
.faq-block h2 {
  font-size: 1.25rem;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.specs-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--steel);
}

.specs-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 0.65rem;
  background: var(--accent);
  vertical-align: middle;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: left;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--steel);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin-bottom: 2rem;
}

.filter-link {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom-width: 1px;
  color: var(--steel);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.3;
  background: var(--white);
}

.filter-link:hover,
.filter-link.is-active {
  color: var(--ink);
  border-color: var(--accent);
  background: #fff5f5;
}

.empty-note {
  color: var(--steel);
  grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------- */
/* Blog / posts                                                               */
/* -------------------------------------------------------------------------- */

.post-list {
  display: grid;
  gap: 2rem;
}

.post-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.post-title a {
  color: var(--ink);
}

.post-title a:hover {
  color: var(--accent);
}

.post-date,
.post-type-label {
  display: block;
  font-size: 0.85rem;
  color: var(--steel-light);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.post-featured {
  margin: 0 0 1.5rem;
}

.post-featured img {
  width: 100%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.blog-grid--editorial {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.blog-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.blog-card {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin: 0.35rem 0 0.55rem;
}

.blog-card h3 a {
  color: var(--ink);
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card p {
  color: var(--steel);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(11, 92, 46, 0.18), transparent 42%),
    linear-gradient(160deg, #1a2b3a, #0b1c2c 70%);
  isolation: isolate;
}

.blog-card__media--empty::before {
  content: "";
  position: absolute;
  inset: auto 12% 18% auto;
  width: 42%;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
  z-index: 1;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.blog-card__media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(7, 19, 30, 0.45) 100%);
  opacity: 0.75;
  transition: opacity 0.45s var(--ease);
}

.blog-card:hover .blog-card__img,
.blog-card:focus-within .blog-card__img {
  transform: scale(1.05);
  filter: saturate(1.04) contrast(1.02);
}

.blog-card:hover .blog-card__media-shade,
.blog-card:focus-within .blog-card__media-shade {
  opacity: 0.55;
}

.blog-card--featured {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--ink-deep);
  color: var(--white);
  overflow: hidden;
}

.blog-card--featured .blog-card__media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.blog-card--featured .blog-card__media-shade {
  background: linear-gradient(180deg, transparent 55%, rgba(7, 19, 30, 0.55) 100%);
}

.blog-card--featured .blog-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  color: var(--white);
}

.blog-card--featured .post-date {
  display: inline-block;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 0.55rem;
  margin: 0;
}

.blog-card--featured h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0.55rem 0 0.65rem;
}

.blog-card--featured h3 a {
  color: var(--white);
}

.blog-card--featured h3 a:hover {
  color: #ffd7d9;
}

.blog-card--featured p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 38rem;
}

.blog-card--featured .text-link {
  margin-top: auto;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.blog-card--featured .text-link:hover {
  color: #ffd7d9;
  border-bottom-color: var(--accent);
}

.blog-card--compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 0.95rem;
  align-items: center;
  min-width: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-rail .blog-card--compact:first-child {
  padding-top: 0;
}

.blog-rail .blog-card--compact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blog-card--compact .blog-card__media {
  width: 112px;
  height: 112px;
  max-width: 112px;
  aspect-ratio: 1 / 1;
  justify-self: stretch;
}

.blog-card--compact .blog-card__media-shade {
  background: linear-gradient(180deg, transparent 60%, rgba(7, 19, 30, 0.3) 100%);
  opacity: 0.5;
}

.blog-card--compact .blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.blog-card--compact .post-date {
  margin: 0;
  font-size: 0.78rem;
  color: var(--steel-light);
}

.blog-card--compact h3 {
  font-size: 0.98rem;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.45;
}

.blog-card--compact h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.blog-card--compact p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

.blog-card--compact .text-link {
  font-size: 0.86rem;
}

/* -------------------------------------------------------------------------- */
/* Page hero / breadcrumbs                                                    */
/* -------------------------------------------------------------------------- */

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}

.page-hero--compact {
  padding: 2rem 0 1.75rem;
}

.page-hero .page-title,
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
}

.page-hero .page-lead {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs span,
.breadcrumbs__item {
  display: inline;
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.5rem;
  opacity: 0.55;
}

.site-main .breadcrumbs:not(.page-hero .breadcrumbs) {
  color: var(--steel);
}

.site-main .breadcrumbs:not(.page-hero .breadcrumbs) a {
  color: var(--steel);
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

.atlas-form {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.atlas-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.atlas-form input[type="text"],
.atlas-form input[type="tel"],
.atlas-form input[type="email"],
.atlas-form input[type="number"],
.atlas-form select,
.atlas-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s;
}

.atlas-form input:focus,
.atlas-form select:focus,
.atlas-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-full {
  grid-column: 1 / -1;
}

.atlas-form fieldset {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  margin: 0;
}

.atlas-form legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.atlas-form .radio {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin: 0.35rem 0;
}

.form-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--steel);
}

.form-notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-inline-start: 3px solid;
}

.form-notice--success {
  background: #edf7f0;
  border-color: #1b7a3d;
  color: #14532d;
}

.form-notice--error {
  background: #fdecec;
  border-color: var(--accent);
  color: #7f1d1d;
}

.atlas-captcha {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 92, 46, 0.04), transparent);
}

.atlas-captcha label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.atlas-captcha__prompt {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--steel);
}

.atlas-captcha__prompt strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.atlas-captcha__input,
.comment-form .atlas-captcha__input {
  width: 100%;
  max-width: 12rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.atlas-captcha__input:focus,
.comment-form .atlas-captcha__input:focus {
  outline: none;
  border-color: var(--ink);
}

.comment-form .atlas-captcha {
  margin: 1rem 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 420px;
}

.search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-form .search-field {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

.search-form .search-submit {
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--white);
  border: 0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Contact / support                                                          */
/* -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact .contact-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.contact-list--page li {
  border-bottom-color: var(--border);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel-light);
  margin-bottom: 0.2rem;
}

.footer-contact .contact-label {
  color: rgba(255, 255, 255, 0.55);
}

.support-steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.support-step {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.support-step h2 {
  font-size: 1.1rem;
}

.support-step p {
  margin: 0;
  color: var(--steel);
}

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}

.cta-band a:not(.btn) {
  color: #fca5a5;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Floating call button                                                       */
/* -------------------------------------------------------------------------- */

.fab-call {
  position: fixed;
  z-index: 90;
  inset-inline-end: max(0.85rem, env(safe-area-inset-right));
  inset-block-end: max(0.85rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.05rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab-call:hover,
.fab-call:focus-visible {
  color: #fff;
  background: #991b1b;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(185, 28, 28, 0.42);
}

.fab-call__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
}

.fab-call__text {
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-title {
  display: block;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 50%;
  background: #fff;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.visual-strip__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8dee6;
}

.visual-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.visual-strip__item:hover img {
  transform: scale(1.04);
}

.about-visual {
  margin: 0 0 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8dee6;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-block {
  margin-top: 2.5rem;
}

.map-block__title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.map-block__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8dee6;
  border-top: 3px solid var(--accent);
}

.map-block__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 380px;
}

.form-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-right: 3px solid var(--accent);
  background: #f7f8fa;
}

.form-notice--success {
  border-color: var(--brand-green);
  background: #eef7f1;
}

.form-notice--error {
  border-color: var(--accent);
  background: #fdf2f2;
}

.ceo-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.ceo-block__media {
  margin: 0;
  overflow: hidden;
  background: #d8dee6;
  aspect-ratio: 3 / 4;
}

.ceo-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ceo-block__label {
  margin: 0 0 0.35rem;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.9rem;
}

.ceo-block__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.ceo-block__text {
  margin: 0;
  color: var(--steel);
  max-width: 42ch;
}

.footer-lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-made {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-menu a:hover {
  color: var(--white);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.65rem;
  color: #fff;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__icon {
  display: flex;
  line-height: 0;
}

.footer-social__icon svg,
.footer-social__img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: inherit;
}

.footer-social__link--whatsapp:hover,
.footer-social__link--whatsapp:focus-visible,
.footer-social__link--eitaa:hover,
.footer-social__link--eitaa:focus-visible,
.footer-social__link--bale:hover,
.footer-social__link--bale:focus-visible,
.footer-social__link--rubika:hover,
.footer-social__link--rubika:focus-visible,
.footer-social__link--telegram:hover,
.footer-social__link--telegram:focus-visible,
.footer-social__link--instagram:hover,
.footer-social__link--instagram:focus-visible,
.footer-social__link--linkedin:hover,
.footer-social__link--linkedin:focus-visible,
.footer-social__link--youtube:hover,
.footer-social__link--youtube:focus-visible,
.footer-social__link--x:hover,
.footer-social__link--x:focus-visible,
.footer-social__link--aparat:hover,
.footer-social__link--aparat:focus-visible {
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Prose / widgets / pagination / 404                                         */
/* -------------------------------------------------------------------------- */

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.widget {
  margin-bottom: 1.75rem;
}

.widget-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pagination {
  margin-top: 2.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.section--404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--accent);
  opacity: 0.85;
}

/* Comments */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* -------------------------------------------------------------------------- */
/* Reveal animations                                                          */
/* -------------------------------------------------------------------------- */

.reveal,
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible,
.reveal.visible,
[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .blog-grid--editorial {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .blog-card--featured .blog-card__media {
    aspect-ratio: 16 / 10;
  }

  .blog-card--compact {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .blog-card--compact .blog-card__media {
    width: 120px;
    height: 120px;
    max-width: 120px;
  }

  .primary-nav .menu {
    gap: 0.2rem 0.75rem;
  }

  .primary-nav .menu a {
    font-size: 0.86rem;
  }
}

@media (max-width: 960px) {
  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
    max-height: min(78vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }

  .primary-nav .menu a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: normal;
    font-size: 0.95rem;
  }

  .header-cta {
    padding-inline: 0.9rem;
    font-size: 0.85rem;
    margin-inline-end: 0.15rem;
  }

  .header-inner {
    gap: 0.55rem;
  }

  .pillar-grid,
  .blog-grid,
  .category-list,
  .split-block,
  .product-layout,
  .contact-layout,
  .footer-grid,
  .service-media-grid {
    grid-template-columns: 1fr;
  }

  .section-header--row {
    align-items: flex-start;
  }

  .section-header--row .section-header__action {
    width: 100%;
  }

  .section-header--row .section-header__action .btn {
    width: 100%;
  }

  .blog-grid--editorial {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .blog-card--featured {
    grid-row: auto;
  }

  .blog-card--featured .blog-card__media {
    aspect-ratio: 16 / 10;
  }

  .blog-card--featured .blog-card__body {
    margin-top: 0;
  }

  .blog-card--compact {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 0.85rem;
  }

  .blog-card--compact .blog-card__media {
    width: 104px;
    height: 104px;
    max-width: 104px;
  }

  .visual-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ceo-block {
    grid-template-columns: 1fr;
  }

  .pillar-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-item {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
  }

  .filter-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .prose table,
  .product-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .pillar-grid--4 {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--compact {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .blog-card--compact .blog-card__media {
    width: 88px;
    height: 88px;
    max-width: 88px;
  }

  .blog-card--compact p {
    display: none;
  }

  .blog-card--featured .blog-card__media {
    aspect-ratio: 16 / 11;
  }

  .hero {
    min-height: calc(78svh - var(--header-h));
    padding: 2.75rem 0 3.25rem;
    align-items: flex-end;
  }

  .hero-title {
    max-width: none;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions,
  .section-actions,
  .product-actions,
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .page-hero {
    padding: 2.25rem 0 2rem;
  }

  .fab-call__text {
    display: none;
  }

  .fab-call {
    min-height: 3rem;
    min-width: 3rem;
    padding: 0.7rem;
    justify-content: center;
    border-radius: 999px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .visual-strip {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    padding-inline: 0.7rem;
    font-size: 0.8rem;
  }

  .btn {
    width: 100%;
  }

  .header-cta.btn {
    width: auto;
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  [data-animate="fade-up"] {
    opacity: 1;
    transform: none;
  }

  .hero-plane__photo {
    animation: none;
  }
}
