:root {
  --brand-orange: #fe5000;
  --brand-black: #111111;
  --header-bg: #ffffff;
  --header-hover: #fff3eb;
  --header-text: #1e1e1e;
  --header-border: #eaeaea;
  --header-accent: #fe5000;
  --surface-bg: #f4f5f7;
  --body-bg: #edf1f5;
  --text-main: #223148;
  --muted: #6b7280;
  --line: #d8dee6;
  --price: #ff6a00;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text-main);
  background: var(--body-bg);
  overflow-x: hidden;
}

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

.container {
  width: min(1240px, 94%);
  margin-inline: auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: clamp(44px, 6.2vw, 70px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--header-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--header-hover);
  color: var(--header-accent);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  min-width: 42px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--header-accent);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 3.5px;
  border-radius: 0;
  background: var(--header-accent);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 3.5px;
  border-radius: 0;
  background: var(--header-accent);
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url('../../img/banner.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-color: #123355;
  aspect-ratio: 1920 / 600;
  min-height: 0;
}

.hero-search-wrap {
  display: none;
  position: absolute;
  top: 50%;
  right: clamp(52px, 7vw, 130px);
  transform: translateY(-50%);
  z-index: 2;
  width: min(560px, 40vw);
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hero-search-label {
  margin: 0;
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.08rem, 1.55vw, 1.62rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 8px rgba(7, 22, 45, 0.4);
}

.hero-search-wrap .catalog-search {
  width: 100%;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(10, 24, 45, 0.26);
}

.hero-search-wrap .catalog-search-input {
  min-height: 52px;
  border-radius: 999px;
  font-size: 1rem;
  padding: 0 18px;
  background: #ffffff;
}

.hero-search-wrap .catalog-search-btn {
  width: 52px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--brand-orange);
}

.hero-search-wrap .catalog-search-btn:hover {
  background: #e34700;
}

@media (min-width: 901px) {
  .hero-search-wrap {
    display: flex;
  }
}

body:not([data-page="home"]) .hero-banner {
  display: none;
}

.home-main {
  padding: clamp(22px, 4vw, 42px) 0 46px;
}

.highlights-block {
  background: transparent;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h1 {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: #16376b;
  line-height: 1;
}

.subdomain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subdomain-chip {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d0d8e2;
  background: #f8fafc;
  color: #546377;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.subdomain-chip:hover {
  background: #e9eef5;
}

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

.machine-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-bg);
  border: 1px solid #e4e8ee;
  box-shadow: 0 5px 16px rgba(21, 32, 44, 0.08);
}

.machine-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.machine-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 21, 31, 0.35), rgba(14, 21, 31, 0.08));
}

.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 0 10px 10px 10px;
  background: var(--price);
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.machine-body {
  padding: 10px 12px 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.machine-tag {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.machine-tag.used {
  background: #e3e6fb;
  color: #586388;
}

.machine-tag.sell {
  background: #c6eed9;
  color: #326f4f;
}

.machine-title {
  margin: 0 0 6px;
  font-size: clamp(1rem, 1.25vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
}

.machine-code {
  margin: 0 0 6px;
  color: #8893a4;
  font-size: 0.83rem;
  text-transform: uppercase;
}

.machine-location {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #46556c;
  font-size: 0.98rem;
}

.pin {
  color: #ff6a00;
  font-size: 1rem;
}

.detail-btn {
  margin-top: auto;
  min-height: 44px;
  border: 1px solid #fe5000;
  border-radius: 12px;
  background: #fe5000;
  color: #ffffff;
  font-size: 1.03rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-btn:hover {
  background: #e84a00;
}

.detail-btn .detail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.detail-btn .detail-arrow svg {
  width: 100%;
  height: 100%;
}

.detail-btn .detail-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.img-prensa-1 {
  background-image:
    linear-gradient(130deg, rgba(43, 58, 73, 0.45), rgba(43, 58, 73, 0.08)),
    linear-gradient(120deg, #7d8f96, #c5cfd6);
}

.img-prensa-2 {
  background-image:
    linear-gradient(130deg, rgba(36, 50, 65, 0.45), rgba(36, 50, 65, 0.08)),
    linear-gradient(120deg, #6d8793, #aac1cc);
}

.img-torno-1 {
  background-image:
    linear-gradient(130deg, rgba(22, 31, 45, 0.45), rgba(22, 31, 45, 0.08)),
    linear-gradient(120deg, #73808f, #adb7c4);
}

.img-torno-2 {
  background-image:
    linear-gradient(130deg, rgba(22, 31, 45, 0.45), rgba(22, 31, 45, 0.08)),
    linear-gradient(120deg, #677588, #9ba7ba);
}

.img-torno-3 {
  background-image:
    linear-gradient(130deg, rgba(22, 31, 45, 0.45), rgba(22, 31, 45, 0.08)),
    linear-gradient(120deg, #7d8796, #b9c2d0);
}

.img-torno-4 {
  background-image:
    linear-gradient(130deg, rgba(22, 31, 45, 0.45), rgba(22, 31, 45, 0.08)),
    linear-gradient(120deg, #5d6b80, #9ca9ba);
}

.img-fresadora-1 {
  background-image:
    linear-gradient(130deg, rgba(15, 48, 39, 0.5), rgba(15, 48, 39, 0.1)),
    linear-gradient(120deg, #4f7f70, #83a99a);
}

.img-fresadora-2 {
  background-image:
    linear-gradient(130deg, rgba(15, 48, 39, 0.5), rgba(15, 48, 39, 0.1)),
    linear-gradient(120deg, #477969, #78a594);
}

.main-footer {
  margin-top: 30px;
  color: var(--header-text);
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(18px, 2.5vw, 30px);
  padding-block: clamp(24px, 4.2vw, 42px);
}

.footer-logo {
  width: min(180px, 100%);
  height: auto;
  display: block;
  margin-bottom: 10px;
  object-fit: contain;
}

.footer-brand h4 {
  margin: 0 0 4px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin: 0;
  color: #6b7280;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-title {
  margin: 0 0 10px;
  color: var(--header-text);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
}

.footer-title-gap {
  margin-top: 16px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
}

.footer-list a::before {
  content: '>';
  color: var(--header-accent);
}

.footer-cta-group {
  display: grid;
  gap: 10px;
}

.footer-cta {
  min-height: 42px;
  border-radius: 999px;
  background: var(--header-hover);
  border: 1px solid #f7cdb7;
  color: var(--header-accent);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
}

.footer-cta:hover {
  background: #ffe8dc;
}

.copyright {
  text-align: center;
  padding: 12px;
  color: #6b7280;
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px 12px;
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
  }

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

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

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

@media (max-width: 620px) {
  .hero-banner {
    min-height: 150px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subdomain-chip {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Offer Layout Refresh */
body {
  background: #eceef1;
}

.home-main {
  padding: clamp(20px, 3.6vw, 40px) 0 46px;
}

.section-head {
  position: relative;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-orange);
}

.section-head h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 52px;
  padding: 0 clamp(34px, 5.4vw, 72px) 0 16px;
  display: inline-flex;
  align-items: center;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.2rem, 1.95vw, 1.7rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  background: var(--brand-orange);
  border-radius: 14px 92px 0 0;
}

.catalog-search {
  width: min(440px, 100%);
  margin-left: auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--brand-orange);
  overflow: hidden;
}

.catalog-search-sidebar {
  width: 100%;
  margin: 12px 0 0;
}

.catalog-search-sidebar .catalog-search-input {
  min-height: 42px;
}

.catalog-search-sidebar .catalog-search-btn {
  width: 42px;
  min-height: 42px;
}

.catalog-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2f49;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.catalog-search-input::placeholder {
  color: #95a0b2;
}

.catalog-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}

.catalog-search-btn {
  flex: 0 0 auto;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #e14a00;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 901px) {
  .catalog-search-sidebar {
    gap: 3px;
    padding: 2px;
  }

  .catalog-search-sidebar .catalog-search-input {
    min-height: 40px;
    padding: 0 12px;
  }

  .catalog-search-sidebar .catalog-search-btn {
    width: 40px;
    min-height: 40px;
    border-radius: 9px;
  }
}

.catalog-search-btn:hover {
  background: #cc4200;
}

.catalog-search-icon {
  width: 20px;
  height: 20px;
}

.catalog-search-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-summary {
  margin: -2px 0 14px;
  color: #5b6678;
  font-size: 0.94rem;
  font-weight: 600;
}

.catalog-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.catalog-content {
  min-width: 0;
}

.catalog-sidebar {
  position: sticky;
  top: 98px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 30, 44, 0.08);
}

@media (min-width: 901px) {
  .has-sidebar-search .section-head .catalog-search {
    display: none;
  }
}

.catalog-sidebar-title {
  margin: 0 0 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #16376b;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.catalog-sidebar-nav {
  display: grid;
  gap: 8px;
}

.catalog-sidebar-link {
  min-height: 42px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid #e1e8f2;
  background: #ffffff;
  color: #243753;
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catalog-sidebar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog-sidebar-label::before {
  content: '>';
  color: var(--brand-orange);
  font-size: 1.02em;
  font-weight: 800;
}

.catalog-sidebar-count {
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #d5deea;
  background: #f9fbff;
  color: #2c3f5a;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-sidebar-link:hover,
.catalog-sidebar-link.is-active {
  background: #fff1e8;
  border-color: #ffc8a9;
  color: #d24a03;
}

.catalog-sidebar-link.is-active .catalog-sidebar-count {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: #ffffff;
}

.contact-main {
  padding: clamp(24px, 4vw, 44px) 0 50px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.contact-card {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 14px;
  border: 1px solid #d9e0ea;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 28, 42, 0.08);
}

.contact-heading {
  margin: 0 0 10px;
  color: #1b3558;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.contact-card p {
  margin: 0 0 12px;
  color: #50607a;
  line-height: 1.6;
}

.contact-list,
.contact-checklist {
  margin: 0;
  padding-left: 18px;
  color: #2e3f58;
  line-height: 1.65;
}

.contact-list li + li,
.contact-checklist li + li {
  margin-top: 4px;
}

.contact-list a {
  color: #0f4c9a;
  font-weight: 600;
}

.contact-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-btn-primary,
.contact-btn-secondary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-btn-primary {
  background: var(--brand-orange);
  color: #ffffff;
}

.contact-btn-primary:hover {
  background: #e34700;
}

.contact-btn-secondary {
  border: 1px solid #c7d0de;
  background: #f7f9fc;
  color: #2d405e;
}

.contact-btn-secondary:hover {
  background: #eef2f8;
}

.contact-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #66758d;
}

.offers-slider {
  position: relative;
  display: block;
}

.cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 2px 16px;
}

.machine-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d9dee7;
  background: #f5f7fa;
  box-shadow: 0 10px 24px rgba(17, 29, 44, 0.1);
  cursor: pointer;
}

.machine-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background-color: #e9edf3;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-bottom: 1px solid #eceef2;
}

.machine-image::after {
  display: none;
}

.price-badge {
  display: none;
}

.machine-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
}

.machine-tag {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(0.7rem, 1vw, 0.92rem);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0;
}

.machine-tag.used {
  background: #dfe7ff;
  color: #203961;
}

.machine-tag.sell {
  background: #c6f0da;
  color: #17563c;
}

.machine-title {
  margin: 0 0 8px;
  min-height: 72px;
  font-size: clamp(1.08rem, 1.18vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #12233b;
}

.machine-code {
  margin: 0 0 8px;
  min-height: 1.35em;
  color: #667386;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
}

.machine-price {
  margin: auto 0 0;
  color: #ff5a00;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.72rem, 1.8vw, 2.18rem);
  line-height: 1;
  font-weight: 800;
}

.machine-price span {
  margin-right: 6px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.02rem, 1.15vw, 1.24rem);
  font-weight: 700;
}

.machine-payment {
  margin: 4px 0 12px;
  color: #108637;
  font-size: 0.99rem;
  font-weight: 700;
}

.detail-btn {
  margin-top: auto;
  min-height: 46px;
  border: 1px solid #fe5000;
  border-radius: 10px;
  background: #fe5000;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-btn:hover {
  background: #e84a00;
  border-color: #e84a00;
}

.offers-arrow {
  display: none !important;
}

.offers-arrow:hover {
  background: #fff4ec;
}

.offers-arrow[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-actions {
    gap: 8px;
  }

  .contact-btn-primary,
  .contact-btn-secondary {
    width: 100%;
  }

  .catalog-shell {
    display: block;
  }

  .catalog-sidebar {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 0;
  }

  .section-head::after {
    height: 3px;
  }

  .section-head h1 {
    order: 2;
    align-self: flex-start;
    min-height: 44px;
    max-width: 100%;
    padding: 0 34px 0 14px;
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    border-radius: 12px 56px 0 0;
  }

  .catalog-search {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    margin-top: 0;
    padding: 2px;
    border-radius: 11px;
  }

  .catalog-search-input {
    min-height: 42px;
    font-size: 16px;
  }

  .catalog-search-btn {
    width: 42px;
    min-height: 42px;
    border-radius: 9px;
  }

  .search-summary {
    font-size: 0.9rem;
  }
}

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

  .machine-title {
    min-height: auto;
    font-size: clamp(1.02rem, 2.2vw, 1.28rem);
    line-height: 1.24;
  }
}

@media (max-width: 620px) {
  .hero-banner {
    background-image: url('../../img/bannercelular.png');
    background-position: center;
    min-height: 120px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 14px;
  }

  .catalog-search-input {
    min-height: 40px;
    font-size: 16px;
  }

  .catalog-search-btn {
    width: 40px;
    min-height: 40px;
  }

  .cards-grid > .machine-card:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }

  .tag-row {
    gap: 6px;
  }

  .machine-tag {
    min-height: 24px;
    padding: 0 5px;
    font-size: clamp(0.6rem, 2.55vw, 0.74rem);
    font-weight: 800;
  }

  .cards-grid > .machine-card:nth-child(-n + 2) .tag-row {
    gap: 8px;
  }

  .cards-grid > .machine-card:nth-child(-n + 2) .machine-tag {
    min-height: 32px;
    padding: 0 14px;
    font-size: clamp(0.9rem, 3.2vw, 1.06rem);
  }

  .machine-title {
    min-height: auto;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
  }

  .machine-price {
    font-size: clamp(1.34rem, 5.1vw, 1.72rem);
  }

  .machine-price span {
    font-size: clamp(0.9rem, 3.2vw, 1.02rem);
  }

  .subdomain-row {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1140px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    justify-content: center;
    min-height: 96px;
    padding-inline: 44px;
  }

  .logo {
    margin-inline: auto;
    flex-shrink: 1;
    width: min(100%, 300px);
    max-width: calc(100% - 96px);
  }

  .logo-image {
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .menu-toggle {
    position: absolute;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
  }

  .menu-icon {
    width: 20px;
    height: 3px;
  }

  .menu-icon::before,
  .menu-icon::after {
    width: 20px;
    height: 3px;
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 88px;
    padding-inline: 40px;
  }

  .logo {
    width: min(100%, 250px);
    max-width: calc(100% - 84px);
  }

  .logo-image {
    max-height: 52px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    background-image: url('../../img/bannercelular.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #123355;
    aspect-ratio: 1080 / 1350;
    min-height: clamp(420px, 125vw, 760px);
  }
}
