:root {
  --bg: #f3efe6;
  --bg-soft: #fbf8f2;
  --ink: #0b2342;
  --ink-soft: #4a5b6e;
  --line: #d8d1c4;
  --brand: #e3322b;
  --brand-deep: #a91e1a;
  --accent: #e3322b;
  --navy: #071d3c;
  --white: #ffffff;
  --shadow: 0 24px 64px rgba(18, 53, 74, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(12, 139, 111, 0.12), transparent 36%),
    linear-gradient(180deg, #f9f7f2 0%, #f1ece2 100%);
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.topbar__inner,
.topbar__contacts,
.topbar__actions,
.site-header__inner,
.site-nav,
.hero__actions,
.hero__highlights,
.support-band__actions,
.contact-cards,
.form-row,
.site-footer__bottom {
  display: flex;
}

.topbar__inner {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.topbar__contacts,
.topbar__actions {
  flex-wrap: wrap;
  gap: 14px 18px;
}

.topbar a {
  text-decoration: none;
}

.topbar__link--whatsapp {
  color: #a9ffcb;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(20px);
  background: rgba(7, 29, 60, 0.94);
  border-bottom: 1px solid rgba(18, 53, 74, 0.08);
}

.site-header__inner {
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand img {
  width: min(260px, 58vw);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(7, 29, 60, 0.98);
  box-shadow: 0 14px 34px rgba(7, 29, 60, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.site-nav {
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.topbar a:hover,
.topbar a:focus-visible,
.button:hover,
.button:focus-visible,
.support-link:hover,
.support-link:focus-visible {
  opacity: 0.85;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 29, 60, 0.98), rgba(11, 35, 66, 0.9)),
    url("../images/backgrounds/homebg.jpg") center/cover no-repeat;
  opacity: 0.98;
}

.hero__grid,
.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 34px;
  padding: 96px 0 88px;
  align-items: center;
}

.hero__grid {
  align-items: start;
  padding-top: 38px;
}

.hero__content {
  padding-top: 0;
}

.hero__content,
.page-hero__copy {
  color: var(--white);
}

.hero__content {
  max-width: 720px;
}

.hero__content h1 {
  max-width: 12.4em;
  font-size: clamp(2.8rem, 4vw, 3.85rem);
  line-height: 1.08;
}

.text-nowrap {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

p,
li {
  line-height: 1.65;
}

.hero__lead,
.section-heading p,
.page-hero__copy p,
.problem-card p,
.feature-box p,
.contact-card p,
.faq-item p,
.support-links p,
.form-note,
.hero-card p,
.stat-card span,
.support-band p,
.solution-card p,
.page-summary p {
  color: rgba(255, 255, 255, 0.88);
}

.hero__lead {
  max-width: 760px;
  font-size: 1.12rem;
  margin: 20px 0 0;
}

.hero__actions,
.support-band__actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--secondary {
  background: var(--white);
  color: var(--navy);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.button--link {
  padding: 0;
  min-height: auto;
  justify-content: flex-start;
  border: 0;
  color: var(--brand-deep);
}

.hero__highlights {
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__highlights li,
.page-hero__meta li {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__panel,
.page-hero__aside {
  display: grid;
  gap: 18px;
}

.hero-card,
.stat-card,
.info-card,
.solution-card,
.contact-card,
.form-card,
.faq-item,
.problem-card,
.feature-box,
.media-card,
.support-links,
.page-summary,
.support-link,
.gallery-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 53, 74, 0.08);
  box-shadow: var(--shadow);
}

.hero-card,
.stat-card,
.info-card,
.solution-card,
.contact-card,
.form-card,
.problem-card,
.feature-box,
.support-links,
.page-summary,
.gallery-card,
.faq-item {
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: 28px;
  color: var(--ink);
}

.hero-card__title {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--brand-deep);
}

.hero-card p,
.stat-card span,
.info-card p,
.solution-card p,
.problem-card p,
.feature-box p,
.contact-card p,
.support-link span,
.page-summary p,
.gallery-card figcaption,
.faq-item p {
  color: var(--ink-soft);
}

.stat-grid,
.info-grid,
.solution-grid,
.product-grid,
.metrics-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}

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

.stat-card {
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.stat-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section {
  padding: 88px 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.5);
}

.section--accent {
  background: linear-gradient(135deg, rgba(7, 29, 60, 0.98), rgba(16, 53, 92, 0.95));
  color: var(--white);
}

.section--accent h2,
.section--accent h3,
.section--accent a {
  color: inherit;
}

.section--accent .support-link {
  color: #000000;
  font-weight: 800;
}

.section--accent .section-heading p,
.section--accent .support-band p {
  color: rgba(255, 255, 255, 0.84);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading--left {
  max-width: 560px;
}

.section-heading p,
.page-summary p {
  color: var(--ink-soft);
}

.info-grid,
.solution-grid,
.product-grid,
.metrics-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.solution-card,
.problem-card,
.feature-box {
  padding: 26px;
}

.solution-card__tag,
.page-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 139, 111, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.solution-card ul,
.feature-list,
.faq-list,
.link-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.support-link {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: #000000;
  text-decoration: none;
  font-weight: 800;
}

.contact-layout,
.revenda-layout,
.content-grid,
.product-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
}

.contact-cards {
  flex-wrap: wrap;
  gap: 16px;
}

.contact-card {
  flex: 1 1 180px;
  padding: 22px;
}

.contact-card a {
  color: var(--brand-deep);
}

.form-card {
  padding: 28px;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink);
}

.lead-form input:focus,
.lead-form textarea:focus,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.topbar a:focus-visible,
.button:focus-visible,
.support-link:focus-visible {
  outline: 3px solid rgba(244, 125, 66, 0.36);
  outline-offset: 2px;
}

.form-row {
  gap: 14px;
}

.form-row > label {
  flex: 1 1 0;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.status-message {
  display: none;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-message.is-visible {
  display: block;
}

.status-message__content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex: 0 0 auto;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.status-message__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.status-message__text strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.status-message__text span {
  font-size: 0.94rem;
  line-height: 1.45;
}

.status-message__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.status-message.is-success {
  background: rgba(12, 139, 111, 0.1);
  color: #0d5d49;
  border-color: rgba(12, 139, 111, 0.18);
}

.status-message.is-success .status-message__icon {
  background: #0c8b6f;
  color: #ffffff;
}

.status-message.is-error {
  background: rgba(227, 50, 43, 0.08);
  color: #8d2c22;
  border-color: rgba(227, 50, 43, 0.18);
}

.status-message.is-error .status-message__icon {
  background: #e3322b;
  color: #ffffff;
}

.status-message.is-error .status-message__action {
  background: #25d366;
  color: #062f1f;
}

.status-message.is-success .status-message__action {
  display: none;
}

.form-card--compact {
  max-width: 460px;
  justify-self: end;
}

.lead-form--compact {
  gap: 14px;
}

.site-footer {
  background: #0d2436;
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer__logo {
  width: 240px;
  margin-bottom: 18px;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

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

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

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer__bottom {
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.94rem;
}

.page-hero__copy p,
.page-hero__aside p {
  font-size: 1.05rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--white);
}

.page-summary {
  padding: 22px;
}

.page-summary h3 {
  margin-bottom: 12px;
}

.content-grid {
  align-items: start;
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  background: #e9e1d4;
}

.gallery-card figcaption {
  padding: 16px 18px 20px;
  font-size: 0.94rem;
}

.support-links {
  padding: 24px;
}

.support-links h3,
.faq-item h3,
.problem-card h3,
.feature-box h3 {
  margin-bottom: 12px;
}

.faq-item {
  padding: 22px;
}

.product-contact .form-card {
  position: sticky;
  top: 104px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 108px;
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 53, 74, 0.08);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-bottom: 16px;
}

.legal-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card p + ol,
.legal-card ul + p,
.legal-card ol + p,
.legal-card h3 + p,
.legal-card h3 + ul {
  margin-top: 14px;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.legal-list li + li {
  margin-top: 10px;
}

.legal-list--ordered {
  list-style: decimal;
}

.note-bar {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(12, 139, 111, 0.1);
  color: var(--brand-deep);
  font-weight: 600;
}

.cookie-ui-root {
  position: relative;
  z-index: 1200;
}

.cookie-manage-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(7, 29, 60, 0.96);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(7, 29, 60, 0.22);
  cursor: pointer;
}

.cookie-manage-button__icon {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.cookie-banner,
.cookie-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(460px, calc(100% - 32px));
}

.cookie-banner__content,
.cookie-panel__card {
  border-radius: 28px;
  border: 1px solid rgba(7, 29, 60, 0.12);
  background: rgba(249, 247, 242, 0.98);
  box-shadow: 0 28px 70px rgba(7, 29, 60, 0.24);
  color: var(--ink);
}

.cookie-banner__content {
  padding: 24px;
}

.cookie-panel__card {
  padding: 24px;
  max-height: min(78vh, 720px);
  overflow-y: auto;
}

.cookie-banner__eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.cookie-banner h2,
.cookie-panel h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.cookie-banner h2 + p,
.cookie-panel__intro {
  margin-top: 14px;
}

.cookie-banner__actions,
.cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cookie-banner__button {
  min-height: 48px;
}

.cookie-banner .button--ghost,
.cookie-panel .button--ghost {
  border-color: rgba(7, 29, 60, 0.2);
  color: var(--navy);
}

.cookie-banner__note {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.cookie-banner__note a {
  color: var(--brand-deep);
  font-weight: 700;
}

.cookie-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cookie-panel__close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(7, 29, 60, 0.1);
}

.cookie-option__copy h3 {
  font-size: 1rem;
}

.cookie-option__copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.cookie-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(11, 35, 66, 0.08);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .solution-grid,
  .info-grid,
  .product-grid,
  .metrics-grid,
  .faq-grid,
  .stat-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid,
  .page-hero__grid,
  .contact-layout,
  .revenda-layout,
  .content-grid,
  .product-contact,
  .legal-layout,
  .support-band {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    padding-top: 76px;
  }

  .hero__content {
    padding-top: 0;
  }

  .form-card--compact,
  .product-contact .form-card,
  .legal-sidebar {
    justify-self: stretch;
    position: static;
  }
}

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(249, 247, 242, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav.is-open a {
    color: var(--navy);
  }

  .topbar__inner,
  .site-footer__bottom {
    flex-direction: column;
  }

  .hero__grid,
  .page-hero__grid {
    padding: 76px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .cookie-banner,
  .cookie-panel {
    right: 16px;
    bottom: 16px;
    width: min(480px, calc(100% - 32px));
  }

  .cookie-manage-button {
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .cookie-manage-button__icon {
    display: block;
  }

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

@media (max-width: 640px) {
  .solution-grid,
  .info-grid,
  .product-grid,
  .metrics-grid,
  .gallery-grid,
  .faq-grid,
  .stat-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .support-band__actions,
  .hero__highlights,
  .page-hero__meta,
  .contact-cards,
  .form-row {
    flex-direction: column;
  }

  .button,
  .support-link {
    width: 100%;
  }

  .hero-card,
  .stat-card,
  .solution-card,
  .info-card,
  .contact-card,
  .form-card,
  .problem-card,
  .feature-box,
  .support-links,
  .page-summary,
  .faq-item {
    padding: 22px;
  }

  .status-message__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-message__action {
    width: 100%;
  }

  .cookie-banner__actions,
  .cookie-panel__actions,
  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner,
  .cookie-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .cookie-panel__card,
  .cookie-banner__content {
    padding: 20px;
  }
}
