:root {
  --ink-950: #101f2d;
  --ink-800: #243a4c;
  --ink-600: #5c6b77;
  --line: #dbe2e7;
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --brand: #d92f26;
  --brand-dark: #b51f18;
  --accent: #f0a51b;
  --header-shadow: 0 18px 44px rgba(16, 31, 45, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-950); background: var(--surface); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }
.site-container { width: min(100% - 40px, 1440px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: #fff; background: var(--ink-950); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-utility { color: #dfe8ed; background: var(--ink-950); font-size: 12px; letter-spacing: .025em; }
.site-utility__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-utility p { margin: 0; }
.site-utility__contacts { display: flex; align-items: center; gap: 22px; }
.site-utility__contacts a { color: #fff; text-decoration: none; }
.site-utility__contacts a:hover { color: #ffd173; }

.site-header { position: relative; z-index: 100; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 88px; display: grid; grid-template-columns: minmax(220px, 310px) 1fr auto; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; min-width: 0; }
.site-brand img { display: block; width: min(100%, 310px); height: auto; }

.primary-nav { justify-self: end; min-width: 0; }
.primary-nav__list { display: flex; align-items: stretch; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__label { display: flex; align-items: center; }
.primary-nav__link { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink-800); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.primary-nav__link::after { content: ""; position: absolute; right: 12px; bottom: 5px; left: 12px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav__link:hover, .primary-nav__link:focus-visible { color: var(--brand); }
.primary-nav__link:hover::after, .primary-nav__link:focus-visible::after { transform: scaleX(1); }
.subnav-toggle { width: 28px; height: 40px; margin-left: -8px; display: grid; place-items: center; color: var(--ink-600); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.subnav-toggle svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s ease; }
.subnav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.nav-panel { position: absolute; top: calc(100% + 18px); right: -110px; width: min(880px, calc(100vw - 48px)); padding: 24px; visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 10px 10px; box-shadow: var(--header-shadow); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-panel::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 20px; }
.primary-nav__item:hover > .nav-panel, .primary-nav__item:focus-within > .nav-panel, .primary-nav__item.is-open > .nav-panel { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.primary-nav__item.is-open .subnav-toggle svg { transform: rotate(180deg); }
.nav-panel__heading { margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.nav-panel__heading a { color: var(--ink-950); font-size: 16px; font-weight: 800; text-decoration: none; }
.nav-panel__heading a::after { content: "  →"; color: var(--brand); }
.subnav-list { margin: 0; padding: 0; list-style: none; }
.nav-panel > .subnav-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 26px; }
.subnav-item > a { display: inline-block; color: var(--ink-800); font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.subnav-item > a:hover, .subnav-item > a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.subnav-item--group > a { margin-bottom: 9px; color: var(--ink-950); font-size: 14px; font-weight: 800; }
.subnav-list--level-2 { display: grid; gap: 7px; padding-left: 0; }
.subnav-list--level-2 .subnav-item > a { color: var(--ink-600); font-weight: 550; }
.nav-panel--compact { right: 0; width: 280px; }
.nav-panel--compact > .subnav-list { grid-template-columns: 1fr; }

.header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 5px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.header-cta:hover, .header-cta:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink-950); transition: transform .2s ease, opacity .2s ease; }

.template-stage { min-height: 56vh; }
.system-page { width: min(100% - 40px, 760px); min-height: 56vh; margin-inline: auto; padding: 90px 0; }
.system-page p { margin: 0; color: var(--brand); font-size: 14px; font-weight: 900; letter-spacing: .15em; }
.system-page h1 { margin: 10px 0 22px; font-size: clamp(32px, 6vw, 64px); }
.system-page a { color: var(--brand); font-weight: 800; }

@media (max-width: 1180px) {
  .site-header__inner { grid-template-columns: minmax(210px, 270px) 1fr auto; gap: 14px; }
  .primary-nav__link { padding-inline: 8px; font-size: 13px; }
  .header-cta { padding-inline: 14px; }
  .nav-panel { right: -70px; }
}

@media (max-width: 980px) {
  .site-container { width: min(100% - 28px, 1440px); }
  .site-utility__inner { min-height: 32px; justify-content: center; }
  .site-utility__contacts { display: none; }
  .site-utility p { text-align: center; }
  .site-header__inner { min-height: 74px; grid-template-columns: minmax(190px, 260px) auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .site-header.is-menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 100%; right: auto; left: 50%; width: 100vw; max-height: calc(100vh - 106px); overflow: auto; visibility: hidden; opacity: 0; transform: translate(-50%, -8px); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--header-shadow); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .site-header.is-menu-open .primary-nav { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
  .primary-nav__list { width: min(100% - 28px, 1440px); margin-inline: auto; padding: 14px 0 22px; display: block; }
  .primary-nav__item { display: block; border-bottom: 1px solid var(--line); }
  .primary-nav__label { justify-content: space-between; }
  .primary-nav__link { flex: 1; min-height: 52px; padding: 0 4px; font-size: 15px; }
  .primary-nav__link::after { display: none; }
  .subnav-toggle { width: 48px; height: 48px; margin: 0; }
  .nav-panel { position: static; width: auto; padding: 0 4px 18px 18px; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto; border: 0; border-radius: 0; box-shadow: none; }
  .nav-panel::before, .nav-panel__heading { display: none; }
  .primary-nav__item:hover > .nav-panel, .primary-nav__item:focus-within > .nav-panel { display: none; }
  .primary-nav__item.is-open > .nav-panel { display: block; }
  .nav-panel > .subnav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}

@media (max-width: 620px) {
  .site-utility p { font-size: 10px; }
  .site-header__inner { grid-template-columns: minmax(160px, 1fr) auto; }
  .site-brand img { width: min(100%, 230px); }
  .header-cta { display: none; }
  .nav-panel > .subnav-list { grid-template-columns: 1fr; }
}

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

/* ---- contact kit (2026-10) ---- */
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 16px; color: var(--ink-950); line-height: 1.5; align-items: baseline; }
.contact-list span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b9231d; font-weight: 750; }
.contact-list a { color: var(--ink-950); font-weight: 650; text-decoration: none; border-bottom: 1px solid #c9d3da; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand); border-color: var(--brand); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.home-page .home-button--wa, .home-button--wa { background: #25a244; border-color: #25a244; }
.home-page .home-button--wa:hover, .home-button--wa:hover { background: #1c7e35; border-color: #1c7e35; }
.home-contact .contact-list { margin-bottom: 18px; }
body .product-actions .product-button--whatsapp { background: #25a244; border-color: #25a244; color: #fff; }
body .product-actions .product-button--whatsapp:hover { background: #1c7e35; border-color: #1c7e35; }
.contact-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.contact-fab__link { display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(16, 31, 45, .28); transition: transform .15s ease; }
.contact-fab__link svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.contact-fab__link--wa { background: #25a244; }
.contact-fab__link--tel { background: #101f2d; display: none; }
.contact-fab__link:hover { transform: translateY(-2px); }
body .product-footer .product-footer__legal { font-size: 13px; color: #acbec9; margin-top: 10px; }
body .product-footer .product-footer__contacts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
body .product-footer .product-footer__contacts li { display: flex; gap: 10px; color: #d2dce2; line-height: 1.5; }
body .product-footer .product-footer__contacts span { color: #8fa3b0; min-width: 74px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
body .product-footer .product-footer__contacts a { text-decoration: none; overflow-wrap: anywhere; }
body .product-footer .product-footer__contacts a:hover { color: #ffd173; }
body .detail-breadcrumb { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
body .detail-breadcrumb > a, body .detail-breadcrumb > span:not(:last-child) { flex: 0 0 auto; }
body .detail-breadcrumb > span:last-child { flex: 1 1 0; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) { .contact-fab__link--tel { display: inline-flex; } }
@media (max-width: 620px) {
  .contact-fab { right: 12px; bottom: 12px; }
  .contact-fab__link { padding: 13px; }
  .contact-fab__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* header search link (2026-11-09) */
.primary-nav__search{display:inline-flex;align-items:center;gap:8px}
.primary-nav__search svg{flex:none}
.primary-nav__search-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width: 980px){.primary-nav__search-text{position:static;width:auto;height:auto;overflow:visible;clip:auto}}
