:root {
  --navy: #062b4b;
  --navy-2: #0a3b63;
  --blue: #008bc8;
  --cyan: #32c5ef;
  --ink: #142231;
  --muted: #657383;
  --line: #dbe5ec;
  --surface: #f4f8fb;
  --white: #fff;
  --success: #11a36a;
  --shadow: 0 18px 44px rgba(4, 43, 75, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
button, select, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.site-header {
  min-height: 74px; padding: 10px max(24px, calc((100vw - 1540px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  color: white; font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(145deg, var(--cyan), var(--navy)); box-shadow: 0 8px 18px rgba(0,139,200,.25);
}
.brand strong, .footer-brand strong { display: block; color: var(--navy); letter-spacing: -.02em; }
.brand small, .footer-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: .94rem; }
.desktop-nav a:hover { color: var(--blue); }
.machine-menu { position: relative; }
.machine-menu summary { list-style: none; cursor: pointer; font-weight: 700; }
.machine-menu summary::-webkit-details-marker { display: none; }
.machine-menu summary::after { content: "⌄"; margin-left: 7px; color: var(--blue); }
.machine-menu-panel { width: min(760px, 78vw); max-height: min(72vh, 680px); padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; position: absolute; right: 0; top: calc(100% + 20px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.machine-menu-panel section { display: grid; align-content: start; gap: 7px; }
.machine-menu-panel a { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.machine-menu-panel .machine-group { padding-bottom: 7px; color: var(--navy); border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 850; }
.machine-menu-panel a:hover { color: var(--blue); }
.nav-quote, footer button { border: 0; border-radius: 999px; padding: 12px 20px; color: white; background: var(--navy); font-weight: 750; }
.menu-button { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1.7rem; }
.mobile-nav { display: none; }

.catalog-bar {
  max-width: 1540px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line); color: var(--navy); background: #fff;
}
.catalog-bar label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalog-bar select { max-width: 470px; flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 38px 9px 12px; color: var(--ink); background: var(--surface); }
.catalog-count { margin-left: auto; color: var(--muted); font-size: .84rem; }
main { max-width: 1540px; margin: 0 auto; padding: 0 24px 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--muted); font-size: .84rem; overflow: hidden; white-space: nowrap; }
.breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.breadcrumbs a:hover { color: var(--blue); }

.product-hero { display: grid; grid-template-columns: minmax(470px, 1.18fr) minmax(380px, .86fr) minmax(300px, .58fr); gap: 18px; align-items: start; }
.gallery-card, .product-summary, .quote-card, .specifications-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.gallery-card { padding: 14px; overflow: hidden; }
.gallery-layout { display: grid; grid-template-columns: 86px 1fr; gap: 12px; min-height: 560px; }
.thumbnails { display: flex; flex-direction: column; gap: 10px; }
.thumbnail { position: relative; height: 82px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.thumbnail.active { border: 2px solid var(--blue); box-shadow: 0 0 0 3px rgba(0,139,200,.1); }
.thumbnail span { position: absolute; right: 5px; bottom: 5px; width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: rgba(6,43,75,.8); border-radius: 50%; font-size: .65rem; }
.main-media { position: relative; min-width: 0; border: 0; border-radius: 12px; background: radial-gradient(circle at 70% 20%, #fff, #eef5f9); overflow: hidden; }
.main-media img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: contain; transition: transform .35s ease; }
.main-media:hover img { transform: scale(1.018); }
.zoom-hint { position: absolute; right: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; color: var(--navy); background: rgba(255,255,255,.9); box-shadow: 0 5px 18px rgba(0,0,0,.1); font-size: .78rem; font-weight: 700; }
.image-caption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 0; color: var(--muted); font-size: .76rem; }
.image-caption span:first-child { color: var(--navy); font-weight: 800; }

.product-summary { padding: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(17,163,106,.1); }
h1 { margin: 14px 0 12px; color: var(--navy); font-size: clamp(1.65rem, 2.4vw, 2.55rem); line-height: 1.06; letter-spacing: -.045em; }
.lead { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.verified-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #eaf7fc; border-radius: 11px; }
.verified-icon { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-weight: 900; }
.verified-card strong, .verified-card small { display: block; }
.verified-card small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.price-block { padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.price-block small, .price-block span { display: block; color: var(--muted); }
.price-block strong { display: block; margin: 3px 0; color: var(--navy); font-size: 1.65rem; }
.quick-specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding: 18px 0 8px; }
.quick-spec { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quick-spec small, .quick-spec strong { display: block; }
.quick-spec small { color: var(--muted); font-size: .72rem; }
.quick-spec strong { margin-top: 4px; color: var(--navy); font-size: .9rem; }
.variants-wrap { padding-top: 16px; }
.variants-wrap h2 { margin: 0 0 10px; font-size: .92rem; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 650; }
.variant.active, .variant:hover { border-color: var(--blue); color: var(--blue); background: #edf9fd; }
.summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.secondary-action { border: 1px solid var(--navy); border-radius: 10px; padding: 11px 8px; color: var(--navy); background: #fff; font-size: .82rem; font-weight: 800; }
.secondary-action:hover { color: white; background: var(--navy); }

.quote-card { position: sticky; top: 95px; padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--cyan); }
.quote-kicker { color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quote-card h2 { margin: 7px 0 10px; color: var(--navy); font-size: 1.45rem; letter-spacing: -.025em; }
.quote-card p { color: var(--muted); line-height: 1.55; }
.quote-card ul { margin: 18px 0 22px; padding: 18px 0; list-style: none; border-block: 1px solid var(--line); }
.quote-card li { display: flex; gap: 8px; margin: 9px 0; font-size: .86rem; }
.quote-card li span { color: var(--success); font-weight: 900; }
.primary-action, .whatsapp-action { width: 100%; min-height: 49px; display: grid; place-items: center; border-radius: 999px; font-weight: 850; }
.primary-action { border: 0; color: white; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.whatsapp-action { margin-top: 10px; border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.quote-card > small { display: block; margin-top: 16px; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.confidence-strip { margin-top: 22px; padding: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; border-radius: 15px; color: white; background: var(--navy); }
.confidence-strip div { display: grid; grid-template-columns: 38px 1fr; column-gap: 9px; align-items: center; }
.confidence-strip span { grid-row: 1 / 3; color: var(--cyan); font-size: 1.35rem; font-weight: 900; }
.confidence-strip strong, .confidence-strip small { display: block; }
.confidence-strip small { margin-top: 3px; color: #bbcad6; font-size: .71rem; line-height: 1.35; }

.details-section { margin-top: 70px; display: grid; grid-template-columns: 1.45fr .65fr; gap: 34px; align-items: start; }
.section-heading span { color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { margin: 6px 0 20px; color: var(--navy); font-size: clamp(1.55rem,2.4vw,2.35rem); letter-spacing: -.04em; }
.section-heading.compact h2 { font-size: 1.5rem; margin-bottom: 14px; }
.details-main > p { max-width: 900px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.application-grid { margin: 26px 0 34px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.application { min-height: 100px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.application span { display: block; margin-bottom: 9px; color: var(--blue); font-size: 1.25rem; }
.application strong { color: var(--navy); font-size: .9rem; }
.production-banner { min-height: 370px; position: relative; overflow: hidden; border-radius: 18px; background: var(--navy); }
.production-banner img { width: 100%; height: 100%; min-height: 370px; position: absolute; inset: 0; object-fit: cover; opacity: .62; }
.production-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,35,59,.96), rgba(4,35,59,.72) 50%, rgba(4,35,59,.08)); }
.production-banner div { max-width: 500px; padding: 48px; position: relative; z-index: 1; color: white; }
.production-banner span { color: var(--cyan); font-weight: 850; text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; }
.production-banner h3 { margin: 10px 0; font-size: 2rem; line-height: 1.08; letter-spacing: -.035em; }
.production-banner p { color: #d5e3eb; line-height: 1.6; }
.production-banner button { margin-top: 10px; border: 0; border-radius: 999px; padding: 12px 18px; color: var(--navy); background: white; font-weight: 850; }
.specifications-card { padding: 24px; }
.specifications-card dl { margin: 0; }
.specifications-card dl div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specifications-card dt { color: var(--muted); font-size: .82rem; }
.specifications-card dd { margin: 0; color: var(--navy); font-size: .86rem; font-weight: 750; text-align: right; }
.spec-note { padding: 13px; border-radius: 9px; color: var(--muted); background: var(--surface); font-size: .75rem; line-height: 1.45; }

.technical-assets, .related-section { margin-top: 70px; }
.technical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.technical-card { padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; box-shadow: 0 10px 24px rgba(4,43,75,.07); }
.technical-card img { width: 100%; aspect-ratio: 16/8.5; display: block; object-fit: cover; }
.technical-card > span { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.technical-card strong { color: var(--navy); }
.technical-card small { color: var(--muted); }
.technical-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.related-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; background: var(--surface); }
.related-card div { padding: 14px; }
.related-card small { color: var(--blue); font-weight: 750; }
.related-card strong { min-height: 42px; display: block; margin: 5px 0 12px; color: var(--navy); line-height: 1.25; }
.related-card span { color: var(--muted); font-size: .78rem; }

.details-section,
.technical-assets,
.related-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}
[hidden] { display: none !important; }

footer { padding: 34px max(24px,calc((100vw - 1492px)/2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; border-top: 1px solid var(--line); background: var(--surface); }
footer p { color: var(--muted); font-size: .86rem; }
.mobile-cta { display: none; }
.whatsapp-guide { width: 58px; height: 58px; display: grid; place-items: center; position: fixed; right: 22px; bottom: 22px; z-index: 44; border-radius: 50%; color: white; background: #11a36a; box-shadow: 0 12px 30px rgba(17,163,106,.3); font-size: .84rem; font-weight: 900; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(2,17,30,.82); backdrop-filter: blur(5px); }
.modal-close { width: 42px; height: 42px; display: grid; place-items: center; position: absolute; right: 18px; top: 18px; z-index: 3; border: 0; border-radius: 50%; color: var(--navy); background: white; font-size: 1.7rem; box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.image-modal { width: min(94vw,1450px); height: 92vh; border-radius: 18px; background: #edf4f8; overflow: hidden; }
.image-modal figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.image-modal img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-modal figcaption { padding: 12px; color: white; background: var(--navy); text-align: center; font-weight: 750; }
.modal-arrow { width: 46px; height: 62px; position: absolute; top: 50%; z-index: 2; border: 0; border-radius: 10px; color: var(--navy); background: rgba(255,255,255,.9); font-size: 2rem; }
.modal-arrow.previous { left: 15px; }
.modal-arrow.next { right: 15px; }
.quote-modal { width: min(92vw,760px); border-radius: 19px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-close.dark { color: white; background: rgba(255,255,255,.12); box-shadow: none; }
.quote-modal-copy { padding: 34px; color: white; background: linear-gradient(140deg,var(--navy),var(--blue)); }
.quote-modal-copy span { color: #a8e9fb; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 850; }
.quote-modal-copy h2 { margin: 6px 0; font-size: 2rem; }
.quote-modal-copy p { margin: 0; color: #d6e8f1; }
.quote-modal form { padding: 28px 34px 34px; display: grid; gap: 15px; }
.quote-modal label { display: grid; gap: 6px; color: var(--navy); font-size: .8rem; font-weight: 750; }
.quote-modal input, .quote-modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--ink); background: var(--surface); outline: none; }
.quote-modal input:focus, .quote-modal textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,139,200,.1); }
.quote-modal textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-modal form button { border: 0; border-radius: 999px; padding: 14px; color: white; background: var(--navy); font-weight: 850; }
.quote-modal form small { color: var(--muted); text-align: center; line-height: 1.4; }

@media (max-width: 1220px) {
  .product-hero { grid-template-columns: 1.15fr .85fr; }
  .quote-card { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .quote-card > *:not(.primary-action):not(.whatsapp-action) { grid-column: 1 / -1; }
  .confidence-strip { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .site-header { min-height: 64px; padding-inline: 16px; }
  .brand-mark { width: 39px; height: 39px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav.open { display: grid; position: fixed; inset: 64px 0 auto; z-index: 49; padding: 18px; gap: 8px; color: white; background: var(--navy); box-shadow: var(--shadow); }
  .mobile-nav a, .mobile-nav button { padding: 12px; border: 0; border-radius: 8px; color: white; background: rgba(255,255,255,.08); text-align: left; }
  .mobile-nav .machine-menu { padding: 12px; border-radius: 8px; background: rgba(255,255,255,.08); }
  .mobile-nav .machine-menu-panel { width: 100%; max-height: 55vh; margin-top: 10px; padding: 12px; grid-template-columns: 1fr; position: static; color: var(--ink); }
  .mobile-nav .machine-menu-panel a { padding: 6px 0; color: var(--muted); background: transparent; }
  .mobile-nav .machine-menu-panel .machine-group { color: var(--navy); }
  .catalog-bar { padding-inline: 16px; flex-wrap: wrap; }
  .catalog-bar label { width: 100%; }
  .catalog-count { display: none; }
  main { padding-inline: 14px; padding-bottom: 95px; }
  .product-hero { grid-template-columns: 1fr; }
  .gallery-layout { grid-template-columns: 1fr; min-height: auto; }
  .thumbnails { grid-row: 2; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .thumbnail { min-width: 82px; }
  .main-media { height: min(68vw,500px); }
  .product-summary { padding: 20px; }
  .quote-card { display: block; }
  .confidence-strip { grid-template-columns: 1fr; }
  .details-section { margin-top: 52px; grid-template-columns: 1fr; }
  .specifications-card { grid-row: 1; }
  .application-grid { grid-template-columns: 1fr 1fr; }
  .production-banner div { padding: 32px 24px; }
  .technical-grid { grid-template-columns: 1fr; }
  .technical-card > span { align-items: flex-start; flex-direction: column; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; padding-bottom: 100px; }
  .mobile-cta { position: fixed; inset: auto 0 0; z-index: 45; padding: 10px 14px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-cta a, .mobile-cta button { min-height: 47px; display: grid; place-items: center; border-radius: 999px; font-weight: 850; }
  .mobile-cta a { border: 1px solid var(--navy); color: var(--navy); }
  .mobile-cta button { border: 0; color: white; background: var(--navy); }
  .whatsapp-guide { display: none; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .breadcrumbs { font-size: .73rem; }
  .gallery-card { padding: 8px; }
  .image-caption { flex-direction: column; }
  .quick-specs, .summary-actions, .application-grid, .form-row { grid-template-columns: 1fr; }
  .confidence-strip { padding: 18px 16px; }
  .production-banner h3 { font-size: 1.55rem; }
  .related-grid { grid-template-columns: 1fr; }
  .quote-modal-copy, .quote-modal form { padding-inline: 21px; }
  .modal-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
