﻿:root {
  --mfp-bg: #090c14;
  --mfp-surface: rgba(18, 24, 38, 0.8);
  --mfp-border: rgba(255, 255, 255, 0.15);
  --mfp-text: #f5f8ff;
  --mfp-muted: rgba(223, 231, 247, 0.8);
  --mfp-accent-a: #49d4ff;
  --mfp-accent-b: #ffab79;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

.mfp-page {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--mfp-text);
  background:
    radial-gradient(circle at 10% 10%, rgba(73, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(255, 171, 121, 0.11), transparent 28%),
    linear-gradient(145deg, #080b13 0%, #0e1220 55%, #070a12 100%);
}

.mfp-page h1,
.mfp-page h2,
.mfp-page h3,
.mfp-page h4,
.mfp-page .mfp-kicker,
.mfp-page .mfp-type {
  font-family: "Space Grotesk", sans-serif;
}

.mfp-shell {
  position: relative;
  overflow: clip;
}

.mfp-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 34px 34px;
}

.mfp-shell > * {
  position: relative;
  z-index: 1;
}

.mfp-page .container {
  max-width: 1240px;
}

.mfp-page .malachite-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 12, 20, 0.55);
}

.mfp-page .malachite-navbar.scrolled {
  background: rgba(8, 10, 17, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.mfp-page .nav-wrap {
  min-height: 78px;
}

.mfp-page .nav-logo img {
  height: 42px;
}

.mfp-page .nav-menu {
  gap: 26px;
}

.mfp-page .nav-menu a {
  color: rgba(239, 244, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mfp-page .nav-menu a.active,
.mfp-page .nav-menu a:hover {
  color: #ffffff;
}

.mfp-page .nav-menu a.active::after,
.mfp-page .nav-menu a:hover::after {
  background: linear-gradient(90deg, var(--mfp-accent-a), var(--mfp-accent-b));
}

.mfp-page .btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.mfp-page .btn-primary {
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, var(--mfp-accent-a), var(--mfp-accent-b));
  box-shadow: 0 14px 28px rgba(42, 138, 176, 0.28);
}

.mfp-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(64, 146, 178, 0.36);
}

.mfp-page .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 22, 35, 0.74);
  color: #f4f8ff;
}

.mfp-page .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(24, 31, 47, 0.88);
}

.mfp-page .nav-toggle {
  border: 0;
  background: transparent;
}

.mfp-page .nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 4px;
  background: #f0f5ff;
}

.mfp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 21, 34, 0.72);
}

.mfp-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--mfp-accent-a), var(--mfp-accent-b));
}

.mfp-hero {
  padding: 96px 0 70px;
}

.mfp-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 430px);
  gap: 26px;
  align-items: center;
}

.mfp-hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
}

.mfp-hero-copy > p {
  margin: 0;
  color: var(--mfp-muted);
  max-width: 64ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;
}

.mfp-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mfp-hero-panel {
  border: 1px solid var(--mfp-border);
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 171, 121, 0.16), transparent 34%),
    radial-gradient(circle at 14% 84%, rgba(73, 212, 255, 0.14), transparent 34%),
    var(--mfp-surface);
}

.mfp-hero-panel h3 {
  margin: 0 0 16px;
  font-size: 25px;
}

.mfp-hero-panel p {
  margin: 16px 0 0;
  color: rgba(226, 234, 248, 0.83);
  line-height: 1.75;
}

.mfp-hero-stats {
  display: grid;
  gap: 10px;
}

.mfp-hero-stats article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(14, 19, 31, 0.7);
}

.mfp-hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.mfp-hero-stats span {
  color: rgba(224, 233, 248, 0.78);
  font-size: 13px;
}

.mfp-projects {
  padding: 0 0 95px;
}

.mfp-section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.mfp-section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

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

.mfp-project-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(155deg, rgba(18, 24, 37, 0.82), rgba(12, 16, 28, 0.95));
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.mfp-project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
}

.mfp-type {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 241, 254, 0.9);
}

.mfp-project-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.24;
}

.mfp-project-card p {
  margin: 0;
  color: rgba(226, 234, 248, 0.84);
  font-size: 14px;
  line-height: 1.74;
}

.mfp-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mfp-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(228, 238, 255, 0.9);
}

.mfp-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ceeff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mfp-link:hover {
  color: #ffd2b5;
}

.mfp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 19, 0.87);
  padding-top: 68px;
}

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

.mfp-footer-brand img {
  max-width: 180px;
  margin-bottom: 12px;
}

.mfp-footer h4 {
  margin: 0 0 12px;
  color: rgba(237, 243, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mfp-footer p,
.mfp-footer li,
.mfp-footer a {
  color: rgba(216, 229, 251, 0.82);
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.mfp-footer a:hover {
  color: #ffffff;
}

.mfp-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mfp-contact-list i {
  margin-right: 8px;
  color: #9deeff;
}

.mfp-footer-bottom {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px 24px;
}

.mfp-footer-bottom p,
.mfp-legal-links a {
  font-size: 12px;
  color: rgba(200, 216, 244, 0.72);
}

.mfp-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

@media (max-width: 980px) {
  .mfp-page .nav-menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(8, 11, 19, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mfp-page .nav-menu.active {
    display: flex;
  }

  .mfp-page .nav-cta {
    display: none;
  }

  .mfp-page .nav-toggle {
    display: flex;
  }

  .mfp-hero {
    padding-top: 74px;
  }

  .mfp-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .mfp-page .container {
    padding: 0 16px;
  }

  .mfp-project-grid,
  .mfp-footer-grid {
    grid-template-columns: 1fr;
  }

  .mfp-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mfp-footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfp-project-card,
  .mfp-page .btn {
    transition: none !important;
    animation: none !important;
  }
}
