/* Visual reference: Apltech — quiet grey surfaces, product-led cards, red actions. */
:root {
  --surface: #f6f6fa;
  --ink: #252936;
  --muted: #656a76;
  --line: #ededf2;
  --red: #d12f32;
  --red-dark: #b92428;
}
.breadcrumbs > .icon {
  height: 13px;
  width: 13px;
  align-self: center;
  color: #858b97;
}
.catalog-toggle .icon {
  width: 21px;
  height: 21px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
svg.icon {
  stroke-width: 1.8;
}
.home-categories .category-intro {
  font-size: 14px;
  line-height: 1.65;
  max-width: 960px;
  margin-bottom: 24px;
}
.home-categories .category-intro p {
  margin-bottom: 8px;
}
.home-categories .category-intro .textlink {
  display: inline-flex;
  text-decoration: none;
  font-size: 13px;
}
.home-categories .section-heading {
  margin-bottom: 18px;
}
.source-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.equipment-tile {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 24px 24px 18px;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.equipment-tile:hover {
  background: #f0f1f7;
  border-color: #dce0e8;
}
.equipment-copy {
  min-height: 130px;
}
.equipment-copy h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.equipment-copy p,
.equipment-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
  max-width: 34ch;
}
.equipment-visual {
  height: 166px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 28px 0;
}
.equipment-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.equipment-visual > .icon {
  width: 52px;
  height: 52px;
  color: #687e9d;
}
.equipment-arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #6c7788;
}
.equipment-arrow .icon {
  width: 17px;
  height: 17px;
}
.equipment-tile:hover .equipment-arrow {
  color: var(--red);
}
.category-directory {
  gap: 18px;
}
.category-directory article {
  padding: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.category-directory .directory-image {
  height: 178px;
  margin: 0 0 20px;
  padding: 20px;
  background: var(--surface);
}
.directory-image img {
  mix-blend-mode: multiply;
}
.category-directory h2 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 20px 14px;
  text-wrap: balance;
}
.category-directory .directory-sub {
  margin: 0 20px;
  padding: 10px 0;
  line-height: 1.5;
  font-size: 13px;
  border-top: 0;
}
.category-directory .directory-sub:hover {
  color: var(--red);
}
.category-directory .directory-sub .icon {
  flex-shrink: 0;
}
.catalog-intro {
  font-size: 14px;
}
.catalog-intro p {
  font-size: 14px;
}
.sidebar {
  border-radius: 8px;
}
.sidebar h3 {
  background: var(--surface);
}
.benefits {
  border: 0;
  background: var(--surface);
  border-radius: 8px;
  gap: 24px;
  padding: 26px;
}
.benefit {
  align-items: flex-start;
  gap: 12px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  background: #e9eef6;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.benefit-icon .icon {
  width: 23px;
  height: 23px;
  color: #526f97;
}
.benefit strong {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 5px;
}
.benefit span:not(.benefit-icon) {
  font-size: 12px;
  line-height: 1.55;
}
.product-card {
  border-radius: 8px;
}
.brand-tile {
  height: 100px;
}
.section-heading h2 {
  font-weight: 600;
  letter-spacing: -0.5px;
}
.section-heading .textlink {
  text-decoration: none;
}
.hero-product {
  opacity: 1;
}
@media (min-width: 1101px) {
  .equipment-copy {
    min-height: 114px;
  }
  .equipment-visual {
    height: 178px;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .source-teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment-copy {
    min-height: 106px;
  }
  .equipment-visual {
    height: 150px;
  }
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .source-teasers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .equipment-tile {
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 14px;
    min-height: 170px;
  }
  .equipment-copy {
    min-height: 0;
    align-self: center;
  }
  .equipment-copy h3 {
    font-size: 17px;
    line-height: 1.35;
    text-wrap: initial;
  }
  .equipment-copy p {
    font-size: 12px;
    line-height: 1.6;
  }
  .equipment-visual {
    height: 112px;
    margin: 0;
    align-self: center;
    padding: 0;
  }
  .equipment-arrow {
    right: 15px;
    bottom: 12px;
    width: 26px;
    height: 26px;
  }
  .home-categories .section-heading {
    gap: 10px;
  }
  .home-categories .section-heading h2 {
    font-size: 22px;
  }
  .section-heading .textlink {
    white-space: nowrap;
  }
  .benefits {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .category-directory {
    gap: 14px;
  }
  .category-directory .directory-image {
    height: 160px;
  }
  .hero-copy p {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .equipment-tile {
    transition: none;
  }
}
/* Mobile review: stable menu panels, centered icons and aligned footer. */
.benefit > .benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.benefit > .benefit-icon > svg {
  display: block;
  width: 23px;
  height: 23px;
  margin: 0;
}
.benefit > div {
  min-width: 0;
}
.footer-grid {
  align-items: start;
}
.footer-grid h3 {
  line-height: 1.4;
}
.footer-grid h3 > a:not(.logo) {
  margin: 0;
  font: inherit;
  color: var(--ink);
}
.footer-grid > div {
  min-width: 0;
}
.footer-grid p,
.footer-grid a {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .navrow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
    padding: 8px 0;
    align-items: start;
  }
  .navrow > a {
    font-size: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 4px;
    line-height: 1.3;
    white-space: nowrap;
  }
  .benefit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }
  .benefit strong {
    font-size: 14px;
  }
  .benefit span:not(.benefit-icon) {
    font-size: 13px;
    line-height: 1.5;
  }
  .benefits {
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
  .footer-grid > .footer-brand {
    grid-column: 1/-1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .footer-grid > .footer-brand h3 {
    margin: 18px 0 10px;
  }
  .footer-grid > .footer-brand p {
    margin: 0;
    max-width: 100%;
    line-height: 1.65;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .footer-grid h3 {
    margin: 0 0 14px;
    font-size: 14px;
  }
  .footer-grid a:not(.logo) {
    margin: 0;
    padding: 8px 0;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.5;
  }
  .footer-grid h3 > a:not(.logo) {
    padding: 0;
    min-height: 0;
    margin: 0;
    font-size: 14px;
  }
  .footer-grid p {
    max-width: 100%;
    margin: 6px 0;
    font-size: 13px;
  }
  .footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
  }
  .headrow .header-phone {
    justify-content: center;
  }
}
/* Reference-derived system: Onest, 14 px controls, 4 px button radius, 8 px cards. */
@font-face {
  font-family: Onest;
  src: url("/assets/onest-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Onest, Arial, sans-serif;
  --red: #e31e24;
  --red-dark: #c51a20;
  --surface: #f3f6fb;
  --ink: #222630;
  --muted: #626b7a;
  --control-height: 46px;
  --control-radius: 4px;
  --motion: 180ms;
}
body,
button,
input,
textarea,
select {
  font-family: Onest, Arial, sans-serif;
}
.logo {
  font-family: Onest, Arial, sans-serif;
  font-weight: 800;
}
.btn,
.product-card .btn,
.btn.light,
.btn.soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 10px;
  vertical-align: middle;
  transition:
    background-color var(--motion),
    border-color var(--motion),
    color var(--motion),
    transform var(--motion);
}
.btn.light {
  border-color: #dfe4ec;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.btn:active {
  transform: translateY(1px);
}
.btn.soft {
  background: #fff0f1;
}
.btn.soft:hover {
  background: #ffe1e3;
}
.btn.light:hover {
  background: #e9eef5;
}
.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-copy .hero-actions .btn {
  margin: 0;
  min-width: 158px;
}
.hero-copy h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
}
.hero-copy p {
  font-size: 15px;
  line-height: 1.65;
}
.hero-copy .eyebrow {
  font-size: 13px;
}
.section-heading {
  align-items: center !important;
  min-height: 40px;
}
.section-heading h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 0;
}
.section-heading > .recommend-label {
  align-self: center;
  line-height: 20px;
  font-size: 14px;
  flex-shrink: 0;
}
.page-title {
  font-weight: 600;
  line-height: 1.25;
}
.equipment-copy h3 {
  font-weight: 500;
}
.equipment-copy p {
  font-size: 14px;
  line-height: 1.55;
}
.product-card h3 {
  font-weight: 600;
  line-height: 1.45;
}
.product-card,
.equipment-tile,
.news-card {
  border-radius: 8px;
}
.product-card {
  transition:
    border-color var(--motion),
    box-shadow var(--motion);
}
.product-card:hover {
  border-color: #d7dfe9;
  box-shadow: 0 4px 18px #2439500a;
}
.equipment-tile {
  transition:
    background-color var(--motion),
    border-color var(--motion);
}
.brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.brands .brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100px;
  padding: 20px;
  background: var(--surface);
  border: 0 !important;
  border-radius: 8px;
  transition: background-color var(--motion);
}
.brands .brand-tile:hover {
  background: #e9eef6;
}
.brands .brand-tile img {
  width: 100%;
  max-width: 164px;
  height: 60px;
  max-height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.navrow > a {
  font-weight: 500;
}
.search input {
  font-size: 14px;
}
.equipment-copy {
  text-align: left;
  align-self: start;
}
.equipment-tile {
  align-items: start;
}
.equipment-visual {
  align-self: end;
}
.footer-grid h3 {
  font-weight: 600;
}
.benefit strong {
  font-weight: 600;
}
@media (max-width: 700px) {
  :root {
    --control-height: 44px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .hero-copy .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
    height: 44px;
    min-height: 44px;
    white-space: nowrap;
  }
  .hero-actions .btn svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.7px;
  }
  .hero-copy p {
    font-size: 14px;
    line-height: 1.65;
  }
  .hero-copy {
    padding: 24px 22px 270px;
  }
  .section-heading h2,
  .home-categories .section-heading h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.5px;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading .recommend-label {
    font-size: 13px;
    line-height: 20px;
  }
  .section-heading .textlink {
    font-size: 12px;
  }
  .equipment-tile {
    align-items: start;
    padding: 20px;
    min-height: 174px;
  }
  .equipment-copy {
    align-self: start;
    text-align: left;
    padding-top: 0;
  }
  .equipment-copy h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0;
  }
  .equipment-copy p {
    font-size: 12px;
    line-height: 1.55;
  }
  .equipment-visual {
    align-self: center;
  }
  .brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .brands .brand-tile {
    height: 94px;
    padding: 18px;
  }
  .brands .brand-tile img {
    max-width: 145px;
    height: 54px;
    max-height: 54px;
  }
  .navrow {
    position: relative;
    gap: 4px 8px;
  }
  .product-card .btn {
    font-size: 12px;
    padding: 0 8px;
    gap: 8px;
  }
  .product-card .btn svg {
    width: 18px;
    flex-basis: 18px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .header-phone {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .product-card,
  .equipment-tile,
  .brand-tile {
    transition: none !important;
  }
  .btn:active {
    transform: none;
  }
}
/* Apltech mobile brand presentation: compact horizontal logo strip. */
@media (max-width: 700px) {
  .brands {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: thin;
    border: 0;
  }
  .brands .brand-tile {
    flex: 0 0 150px;
    height: 44px;
    min-height: 44px;
    padding: 8px 16px;
    scroll-snap-align: start;
  }
  .brands .brand-tile img {
    width: 100%;
    height: 28px;
    max-height: 28px;
    max-width: 118px;
  }
}

/* Compact mobile header and persistent contact shortcut. */
.mobile-nav-toggle,
.navrow .mobile-nav-whatsapp {
  display: none;
}
.floating-whatsapp {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 5px 20px #075e5433;
  border: 2px solid #fff;
  transition:
    background-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.whatsapp-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.floating-whatsapp:hover {
  background: #1cba58;
  box-shadow: 0 7px 24px #075e5440;
  transform: translateY(-2px);
}
.floating-whatsapp:active {
  transform: scale(0.96);
}
footer {
  padding-bottom: 88px;
}
@media (max-width: 760px) {
  .topbar {
    display: none;
  }
  .masthead .headrow {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px 8px;
    min-height: 0;
    padding: 12px 0 16px;
    align-items: center;
  }
  .headrow .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--ink);
    border-radius: 6px;
  }
  .mobile-nav-toggle:hover,
  .headrow .header-phone:hover {
    background: var(--surface);
  }
  .headrow .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    min-width: 0;
  }
  .headrow .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -1px;
  }
  .headrow .logo img {
    max-width: 180px;
    max-height: 40px;
    object-fit: contain;
  }
  .headrow .header-phone {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
    border-radius: 6px;
    color: var(--ink);
  }
  .headrow .header-phone span,
  .headrow .catalog-toggle,
  .headrow .header-whatsapp {
    display: none;
  }
  .headrow .search {
    grid-column: 1/-1;
    grid-row: 2;
    order: initial;
    display: flex;
    width: 100%;
    height: 44px;
    min-width: 0;
    border-radius: 6px;
    background: var(--surface);
  }
  .headrow .search input {
    width: 100%;
    font-size: 14px;
    padding: 12px 14px;
  }
  .headrow .search button {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  .masthead .navrow {
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    white-space: normal;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
  }
  .masthead .navrow.mobile-open {
    display: grid;
  }
  .navrow > a {
    font-size: 15px;
    min-height: 48px;
    padding: 12px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.5;
  }
  .navrow .mobile-nav-whatsapp {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    color: #128c47;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .navrow .mobile-nav-whatsapp .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
  .floating-whatsapp {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp {
    transition: none;
  }
}

.header-phone {
  font-weight: 600;
}
.navrow .mobile-catalog-link {
  display: none;
}
@media (max-width: 760px) {
  .navrow .mobile-catalog-link {
    display: flex;
  }
}

.field-error {
  font-size: 14px;
  color: #ae1a23;
  margin: 4px 0 12px;
}
.field-error:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: #ae1a23 !important;
}
.privacy-link {
  display: block;
  margin: 10px 0 20px;
  font-size: 14px;
  text-decoration: underline;
}
.contact-details {
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 28px;
}
.contact-details h2 {
  margin-top: 0;
}
#request-dialog .source-content {
  font-size: 15px;
}
#request-dialog input[type="checkbox"] {
  flex-shrink: 0;
}

/* Product media: the video is optional and loads only when selected. */
#product-media-stage {
  min-width: 0;
}
.product-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 12px;
  background: #111;
}
.product-video a {
  display: inline-block;
  padding: 12px 0;
}
.thumbnails .video-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 75px;
  min-height: 75px;
  font-size: 12px;
  color: var(--red, #d72c32);
}
.thumbnails button[aria-pressed="true"] {
  border-color: #d72c32;
  box-shadow: 0 0 0 1px #d72c32;
}
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: #64748b;
  padding: 24px;
}
#product-media-stage .image-placeholder {
  height: clamp(220px, 28vw, 360px);
  background: #f5f6f8;
  border-radius: 12px;
}
.image-placeholder .icon {
  width: 32px;
  height: 32px;
}

/* Compact sticky navigation: desktop disclosures, mobile burger and search. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px #20253108;
}
.masthead > .container {
  position: relative;
}
.masthead .headrow {
  gap: 16px;
  padding-block: 20px;
}
.masthead .desktop-menu-toggle {
  display: inline-flex;
  flex: 0 0 auto;
}
.masthead .navrow {
  display: none;
  position: absolute;
  top: 100%;
  left: 20px;
  width: min(340px, calc(100% - 40px));
  padding: 12px;
  margin: 0;
  border: 1px solid #e8eaf0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 16px 32px #20253118;
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
}
.masthead .navrow.mobile-open {
  display: grid;
  gap: 4px;
}
.masthead .navrow > a,
.masthead .navrow > button {
  padding: 14px 16px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font: inherit;
  background: transparent;
  color: #252936;
}
.masthead .navrow > a:hover,
.masthead .navrow > button:hover {
  background: #f4f5f8;
  color: #e51b24;
}
.masthead .mega {
  position: absolute;
  inset: 100% 0 auto;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.catalog-directory {
  position: relative;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 36px #20253124;
  max-height: calc(100dvh - 150px);
  overflow: auto;
}
.catalog-group {
  border-bottom: 1px solid #eef0f4;
}
.catalog-group summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  min-height: 60px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.catalog-group summary::-webkit-details-marker {
  display: none;
}
.catalog-group summary > span:not(.catalog-category-photo) {
  flex: 1;
}
.catalog-group summary > .icon {
  flex: 0 0 24px;
  color: #6b7d94;
}
.catalog-group summary:hover,
.catalog-group[open] summary {
  background: #f4f5f8;
  color: #e51b24;
}
.catalog-group[open] summary > .icon:last-child {
  transform: rotate(90deg);
}
.catalog-group-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 20px;
  padding: 8px 16px 20px 54px;
}
.catalog-group-content a,
.catalog-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  min-height: 44px;
  border-radius: 6px;
}
.catalog-group-content a:hover,
.catalog-all:hover {
  background: #f4f5f8;
  color: #e51b24;
}
.catalog-group-content .catalog-category-link {
  grid-column: 1 / -1;
  font-weight: 600;
  color: #e51b24;
}
.catalog-all {
  color: #e51b24;
  margin-top: 8px;
}
html {
  scroll-padding-top: 140px;
}
@media (min-width: 761px) and (max-width: 1150px) {
  .masthead .headrow {
    flex-wrap: wrap;
    gap: 12px;
  }
  .masthead .headrow .search {
    order: 8;
    flex-basis: 100%;
  }
  .masthead .header-phone {
    margin-left: auto;
  }
  .masthead .header-whatsapp {
    display: none;
  }
  .masthead .navrow,
  .catalog-directory {
    max-height: calc(100dvh - 200px);
  }
}
@media (max-width: 760px) {
  .masthead .headrow {
    padding-block: 12px;
    gap: 10px 8px;
  }
  .masthead .desktop-menu-toggle {
    display: none;
  }
  .masthead .navrow {
    left: 0;
    width: 100%;
    padding: 12px 16px;
    max-height: calc(100dvh - 136px);
  }
  .masthead .navrow .mobile-catalog-link,
  .masthead .navrow .mobile-nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .catalog-directory {
    max-height: calc(100dvh - 136px);
    width: 100%;
  }
  .catalog-group-content {
    grid-template-columns: 1fr;
    padding-left: 16px;
  }
  .catalog-group summary {
    padding: 14px 8px;
  }
}
@media (min-width: 761px) {
  .masthead .navrow {
    left: 300px;
  }
  .catalog-directory {
    min-height: 0;
    width: min(1040px, calc(100% - 64px));
    padding-right: calc(min(1040px, 100vw - 64px) - 332px);
  }
  .catalog-group {
    width: 308px;
  }
  .catalog-group-content {
    position: absolute;
    left: 332px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    overflow-y: auto;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 16px;
    border-left: 1px solid #eef0f4;
  }
  .catalog-all {
    width: 308px;
  }
}

/* Navigation drawer keeps category navigation separate from product listings. */
.btn.mobile-filter {
  display: none;
}
.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}
.mobile-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-enter 180ms ease-out;
}
.mobile-drawer::backdrop {
  background: rgb(22 29 40 / 48%);
}
body:has(.mobile-drawer[open]) {
  overflow: hidden;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 20px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-heading .logo {
  font-size: 28px;
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #f4f5f8;
  border-radius: 8px;
}
.drawer-back {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
}
.drawer-back .icon {
  transform: rotate(180deg);
}
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px;
}
.drawer-body h2 {
  margin: 0 0 24px;
  font-size: 25px;
  line-height: 1.2;
}
.drawer-catalog {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 16px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 600;
  text-align: left;
}
.drawer-catalog span {
  flex: 1;
}
.drawer-links {
  display: grid;
  margin-top: 20px;
}
.drawer-links a,
.drawer-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}
.drawer-links .icon,
.drawer-categories .icon {
  color: var(--muted);
  width: 18px;
}
.drawer-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 16px;
  background: #f4f5f8;
  color: var(--red);
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 8px;
}
.drawer-contact {
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.drawer-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
}
.drawer-contact p {
  margin: 2px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.drawer-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #cdded3;
  border-radius: 8px;
  background: #fff;
  color: #176c3a;
  font-weight: 500;
}
.drawer-whatsapp svg {
  width: 22px;
  height: 22px;
}
.drawer-links a:hover,
.drawer-categories a:hover,
.drawer-back:hover {
  color: var(--red);
}
@keyframes drawer-enter {
  from {
    transform: translateX(-24px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .btn.mobile-filter {
    display: inline-flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer[open] {
    animation: none;
  }
}
@media (max-width: 760px) {
  .mobile-drawer {
    width: 100%;
  }
}

/* Compact category directory with real product thumbnails. */
.catalog-category-photo {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #fff;
}
.catalog-category-photo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.catalog-group summary {
  padding: 10px 12px;
  gap: 12px;
}
.catalog-directory > .catalog-all {
  display: flex;
  align-items: center;
  line-height: 1.4;
  padding: 12px 16px;
  min-height: 48px;
  margin-top: 8px;
}
.catalog-directory .catalog-group-content a {
  padding: 10px 12px;
}

/* Shared home grid: four desktop columns, two tablet columns, one mobile column. */
#main > .section {
  margin-block: 48px;
}
#main .source-teasers,
#main .products {
  gap: 20px;
}
.home-categories .category-intro {
  max-width: calc((100% - 20px) / 2);
}
.benefits {
  gap: 0;
  padding: 24px 0;
}
.benefits > .benefit {
  padding: 0 24px;
  min-width: 0;
}
.benefits > .benefit + .benefit {
  border-left: 1px solid #dce1e9;
}
.footer-brand > .logo {
  margin-bottom: 20px;
}
@media (min-width: 1101px) {
  .source-teasers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .equipment-tile {
    padding: 22px 20px 18px;
  }
  .equipment-copy {
    min-height: 138px;
  }
  .equipment-visual {
    height: 156px;
  }
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .benefits {
    row-gap: 40px;
  }
  .benefits > .benefit {
    position: relative;
  }
  .benefits > .benefit:nth-child(odd) {
    border-left: 0;
  }
  .benefits > .benefit:nth-child(n + 3) {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
  .benefits > .benefit:nth-child(n + 3)::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 24px;
    right: 24px;
    border-top: 1px solid #dce1e9;
  }
}
@media (max-width: 700px) {
  #main > .section {
    margin-block: 32px;
  }
  .home-categories .category-intro {
    max-width: 100%;
  }
  #main .source-teasers {
    gap: 12px;
  }
  .benefits {
    padding: 8px 20px;
  }
  .benefits > .benefit {
    padding: 18px 0;
  }
  .benefits > .benefit + .benefit {
    border-left: 0;
    border-top: 1px solid #dce1e9;
  }
}

/* Footer uses the same responsive column rhythm as the home sections. */
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; align-items: start; }
.footer-grid > div { min-width: 0; grid-column: auto; }
.footer-grid h3, .footer-grid .logo { margin-top: 0; }
.footer-grid p, .footer-grid a { overflow-wrap: anywhere; }
.footer-grid .footer-brand p { max-width: 100%; }
@media (min-width: 701px) and (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
}

.home .news-grid, .news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: none; }
.news-grid .news-card { width: auto; min-width: 0; display: flex; flex-direction: column; }
.news-grid .news-card > .textlink { margin-top: auto; padding-top: 16px; }
@media (max-width: 700px) { .home .news-grid, .news-grid { grid-template-columns: 1fr; } }
