:root {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #dc2626;
  --brand-dark: #b91c1c;
  --paper: #ffffff;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-soft: #f0fdfa;
  --radius: 12px;
  --font: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
  --display: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(220, 38, 38, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 118, 110, 0.07), transparent 45%),
    linear-gradient(180deg, #fafbfc 0%, var(--bg) 40%, #eef1f5 100%);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(720px, 100%); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header .container.nav-row { position: relative; }
.nav-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; flex-wrap: nowrap; min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.logo-img {
  height: 44px; width: auto; object-fit: contain; display: block;
  background: #0f172a; padding: 5px 9px; border-radius: 8px;
}
.logo-img-footer { height: 48px; background: transparent; padding: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--display); letter-spacing: 0.04em; color: var(--brand); }
.logo-text small { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--muted); }
.main-nav {
  display: flex; gap: 0.15rem 0.7rem; flex: 1; flex-wrap: nowrap;
  justify-content: center; align-items: center;
  font-size: 0.875rem; font-weight: 500; min-width: 0;
}
.main-nav > a {
  padding: 0.4rem 0.15rem; border-bottom: 2px solid transparent;
  white-space: nowrap; color: var(--ink);
}
.main-nav > a:hover { border-color: var(--brand); color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.lang-slot-mobile { display: none; }
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lang-dropdown-toggle:hover,
.lang-dropdown.open .lang-dropdown-toggle {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-code { letter-spacing: 0.04em; }
.lang-caret {
  width: 0; height: 0; margin-left: 0.1rem;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform .15s ease;
}
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  min-width: 168px; padding: 0.35rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  display: grid; gap: 0.15rem;
}
.lang-dropdown-menu[hidden] { display: none !important; }
.lang-option {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.7rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500; white-space: nowrap;
}
.lang-option:hover { background: var(--bg-2); }
.lang-option.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.lang-name { flex: 1; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.25rem; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: inherit; }
.hero .btn-ghost { border-color: rgba(20,33,43,.22); color: var(--ink); background: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: #fff; }

.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
  color: var(--ink);
}
.hero-strong { align-items: center; }
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(250,251,252,.97) 16%, rgba(250,251,252,.82) 44%, rgba(15,23,42,.42) 100%),
    url("../img/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #e2e8f0, #94a3b8 50%, #0f172a);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-content { position: relative; padding: 6.5rem 0 4.5rem; max-width: 760px; }
.hero-logo {
  height: 78px; width: auto; margin: 0 0 1.25rem;
  animation: rise .7s ease both;
  background: #111; padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.eyebrow {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 0.75rem;
  animation: rise .7s ease both;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.05; margin: 0 0 1rem; max-width: 11ch;
  animation: rise .8s ease .05s both;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }
.hero .lead { animation: rise .8s ease .12s both; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; animation: rise .8s ease .18s both; }
.hero-strip {
  margin: 1.75rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; animation: rise .8s ease .24s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.link-more { font-weight: 700; color: var(--brand); white-space: nowrap; }
.section-tight { padding: 1.5rem 0 0; }
.section-lead { margin: 0.4rem 0 0; color: var(--muted); max-width: 46ch; }
.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.trust-row > div {
  padding: 1.25rem 1.35rem; border-inline-end: 1px solid var(--line);
  display: grid; gap: 0.35rem;
}
.trust-row > div:last-child { border-inline-end: 0; }
.trust-row strong { font-family: var(--display); font-size: 1.05rem; }
.trust-row span { color: var(--muted); font-size: 0.92rem; }
.cat-visual-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 200px;
  gap: 1rem;
}
.cat-visual {
  position: relative; border-radius: 14px; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 200px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.cat-visual-lg { grid-row: span 2; min-height: 100%; }
.cat-visual-bg {
  position: absolute; inset: 0;
  background: #c5d5d8 center/cover no-repeat;
  transform: scale(1.02); transition: transform .45s ease;
}
.cat-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(20,16,12,.78) 100%);
}
.cat-visual:hover .cat-visual-bg { transform: scale(1.08); }
.cat-visual-body {
  position: relative; z-index: 1; color: #fff; padding: 1.15rem;
  display: flex; width: 100%; justify-content: space-between; align-items: end; gap: 0.75rem;
}
.cat-visual-body strong { font-family: var(--display); font-size: 1.2rem; }
.cat-visual-body em { font-style: normal; font-weight: 700; opacity: .9; }
.product-grid-home .product-thumb { height: 190px; }
.section-sectors {
  background:
    radial-gradient(circle at 88% 0%, rgba(220,38,38,.22), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(15,118,110,.18), transparent 38%),
    linear-gradient(165deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  color: #f8fafc;
}
.section-head-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}
.section-sectors .section-lead { color: #a8c0c8; margin: 0; max-width: 36ch; }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.sector-card {
  display: grid;
  grid-template-rows: 120px auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.sector-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15,118,110,.5);
  background: rgba(255,255,255,.1);
}
.sector-card-media {
  display: block;
  background: #1b333c center/cover no-repeat;
  min-height: 120px;
}
.sector-card-body {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem 1.05rem;
}
.sector-card-body strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.sector-card-body small {
  color: #9db4bc;
  font-size: 0.86rem;
  line-height: 1.4;
}
.sector-foot { margin-top: 1.5rem; }
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
}
.btn-ghost-light:hover { background: rgba(15,118,110,.28); border-color: #5eead4; }
.about-band { padding-bottom: 5rem; }
.about-band-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.about-band h2 { margin: 0 0 0.75rem; max-width: 16ch; }
.about-actions { display: grid; gap: 0.75rem; justify-items: start; }
.about-meta { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }

.section { padding: 4rem 0; }
.section-muted { background: rgba(255,255,255,.72); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2, .page-hero h1, .cta-band h2 {
  font-family: var(--display); margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-row > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.35rem; box-shadow: var(--shadow);
}
.value-row h3 { margin: 0 0 0.4rem; font-family: var(--display); font-size: 1.15rem; }
.value-row p { margin: 0; color: var(--muted); }

.cat-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cat-card, .product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem; transition: transform .2s ease, border-color .2s ease;
}
.cat-card:hover, .product-card:hover { transform: translateY(-3px); border-color: #9ec9c3; }
.cat-card { display: flex; justify-content: space-between; align-items: center; min-height: 88px; }
.cat-card span { color: var(--brand); font-weight: 700; font-size: 0.9rem; }
.product-thumb {
  height: 160px; border-radius: 8px; margin-bottom: 0.85rem;
  background: #d7e2e6 center/cover no-repeat;
}
.product-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-family: var(--display); }
.product-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.page-hero { padding: 2.5rem 0 1rem; }
.page-hero .page-hero-prose {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.page-hero .page-hero-prose p { margin: 0 0 0.75rem; }
.page-hero .page-hero-prose p:last-child { margin-bottom: 0; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; }
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: start; }
.product-detail-media {
  min-height: 360px; border-radius: 16px; background: #cfdce1 center/cover;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.prose p { margin-top: 0; }
.meta-line { color: var(--muted); font-weight: 600; }

.cta-band {
  margin: 2rem 0 0; padding: 3.5rem 0;
  background: linear-gradient(120deg, #0f172a 0%, #134e4a 48%, #dc2626 100%);
  color: #f8fafc;
}
.cta-band p { color: rgba(244,250,251,.82); max-width: 50ch; }

.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { font-family: var(--display); font-size: 1rem; margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35rem 0; color: #93a8b1; }
.footer-grid a:hover { color: #fff; }
.logo-footer .logo-text strong { color: #fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #243640; color: #7e939c; font-size: 0.9rem; }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #111;
  box-shadow: 0 -8px 28px rgba(0,0,0,.22);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}
.sticky-cta-call { background: var(--brand); }
.sticky-cta-call:active { background: var(--brand-dark); }
.sticky-cta-wa { background: #12b981; }
.sticky-cta-wa:active { background: #0f9f70; }
body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
.site-footer { padding-bottom: 2.5rem; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.contact-form label { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font: inherit;
}
.contact-aside {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem;
}
.alert { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert.ok { background: #e8f5e9; color: #1b5e20; }
.alert.err { background: #ffebee; color: #b71c1c; }

@media (max-width: 980px) {
  .main-nav, .nav-actions { display: none; }
  .main-nav.open {
    display: flex; position: absolute; left: 1rem; right: 1rem; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line);
    padding: 1rem; border-radius: 12px; box-shadow: var(--shadow);
    gap: 0.15rem; z-index: 30; flex-wrap: nowrap;
  }
  .main-nav.open > a {
    padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .main-nav.open > a:last-of-type { border-bottom: 0; }
  .lang-slot-desktop { display: none; }
  .lang-slot-mobile {
    display: block;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }
  .lang-slot-mobile .lang-dropdown-toggle { width: 100%; justify-content: center; }
  .lang-slot-mobile .lang-dropdown-menu {
    left: 0; right: 0; min-width: 0; width: 100%;
  }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .value-row, .product-detail, .footer-grid, .contact-grid,
  .trust-row, .about-band-grid, .cat-visual-grid { grid-template-columns: 1fr; }
  .cat-visual-lg { grid-row: auto; }
  .trust-row > div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .trust-row > div:last-child { border-bottom: 0; }
  .hero { min-height: 72vh; align-items: center; }
  .hero-content { padding: 5.5rem 0 3.5rem; }
  .hero-logo { height: 52px; }
  .logo-img { height: 38px; padding: 4px 8px; }
  .hero h1 { max-width: 14ch; font-size: clamp(2rem, 9vw, 2.8rem); }
  .product-thumb { height: 180px; }
  .product-detail-media { min-height: 260px; }
  .about-band { padding-bottom: 3rem; }
  .section { padding: 2.75rem 0; }
  .sector-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .sector-card { grid-template-rows: 96px auto; }
  .sector-card-media { min-height: 96px; }
  .sector-card-body { padding: 0.8rem 0.85rem 0.95rem; }
  .sector-card-body strong { font-size: 0.98rem; }
  .sector-card-body small { font-size: 0.78rem; }
}

@media (min-width: 981px) {
  .lang-slot-mobile { display: none !important; }
  .sticky-cta {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(340px, calc(100vw - 2rem));
    border-radius: 999px;
    overflow: hidden;
    gap: 2px;
    background: transparent;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    padding-bottom: 0;
  }
  .sticky-cta a { min-height: 50px; }
  body { padding-bottom: 0; }
}
