:root {
  --ink: #242a33;
  --muted: #65717f;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --line: #dce5e8;
  --orange: #ffad16;
  --orange-soft: #fff1d2;
  --red: #a80710;
  --red-soft: #f9e1e3;
  --teal: #176f85;
  --shadow: 0 24px 70px rgba(26, 39, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 173, 22, 0.08), transparent 24%),
    linear-gradient(225deg, rgba(168, 7, 16, 0.06), transparent 26%),
    var(--soft);
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(220, 229, 232, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease;
}

.site-header.scrolled {
  box-shadow: 0 18px 45px rgba(36, 42, 51, 0.1);
}

.brand img {
  width: min(220px, 46vw);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #3b434e;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: var(--orange-soft);
  color: var(--red);
  outline: none;
}

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

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

.hero,
.page-hero,
.contact-page {
  padding: clamp(28px, 4vw, 54px) clamp(18px, 5vw, 72px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: auto;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    url("assets/images/abstract-network-bg.jpg") center / cover;
}

.hero-visual {
  order: 2;
  position: relative;
  height: clamp(240px, 28vw, 340px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 232, 0.9);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 96px;
  height: 96px;
  border: 16px solid rgba(255, 173, 22, 0.86);
  border-left-color: rgba(168, 7, 16, 0.82);
  border-radius: 50%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1,
.contact-page h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.25vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.52;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.contact-page p {
  max-width: 640px;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
}

.actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--orange);
  color: #241b08;
  box-shadow: 0 18px 32px rgba(255, 173, 22, 0.28);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--red);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 900;
}

.section {
  padding: clamp(30px, 4vw, 58px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(20px, 3.5vw, 46px);
  align-items: end;
  background: var(--paper);
}

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

.nav-card,
.values-grid article,
.process article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(26, 39, 52, 0.08);
}

.nav-card {
  min-height: 178px;
  padding: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.nav-card span,
.solution-list span,
.process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(20px, 3.8vw, 48px);
  align-items: center;
  background: #222933;
  color: var(--paper);
}

.split-feature p,
.split-feature h2 {
  color: var(--paper);
}

.split-feature .eyebrow {
  color: var(--orange);
}

.split-feature img {
  width: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  background: var(--paper);
}

.page-hero.compact {
  display: block;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 210, 0.72)),
    url("assets/images/abstract-network-bg.jpg") center / cover;
}

.page-hero img {
  width: 100%;
  height: clamp(180px, 22vw, 260px);
  min-height: 0;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.solution-list {
  display: grid;
  gap: 14px;
  background: var(--soft);
}

.solution-list article {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.solution-list img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
}

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

.project-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfcfd;
  box-shadow: 0 18px 42px rgba(26, 39, 52, 0.08);
}

.project-grid img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.project-grid div {
  padding: 20px;
}

.project-grid h2,
.solution-list h2 {
  font-size: clamp(1.25rem, 1.65vw, 1.7rem);
  line-height: 1.15;
}

.insight-panel,
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: #222933;
  color: var(--paper);
}

.insight-panel h2,
.cta-band h2 {
  color: var(--paper);
}

.insight-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-panel li {
  padding: 10px 14px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.08);
  color: #edf2f4;
  font-weight: 800;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.process article,
.values-grid article {
  padding: 18px;
}

.process h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.12;
  hyphens: none;
}

.process p,
.values-grid p,
.project-grid p,
.solution-list p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--paper);
}

.values-grid article:nth-child(1) {
  border-top: 5px solid var(--orange);
}

.values-grid article:nth-child(2) {
  border-top: 5px solid var(--red);
}

.values-grid article:nth-child(3) {
  border-top: 5px solid var(--teal);
}

.values-grid article:nth-child(4) {
  border-top: 5px solid var(--ink);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(330px, 0.7fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  min-height: auto;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72)),
    url("assets/images/contact-bg.jpg") center / cover;
}

.contact-links a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--red);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: #3c4652;
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8dc;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 4px solid rgba(168, 7, 16, 0.1);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #20262f;
  color: #edf2f4;
}

.site-footer img {
  width: min(200px, 54vw);
  height: 42px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  color: #edf2f4;
  font-weight: 800;
}

.site-footer a {
  color: var(--orange);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .card-strip,
  .project-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 44px;
    border-radius: 8px;
  }

  .home-hero,
  .intro-grid,
  .split-feature,
  .page-hero,
  .solution-list article,
  .insight-panel,
  .contact-page,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 0;
    min-height: 220px;
  }

  .hero-visual img,
  .page-hero img {
    height: 220px;
    min-height: 0;
  }

  .card-strip,
  .project-grid,
  .values-grid,
  .process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 166px;
    height: 38px;
  }

  h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
  }

  .page-hero h1,
  .contact-page h1 {
    font-size: clamp(1.7rem, 7.8vw, 2.35rem);
  }

  .button,
  .actions a,
  .contact-links a {
    width: 100%;
  }
}
