:root {
  --bg: #f8f9fc;
  --white: #ffffff;
  --text: #1a1f4d;
  --text-soft: #6f78a8;
  --blue: #2847c7;
  --blue-dark: #1d2f8d;
  --cyan: #55d5f3;
  --border: #d9def0;
  --shadow: 0 20px 50px rgba(33, 52, 141, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 222, 240, 0.6);
}

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

.logo img {
  width: 120px;
  height: auto;
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

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

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

.hero {
  padding: 72px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 580px;
}

.hero-content p {
  max-width: 540px;
  color: var(--text-soft);
  font-size: 18px;
  margin-bottom: 28px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 700px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3d67ea, var(--blue));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(40, 71, 199, 0.25);
}

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

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

.services-section {
  padding: 80px 0 40px;
}

.section-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 40px;
}

.service-card {
  text-align: center;
  padding: 24px 20px;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(85, 213, 243, 0.18), rgba(40, 71, 199, 0.12));
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.service-card p {
  max-width: 470px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 15px;
}

.split-section {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split-content h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  font-weight: 800;
  max-width: 560px;
  margin-bottom: 18px;
}

.split-content p {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8b94c9;
}

.split-visual img {
  width: 100%;
  max-width: 620px;
}

.cta-band {
  padding: 24px 0 40px;
}

.cta-grid {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  border-radius: 10px;
  padding: 42px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  box-shadow: var(--shadow);
}

.cta-left h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
  margin-bottom: 24px;
}

.cta-right ul {
  list-style: none;
}

.cta-right li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.92);
}

.cta-right li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.contact-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 820px;
  text-align: center;
}

.contact-title {
  font-size: clamp(42px, 6vw, 90px);
  line-height: 0.95;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-subtitle {
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #8e97c9;
  background: transparent;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #98a0c9;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-btn {
  margin: 10px auto 0;
  min-width: 180px;
}

.site-footer {
  border-top: 2px solid #1f1f1f;
  padding: 34px 0;
  background: #f7f7f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.footer-grid h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #222;
}

.footer-grid p,
.footer-grid a {
  font-size: 15px;
  color: #222;
}

.section-diagonal-top::after,
.section-diagonal-left::before,
.section-diagonal-right::after,
.section-diagonal-bottom::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.section-diagonal-top::after {
  top: 30px;
  right: -120px;
  width: 540px;
  height: 320px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: skewX(-36deg) rotate(0deg);
  border-radius: 40px;
  opacity: 0.95;
}

.section-diagonal-left::before {
  left: -180px;
  top: 90px;
  width: 520px;
  height: 260px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: skewX(35deg);
  border-radius: 36px;
  opacity: 0.95;
}

.section-diagonal-right::after {
  right: -180px;
  top: 60px;
  width: 520px;
  height: 260px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: skewX(-35deg);
  border-radius: 36px;
  opacity: 0.95;
}

.section-diagonal-bottom::after {
  right: -180px;
  bottom: -90px;
  width: 450px;
  height: 220px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: skewX(-36deg);
  border-radius: 36px;
  opacity: 0.95;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .cta-grid,
  .footer-grid,
  .form-row,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p,
  .split-content p,
  .split-content h2 {
    max-width: none;
  }

  .hero-content h1 {
    max-width: none;
  }

  .hero-visual img,
  .split-visual img {
    margin: 0 auto;
  }

  .split-content,
  .split-visual,
  .cta-left,
  .cta-right {
    text-align: center;
  }

  .cta-right li {
    text-align: left;
  }

  .reverse-mobile .split-content {
    order: 1;
  }

  .reverse-mobile .split-visual {
    order: 2;
  }

  .footer-grid {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 86px;
    right: 20px;
    width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 16px;
  }

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

  .menu-toggle {
    display: block;
  }

  .hero-content h1,
  .section-title,
  .split-content h2 {
    word-break: break-word;
  }

  .cta-grid {
    padding: 28px 24px;
  }

  .site-footer {
    padding-bottom: 50px;
  }

  .section-diagonal-top::after,
  .section-diagonal-left::before,
  .section-diagonal-right::after,
  .section-diagonal-bottom::after {
    opacity: 0.55;
  }
}