:root {
  --color-red: #a21e1e;
  --color-red-dark: #7f1717;
  --color-black: #404040;
  --color-ink: #1d1f24;
  --color-gray: #6f747c;
  --color-light: #f4f5f7;
  --color-white: #ffffff;
  --shadow: 0 22px 60px rgba(64, 64, 64, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6e8ec;
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(64, 64, 64, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-black);
  font-weight: 800;
}

.logo-image {
  width: auto;
  height: 46px;
  max-width: 170px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #333840;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #333840;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  padding: 150px 0 90px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(64, 64, 64, 0.94) 0%, rgba(64, 64, 64, 0.76) 48%, rgba(64, 64, 64, 0.2) 100%),
    linear-gradient(0deg, rgba(162, 30, 30, 0.42), rgba(162, 30, 30, 0));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  color: var(--color-black);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--color-black);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 14px 34px rgba(162, 30, 30, 0.32);
}

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

.btn-light {
  color: var(--color-red);
  background: var(--color-white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  color: var(--color-white);
  background: var(--color-black);
}

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading p,
.why-copy p,
.contact-copy p {
  color: var(--color-gray);
}

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

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

.service-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid #e6e8ec;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 8px 30px rgba(64, 64, 64, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(162, 30, 30, 0.45);
  box-shadow: var(--shadow);
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-gray);
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff0f1;
}

.card-icon svg,
.why-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.why {
  background: var(--color-light);
}

.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 35px rgba(64, 64, 64, 0.06);
}

.why-item p {
  margin-bottom: 0;
  color: var(--color-gray);
}

.why-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: var(--color-white);
  background: var(--color-black);
}

.portal-cta {
  padding: 82px 0;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(64, 64, 64, 0.94), rgba(162, 30, 30, 0.92)),
    var(--color-black);
}

.portal-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.portal-cta h2 {
  max-width: 680px;
  color: var(--color-white);
}

.portal-cta p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.partner-solutions {
  background: var(--color-white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-card {
  display: grid;
  min-height: 280px;
  align-content: start;
  padding: 34px;
  border: 1px solid #e6e8ec;
  border-radius: var(--radius);
  background: var(--color-light);
  box-shadow: 0 10px 35px rgba(64, 64, 64, 0.06);
}

.partner-logo {
  width: auto;
  height: 48px;
  max-width: 220px;
  margin-bottom: 28px;
  object-fit: contain;
  object-position: left center;
}

.partner-card p {
  color: var(--color-gray);
}

.partner-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--color-red);
  font-weight: 800;
}

.partner-link:hover {
  color: var(--color-red-dark);
}

.contact-bridge {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: var(--color-white);
  background:
    linear-gradient(120deg, rgba(64, 64, 64, 0.96), rgba(162, 30, 30, 0.9)),
    var(--color-black);
}

.contact-bridge::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.contact-bridge-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

.bridge-copy h2 {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--color-white);
}

.bridge-steps {
  display: grid;
  grid-template-columns: auto 46px auto 46px auto;
  gap: 14px;
  align-items: center;
}

.bridge-step {
  display: grid;
  min-width: 116px;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.bridge-step span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.bridge-step strong {
  color: var(--color-white);
}

.bridge-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), var(--color-white));
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: var(--color-black);
  font-weight: 800;
}

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

.contact-form {
  display: grid;
  gap: 12px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--color-light);
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d9dde3;
  border-radius: var(--radius);
  color: var(--color-ink);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

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

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--color-gray);
  font-size: 0.92rem;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #404040;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 16px;
}

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

.footer-contacts,
.footer-social {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-contacts a:hover,
.footer-social a:hover {
  color: var(--color-white);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .why-layout,
  .contact-layout,
  .portal-cta-box,
  .contact-bridge-box {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .bridge-steps {
    grid-template-columns: 1fr;
  }

  .bridge-line {
    width: 2px;
    height: 28px;
    margin-left: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), var(--color-white));
  }
}

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

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid #e6e8ec;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px;
  }

  .hero {
    min-height: 86vh;
    padding: 126px 0 70px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(64, 64, 64, 0.94) 0%, rgba(64, 64, 64, 0.78) 100%),
      linear-gradient(0deg, rgba(162, 30, 30, 0.35), rgba(162, 30, 30, 0));
  }

  .hero-text {
    font-size: 1.04rem;
  }

  .section {
    padding: 74px 0;
  }

  .services-grid,
  .partner-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

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

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
