:root {
  --red: #e63323;
  --red-dark: #b71e13;
  --red-soft: #fff1ef;
  --ink: #15171c;
  --muted: #636b75;
  --line: #ead7d3;
  --white: #ffffff;
  --surface: #faf7f6;
  --shadow: 0 18px 50px rgba(45, 18, 14, 0.12);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

body.menu-is-open {
  overflow: hidden;
}

body.menu-is-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  background: transparent;
}

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

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

a:hover {
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(230, 51, 35, 0.12);
  box-shadow: 0 8px 24px rgba(31, 20, 18, 0.06);
  backdrop-filter: blur(16px);
}

.topbar {
  color: var(--white);
  background: var(--red);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  font-size: 0.88rem;
}

.topbar p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.topbar span {
  opacity: 0.82;
}

.topbar a {
  font-weight: 700;
}

.topbar nav a[href*="igeoapp"] {
  padding: 6px 11px;
  color: var(--red);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(80, 10, 4, 0.16);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar a:hover {
  color: var(--white);
  text-decoration: underline;
}

.topbar nav a[href*="igeoapp"]:hover {
  color: var(--red-dark);
  text-decoration: none;
  background: #fff7f6;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: var(--red-soft);
}

.nav-cta {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(230, 51, 35, 0.22);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--red-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(18, 17, 19, 0.86) 0%, rgba(18, 17, 19, 0.62) 44%, rgba(18, 17, 19, 0.18) 100%),
    linear-gradient(0deg, rgba(230, 51, 35, 0.32), rgba(230, 51, 35, 0.08));
}

.hero__content {
  position: relative;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb0a8;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 28px rgba(230, 51, 35, 0.22);
}

.button--primary:hover {
  color: var(--white);
  background: var(--red-dark);
}

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

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

.button--ghost {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(230, 51, 35, 0.2);
}

.button--ghost:hover {
  color: var(--red-dark);
  border-color: var(--red);
}

.intro-band {
  background: var(--red);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--white);
}

.stats div {
  padding: 26px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stats div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.22rem;
}

.stats span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.section {
  padding: 92px 0;
  scroll-margin-top: 90px;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 38px;
}

.section-heading h2,
.about-grid h2,
.contact-grid h2,
.careers-grid h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-overview {
  background: var(--surface);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.overview-item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(230, 51, 35, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 20, 18, 0.07);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.overview-item:hover,
.overview-item:focus-visible {
  border-color: rgba(230, 51, 35, 0.42);
  box-shadow: 0 18px 44px rgba(31, 20, 18, 0.12);
  transform: translateY(-2px);
  outline: none;
}

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

.overview-item h3 {
  margin: 20px 20px 8px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.overview-item p {
  margin: 0 20px 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.overview-item a {
  margin: auto 20px 22px;
  color: var(--red);
  font-weight: 850;
}

.overview-item a:hover {
  color: var(--red-dark);
}

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

.about-grid,
.contact-grid,
.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 58px;
  align-items: start;
}

.about-copy {
  font-size: 1.06rem;
}

.about-copy p,
.privacy-copy {
  color: var(--muted);
}

.services-section {
  background:
    linear-gradient(180deg, rgba(255, 241, 239, 0.72), rgba(255, 255, 255, 0));
}

.service-details {
  display: grid;
  gap: 16px;
}

.service-detail {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 20, 18, 0.06);
  scroll-margin-top: 130px;
}

.service-detail summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-detail summary::after {
  content: "+";
  margin-left: auto;
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.service-detail[open] summary::after {
  content: "-";
}

.service-detail summary span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-weight: 850;
}

.service-detail summary strong {
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 34px;
  padding: 0 24px 28px 84px;
}

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

.detail-grid h3 {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.detail-grid p {
  color: var(--muted);
}

.tag-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: start;
}

.tag-list li {
  padding: 8px 10px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(230, 51, 35, 0.15);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 22px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
}

.system-groups {
  display: grid;
  gap: 12px;
}

.system-groups div {
  padding: 14px;
  background: var(--surface);
  border-left: 4px solid var(--red);
  border-radius: 6px;
}

.system-groups strong {
  color: var(--ink);
}

.system-groups p {
  margin: 5px 0 0;
}

.text-link,
.document-links a,
.news-card a,
.legal-detail summary {
  color: var(--red);
  font-weight: 850;
}

.document-links {
  display: grid;
  gap: 10px;
}

.news-section {
  background: var(--surface);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(230, 51, 35, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgba(230, 51, 35, 0.42);
  box-shadow: 0 18px 44px rgba(31, 20, 18, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.news-card time {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 18px 0 12px;
  line-height: 1.16;
}

.news-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.news-card a {
  margin-top: auto;
  color: var(--red);
  font-weight: 850;
}

.news-card a:hover {
  color: var(--red-dark);
}

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

.office-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.office-list article {
  padding: 22px;
  background: var(--red-soft);
  border: 1px solid rgba(230, 51, 35, 0.14);
  border-radius: 8px;
}

.office-list h3 {
  margin: 0 0 10px;
  color: var(--red-dark);
}

.office-list p {
  margin: 0 0 12px;
}

.office-divider {
  width: 100%;
  height: 5px;
  margin: 14px 0;
  background: var(--red);
  border: 0;
  border-radius: 999px;
}

.office-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.privacy-copy {
  font-size: 0.93rem;
}

.privacy-copy a {
  color: var(--red);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #ddcdca;
  border-radius: 6px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 51, 35, 0.12);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red-dark);
  font-weight: 800;
}

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

.article-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.article-hero img,
.article-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.article-hero img {
  object-fit: cover;
  object-position: center;
}

.article-hero__shade {
  background: linear-gradient(90deg, rgba(18, 17, 19, 0.84), rgba(18, 17, 19, 0.28));
}

.article-hero__content {
  position: relative;
  padding: 88px 0;
}

.article-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1;
}

.article-hero p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.article-page {
  background: var(--surface);
}

.article-layout {
  max-width: 820px;
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(230, 51, 35, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-layout > * + * {
  margin-top: 20px;
}

.article-page .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(230, 51, 35, 0.2);
}

.article-page .text-link:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.article-layout h2 {
  margin-bottom: 0;
  color: var(--red-dark);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.article-layout p {
  color: var(--muted);
  font-size: 1.04rem;
}

.article-figure {
  margin: 20px 0 0;
}

.article-figure img,
.article-video,
.article-badge {
  border-radius: 8px;
}

.article-figure--portrait img {
  width: min(100%, 520px);
  margin: 0 auto;
}

.article-video {
  display: block;
  width: 100%;
  background: #111;
}

.article-badge {
  width: min(100%, 360px);
  background: var(--white);
}

.article-badge--small {
  width: min(100%, 210px);
}

.site-footer {
  position: relative;
  padding: 58px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #151515;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr 1.25fr;
  gap: 46px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.legal-detail summary {
  cursor: pointer;
}

.legal-detail p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.back-to-top {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--white);
  font-weight: 850;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1020px) {
  .overview-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .careers-grid,
  .detail-grid,
  .detail-grid--wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    padding-left: 24px;
  }
}

@media (max-width: 820px) {
  .topbar__inner,
  .nav-shell {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
  }

  .topbar p,
  .topbar nav {
    max-width: 100%;
  }

  .nav-shell {
    justify-content: flex-start;
  }

  .brand {
    max-width: calc(100% - 62px);
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: -15px;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    flex-direction: column;
    margin-left: auto;
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 10px 22px rgba(230, 51, 35, 0.2);
    transform: translateY(-50%);
  }

  .menu-toggle span:not(.sr-only) {
    width: 22px;
    margin: 3px 0;
    background: var(--white);
  }

  .site-nav {
    position: absolute;
    left: 30px;
    right: -15px;
    top: calc(100% + 8px);
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 560px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats div,
  .stats div:last-child {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .stats div:first-child {
    border-top: 0;
  }

  .section {
    padding: 70px 0;
    scroll-margin-top: 90px;
  }

  .service-detail {
    scroll-margin-top: 110px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar p {
    display: none;
  }

  .topbar nav {
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    text-align: center;
  }

  .topbar nav a[href*="igeoapp"] {
    padding: 5px 8px;
  }

  .hero__image {
    object-position: 70%;
  }

  .section {
    scroll-margin-top: 90px;
  }

  .service-detail {
    scroll-margin-top: 160px;
  }

  .brand img {
    width: 150px;
  }

  .overview-grid,
  .news-grid,
  .office-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .service-detail summary {
    align-items: flex-start;
    padding: 20px;
  }

  .service-detail summary span {
    width: 38px;
    height: 38px;
  }

  .detail-grid {
    padding: 0 20px 24px;
  }

  .contact-form {
    padding: 20px;
  }
}
