:root {
  --ink: #172126;
  --muted: #5b6b73;
  --line: #dfe6e9;
  --paper: #ffffff;
  --soft: #f5f8f9;
  --soft-2: #eaf1f3;
  --green: #2f8f46;
  --green-dark: #17662d;
  --blue: #245d78;
  --yellow: #f0c743;
  --shadow: 0 18px 55px rgba(23, 33, 38, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  background: var(--ink);
  color: #f7fbfc;
  font-size: 13px;
}

.topbar-inner,
.nav-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}

.topbar a {
  color: #f7fbfc;
  opacity: 0.94;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 233, 0.9);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
}

.brand img {
  width: 156px;
  height: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.brand-mark img {
  width: 122px;
  max-height: 42px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-link,
.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.lang-link:hover,
.lang-link.active {
  background: var(--soft-2);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  margin-left: 6px;
  border-left: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--soft);
  border-color: #c7d2d7;
}

.hero .button.secondary,
.detail-hero .button.secondary,
.cta .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button.secondary:hover,
.detail-hero .button.secondary:hover,
.cta .button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(23, 33, 38, 0.94), rgba(32, 77, 95, 0.82)),
    url("../images/easy-system.jpg") center / cover no-repeat;
  color: #fff;
}

.detail-hero {
  background: linear-gradient(120deg, rgba(23, 33, 38, 0.96), rgba(36, 93, 120, 0.88));
  color: #fff;
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: 42px;
  min-height: 540px;
  padding: 74px 0;
}

.detail-grid img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.3));
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 38px;
  align-items: start;
}

.detail-content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.detail-content aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-content aside h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: 30px;
  min-height: clamp(520px, 68vh, 680px);
  padding: 58px 0 30px;
}

.hero-copy {
  padding: 28px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  align-self: end;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.hero-media img {
  width: 100%;
  max-height: min(46vh, 390px);
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.28));
}

.metric-strip {
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: 58px 0;
}

.section + .section {
  padding-top: 38px;
}

.section.alt {
  background: var(--soft);
}

.section.compact {
  padding: 42px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: 32px;
  align-items: start;
}

.split img {
  width: 100%;
  max-height: clamp(260px, 36vw, 420px);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 33, 38, 0.1);
}

.intro-section {
  padding-bottom: 18px;
}

.intro-section .split {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.intro-section .split img {
  width: min(100%, 560px);
  max-width: 100%;
  max-height: min(520px, 38vw);
  justify-self: end;
}

.body-copy {
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
}

.feature-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: inset 0 0 0 6px #eef7f0;
}

.decision-grid,
.resource-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.decision-item,
.resource-card,
.process-step {
  min-height: 100%;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decision-item span {
  display: block;
  width: 38px;
  height: 6px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  border-radius: 99px;
}

.decision-item h3,
.resource-card h3,
.process-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.decision-item p,
.resource-card p,
.process-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card .button {
  margin-top: auto;
  width: 100%;
}

.process-step {
  background: linear-gradient(180deg, #ffffff, #f7fafb);
}

.process-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 18px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: linear-gradient(180deg, #f7fafb, #edf3f5);
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.reference-item {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.reference-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reference-item-body {
  padding: 16px;
}

.reference-item h3 {
  margin: 0;
  font-size: 21px;
}

.reference-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.reference-pagination div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.reference-page-link,
.reference-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.reference-page-link.is-active,
.reference-page-link:hover,
.reference-next:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

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

.news-card {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 101, 161, 0.42);
  box-shadow: 0 18px 40px rgba(23, 33, 38, 0.1);
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: linear-gradient(180deg, #f7fafb, #edf3f5);
}

.news-card-body {
  padding: 18px;
}

.news-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.news-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.news-read-more {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
}

.article-hero img {
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(180deg, #f7fafb, #edf3f5);
}

.article-content article {
  max-width: 760px;
}

.article-content article p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.article-references {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-references h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-references ul {
  margin: 0;
  padding-left: 18px;
}

.article-references li {
  margin-bottom: 8px;
  color: var(--muted);
}

.article-references a {
  color: var(--blue);
  font-weight: 800;
}

.compact-news-card .news-card-body {
  padding: 18px;
}

.compact-news-card h3 {
  font-size: 20px;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
  border-radius: 8px;
}

.cta {
  background: linear-gradient(120deg, var(--ink), #214c5a);
  color: #fff;
}

.cta .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.cta p {
  max-width: 700px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.contact-section {
  background: var(--paper);
}

.contact-heading {
  margin-bottom: 44px;
}

.contact-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.02;
  text-transform: none;
}

.contact-heading p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.contact-form label {
  display: grid;
  gap: 0;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #ededed;
  color: var(--ink);
  font: inherit;
  font-size: 25px;
  line-height: 1.3;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: background 0.18s ease, outline-color 0.18s ease;
}

.contact-form input {
  min-height: 76px;
  padding: 0 28px;
}

.contact-form textarea {
  min-height: 285px;
  padding: 28px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #f3f3f3;
  outline-color: #575a57;
}

.contact-submit {
  justify-self: start;
  margin-top: 4px;
  border-radius: 4px;
  background: #565753;
  color: #fff;
  font-size: 22px;
}

.contact-submit:hover {
  background: #3f413e;
}

.contact-panel-inline {
  margin: 0 0 46px;
}

.contact-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-item a {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.site-footer {
  background: #10191d;
  color: #eff6f8;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-logo {
  width: 160px;
  filter: brightness(0) invert(1);
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li {
  color: rgba(239, 246, 248, 0.76);
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(239, 246, 248, 0.62);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: #20b35b;
  color: #fff;
  box-shadow: 0 12px 32px rgba(18, 116, 57, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(18, 116, 57, 0.4);
}

.whatsapp-float img {
  width: 58px;
  height: 58px;
}

.empty-state {
  padding: 30px;
  border: 1px dashed #b8c6cc;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 113px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(23, 33, 38, 0.12);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link,
  .lang-link {
    justify-content: center;
  }

  .language-switcher {
    justify-content: center;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
    margin: 8px 0 0;
  }

  .hero .section-inner,
  .split,
  .cta .section-inner,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero .section-inner {
    min-height: auto;
    padding-top: 56px;
  }

  .intro-section .split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero-media {
    min-height: 210px;
  }

  .card-grid,
  .news-grid,
  .reference-grid,
  .gallery-grid,
  .contact-panel,
  .decision-grid,
  .resource-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 660px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
  }

  .topbar-links {
    flex-wrap: wrap;
    gap: 10px;
    white-space: normal;
  }

  .brand img {
    width: 132px;
  }

  .brand-mark {
    padding-left: 10px;
  }

  .brand-mark img {
    width: 96px;
    max-height: 34px;
  }

  .nav-menu {
    top: 122px;
  }

  h1 {
    font-size: 42px;
  }

  .metric-grid,
  .card-grid,
  .reference-grid,
  .gallery-grid,
  .contact-form-grid,
  .contact-panel,
  .decision-grid,
  .resource-grid,
  .process-grid,
  .footer-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .contact-heading h1 {
    font-size: 40px;
  }

  .contact-heading p {
    font-size: 17px;
  }

  .contact-form,
  .contact-form-grid {
    gap: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 18px;
  }

  .contact-form input {
    min-height: 62px;
    padding: 0 18px;
  }

  .contact-form textarea {
    min-height: 220px;
    padding: 20px 18px;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .reference-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-pagination div {
    justify-content: flex-start;
  }

  .section {
    padding: 54px 0;
  }

  .section + .section {
    padding-top: 34px;
  }

  .intro-section {
    padding-bottom: 18px;
  }

  .intro-section .split img {
    width: 100%;
    max-height: 360px;
    justify-self: center;
  }

  .whatsapp-float {
    left: auto;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float img {
    width: 56px;
    height: 56px;
  }
}
