:root {
  color-scheme: light;
  --ink: #12201c;
  --muted: #53645f;
  --line: #d9e2dd;
  --paper: #f7f9f5;
  --white: #ffffff;
  --green: #258048;
  --green-deep: #155c38;
  --blue: #0d4b73;
  --blue-deep: #082d45;
  --lime: #b8df4e;
  --amber: #d89a2b;
  --shadow: 0 20px 50px rgba(18, 32, 28, 0.13);
  --radius: 8px;
  --shell: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(18, 32, 28, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(18, 32, 28, 0.07);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--blue-deep);
}

.brand img {
  width: 72px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(8, 45, 69, 0.1));
}

.brand span {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  border-radius: var(--radius);
  color: #243b35;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(37, 128, 72, 0.1);
  outline: 0;
}

.main-nav .nav-action {
  background: var(--blue);
  color: var(--white);
}

.main-nav .nav-action:hover,
.main-nav .nav-action:focus-visible {
  background: var(--blue-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(720px, calc(100svh - 118px));
  overflow: hidden;
  background: #0b211d;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(5, 21, 29, 0.92) 0%, rgba(5, 21, 29, 0.66) 43%, rgba(5, 21, 29, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.38)),
    url("logo-gestiumrep.webp");
  background-repeat: no-repeat;
  background-size: cover, cover, min(74vw, 900px);
  background-position: center, center, right 2vw center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 10px;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--blue), var(--amber));
}

.hero-content {
  max-width: 760px;
  padding: 72px 0 58px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(184, 223, 78, 0.55);
  outline-offset: 3px;
}

.button-primary {
  background: var(--lime);
  color: #10220f;
}

.button-primary:hover {
  background: #c5ed58;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.intro-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-grid > div {
  min-height: 150px;
  padding: 28px;
  background: var(--white);
}

.metric {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.intro-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.section {
  padding: 88px 0;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.section-kicker {
  color: var(--green);
}

h2 {
  margin-top: 12px;
  color: var(--blue-deep);
  font-size: 2.7rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.rich-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.section-heading p:not(.section-kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  max-width: 700px;
}

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

.service-card {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 32, 28, 0.06);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(13, 75, 115, 0.09);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

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

.service-card ul {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #2e463f;
  font-size: 0.96rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.value-section {
  border-block: 1px solid var(--line);
  background: #eef4ed;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.value-grid > div {
  min-height: 180px;
  padding: 26px;
  background: var(--white);
}

.value-grid h3 {
  color: var(--blue);
}

.value-grid p {
  margin-top: 10px;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process-list li::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
}

.process-list li:nth-child(even)::after {
  background: var(--blue);
}

.process-list span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.process-list strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.sectors-section {
  background: var(--blue-deep);
  color: var(--white);
}

.sectors-section h2,
.sectors-section .section-kicker {
  color: var(--white);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.sector-tags span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 128, 72, 0.11);
  color: var(--green-deep);
  font-size: 1.4rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 820px;
  padding: 0 56px 24px 0;
  color: var(--muted);
}

.contact-section {
  background: #f3f6f0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.contact-layout > div > p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  color: var(--blue);
  font-weight: 800;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(18, 32, 28, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #2f443e;
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c8d4ce;
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 128, 72, 0.14);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  color: var(--muted);
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand img {
    width: 66px;
    height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 10px 16px 18px;
    box-shadow: 0 18px 30px rgba(18, 32, 28, 0.1);
  }

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

  .main-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(18, 32, 28, 0.08);
  }

  .main-nav .nav-action {
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    margin-top: 10px;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(5, 21, 29, 0.88) 0%, rgba(5, 21, 29, 0.7) 62%, rgba(5, 21, 29, 0.88) 100%),
      url("logo-gestiumrep.webp");
    background-size: cover, min(108vw, 620px);
    background-position: center, center bottom 2px;
  }

  .hero-content {
    padding: 54px 0 44px;
  }

  h1 {
    font-size: 3.7rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .intro-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  h2 {
    font-size: 2.15rem;
  }

  .section {
    padding: 66px 0;
  }

  .split-layout,
  .contact-layout {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .brand span {
    font-size: 0.88rem;
  }

  .hero {
    min-height: calc(100svh - 104px);
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .service-grid,
  .value-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .intro-grid > div,
  .service-card,
  .value-grid > div,
  .process-list li {
    min-height: auto;
  }

  .process-list li {
    padding-bottom: 34px;
  }

  summary {
    align-items: flex-start;
    padding: 18px 0;
  }

  details p {
    padding-right: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
