:root {
  --blue: #0759a8;
  --blue-dark: #003f86;
  --red: #e31d2b;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #e8edf4;
  --soft: #f6f9fd;
  --white: #ffffff;
  --success: #198754;
  --danger: #dc3545;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(8, 35, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
}

.site-header.scrolled {
  height: 68px;
  box-shadow: 0 10px 30px rgba(14, 36, 63, 0.08);
}

.brand img {
  display: block;
  width: 260px;
  height: auto;
  transition: 0.35s ease;
}

.site-header.scrolled .brand img {
  width: 210px;
}

.main-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: 0.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--blue);
}

.header-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 800;
  color: #172033;
}

.header-contact span {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #0f172a;
}

.hero {
  position: relative;
  height: calc(100vh - 96px);
  min-height: 640px;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transform: scale(1.04) translate3d(-0.6%, 0.4%, 0);
  animation: kenburns 22s ease-in-out infinite alternate;
  transition: opacity 3s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
}

@keyframes kenburns {
  from {
    transform: scale(1.04) translate3d(-0.6%, 0.4%, 0);
  }

  to {
    transform: scale(1.12) translate3d(0.6%, -0.4%, 0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 26, 62, 0.72), rgba(0, 45, 104, 0.34) 44%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto 110px;
  color: #ffffff;
}



.hero-content .eyebrow,
.hero-content h1,
.hero-content p:not(.eyebrow),
.hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: heroContentIn 0.9s ease forwards;
}

.hero-content h1 {
  animation-delay: 0.12s;
}

.hero-content p:not(.eyebrow) {
  animation-delay: 0.24s;
}

.hero-actions {
  animation-delay: 0.36s;
}

@keyframes heroContentIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.card,
.cards article,
details,
.contact-card,
.contact-form {
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.cards article:hover,
details:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(8, 35, 68, 0.1);
}

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

.blue {
  color: var(--blue);
}

h1,
h2,
h3 {
  margin: 0 0 20px;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 23px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: 0.25s;
}

.primary {
  background: var(--blue);
  color: #ffffff;
}

.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.usp-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #ffffff;
  box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line);
}

.usp {
  padding: 34px clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

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

.usp strong {
  color: #101828;
  font-size: 17px;
}

.usp span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 92px 0;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.intro p {
  color: var(--muted);
  font-size: 18px;
}

.card,
.contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.card a {
  font-weight: 900;
  color: var(--blue);
}

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

.cards article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 30px rgba(8, 35, 68, 0.06);
}

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

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, var(--blue), #0d73cf);
  color: #ffffff;
  border-radius: 30px;
  padding: 48px;
}

.cta-panel .eyebrow {
  color: #ffffff;
}

.cta-panel .btn {
  background: #ffffff;
  color: var(--blue);
}

.site-footer {
  background: #07172d;
  color: #dce7f4;
  padding: 70px 0 0;
}

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

.site-footer img {
  filter: brightness(0) invert(1);
}

.site-footer h3 {
  color: #ffffff;
}

.site-footer p {
  color: #b8c6d8;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9fb0c5;
}

.page {
  padding-top: 0;
}

.page-hero {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  padding: 90px 0 50px;
}

.page-hero h1 {
  color: #111827;
}

.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 10px 25px rgba(8, 35, 68, 0.05);
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 19px;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-layout {
  align-items: start;
}

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

.alert {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.alert-success {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

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

.form-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.form-control {
  display: block;
  width: 100%;
  border: 1px solid #d6dee8;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  background-color: #ffffff;
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(7, 89, 168, 0.14);
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: var(--success);
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.18);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--danger);
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.16);
}

.invalid-feedback,
.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
}

.invalid-feedback {
  color: var(--danger);
}

.valid-feedback {
  color: var(--success);
}

.form-control.is-invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

.form-control.is-valid ~ .valid-feedback,
.was-validated .form-control:valid ~ .valid-feedback {
  display: block;
}

.contact-form button {
  width: max-content;
  border: 0;
}

.contact-card h2 {
  font-size: 32px;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

@media (max-width: 980px) {
  .header-contact {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-header {
    height: 78px;
  }

  .brand img {
    width: 210px;
  }

  .hero {
    height: calc(100vh - 78px);
    min-height: 600px;
    margin-top: 0;
  }

  .usp-bar,
  .cards,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-panel {
    display: block;
  }

  .cta-panel .btn {
    margin-top: 20px;
  }
}

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

  .hero-content {
    margin-bottom: 70px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand img {
    width: 190px;
  }

  .section {
    padding: 64px 0;
  }

  .page {
    padding-top: 0;
  }

  .page-hero {
    padding: 60px 0 30px;
  }
}
