:root {
  --ink: #20231f;
  --muted: #626961;
  --line: #dedbd2;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --accent: #f5b318;
  --accent-dark: #c98300;
  --whatsapp: #159947;
  --whatsapp-dark: #0e7a36;
  --dark: #161914;
  --shadow: 0 18px 42px rgba(31, 35, 28, 0.16);
  --radius: 8px;
  font-family:
    Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  background: rgba(245, 179, 24, 0.35);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(32, 35, 31, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--accent);
  color: #19150c;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #3d423b;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  background: rgba(245, 179, 24, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  font-weight: 900;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1b160a;
  box-shadow: 0 16px 28px rgba(245, 179, 24, 0.28);
}

.btn-primary:hover {
  background: #ffc840;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 153, 71, 0.24);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: min(640px, 68svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  background-image: url("assets/images/hero-machinery.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 16, 13, 0.88) 0%, rgba(15, 16, 13, 0.68) 42%, rgba(15, 16, 13, 0.08) 100%),
    linear-gradient(0deg, rgba(15, 16, 13, 0.2), rgba(15, 16, 13, 0.08));
}

.hero-content {
  display: flex;
  min-height: min(640px, 68svh);
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 36px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  width: min(780px, 100%);
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(780px, 100%);
  margin-top: 28px;
}

.hero-points span {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.quick-panel {
  padding: 24px 0;
  background: var(--accent);
  color: #1d170b;
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: 24px;
  align-items: center;
}

.quick-grid h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.quick-grid .section-kicker {
  color: #604000;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-link {
  display: flex;
  min-height: 74px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: #1d170b;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(117, 72, 0, 0.1);
}

.quick-link:hover {
  background: #fff;
}

.section {
  padding: 92px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.business-copy h2,
.cta-content h2,
.faq-grid h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p:not(.section-kicker),
.business-copy p,
.cta-content p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-btn {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: #2b2f28;
  background: #2b2f28;
  color: #fff;
}

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

.machine-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(42, 41, 34, 0.06);
}

.machine-card.is-hidden {
  display: none;
}

.machine-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee9dc;
}

.machine-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.machine-title {
  display: grid;
  gap: 8px;
  min-height: 76px;
}

.machine-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.machine-title span {
  color: var(--accent-dark);
  font-weight: 950;
}

.machine-body p {
  min-height: 72px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.machine-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: auto 0 16px;
}

.machine-body dl div {
  padding: 10px;
  border-radius: 7px;
  background: #f3f0e8;
}

.machine-body dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.machine-body dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.btn-card {
  width: 100%;
  background: var(--dark);
  color: #fff;
}

.btn-card:hover {
  background: var(--whatsapp);
}

.services-section {
  background: #efede4;
}

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

.service-card {
  display: grid;
  min-height: 158px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(32, 35, 31, 0.14);
  border-radius: var(--radius);
  background: #fff;
}

.service-card:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow);
}

.service-card strong {
  font-size: 23px;
  line-height: 1.1;
}

.service-card span {
  color: var(--muted);
}

.business {
  padding: 92px 0;
  background: #fff;
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.business-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.business-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.business-copy p {
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #32382f;
  font-weight: 750;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
}

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

.step-card {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 950;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.1;
}

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

.cta-band {
  padding: 58px 0;
  background: #252820;
  color: #fff;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.btn-large {
  min-height: 58px;
  padding-inline: 24px;
  white-space: nowrap;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1fr);
  gap: 34px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  min-height: 58px;
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  padding: 0 20px 20px;
}

.site-footer {
  padding: 42px 0 96px;
  background: #151713;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 30px;
}

.site-footer p,
.site-footer span,
.site-footer small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer p {
  max-width: 450px;
}

.site-footer strong,
.site-footer a,
.site-footer span {
  display: block;
}

.site-footer a {
  margin-top: 8px;
}

.brand-footer {
  margin-bottom: 14px;
}

.floating-wa {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(21, 153, 71, 0.3);
}

.floating-wa:hover {
  background: var(--whatsapp-dark);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

  .quick-grid,
  .section-head,
  .business-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand small,
  .phone {
    display: none;
  }

  .brand strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 42px;
    padding: 10px 12px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 78px 0 54px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions,
  .cta-content {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-content .btn {
    width: 100%;
  }

  .section {
    padding: 66px 0;
  }

  .catalog-grid,
  .service-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .machine-body p {
    min-height: auto;
  }

  .machine-title {
    min-height: auto;
  }

  .service-card,
  .step-card {
    min-height: auto;
  }

  .business {
    padding: 66px 0;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 0;
  }

  .header-actions .btn {
    width: 54px;
    min-width: 54px;
    padding-inline: 0;
    font-size: 14px;
  }

  .header-actions .btn {
    color: transparent;
  }

  .header-actions .btn::after {
    content: "WA";
    color: #fff;
  }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 34px;
    line-height: 1.02;
  }

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

  .hero-points span {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    overflow-wrap: anywhere;
    font-size: 14px;
  }

  .catalog-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .floating-wa {
    display: none;
  }
}
