:root {
  color-scheme: dark;
  --bg: #07101c;
  --panel: rgba(17, 27, 43, 0.9);
  --panel-strong: rgba(22, 34, 53, 0.96);
  --line: rgba(186, 200, 222, 0.15);
  --text: #f7f9ff;
  --muted: #9caac1;
  --orange: #ff6b35;
  --green: #20d49b;
  --blue: #4ca3ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.18), transparent 34%),
    radial-gradient(circle at 14% 24%, rgba(76, 163, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #040a13 0%, var(--bg) 48%, #0c1321 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.14));
}

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

.navbar {
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 20, 0.72);
  border-bottom: 1px solid rgba(186, 200, 222, 0.12);
}

.navbar .nav-drop-trigger,
.navbar nav a[aria-current="page"] {
  color: #fff;
}

.services-page {
  width: min(1320px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 128px 0 104px;
}

.services-hero {
  max-width: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.services-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff8a58;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-badge::before {
  display: none;
  content: none;
}

.services-hero h1 {
  max-width: 850px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.services-hero h1 span {
  color: #ff7a45;
}

.services-hero p {
  max-width: 760px;
  margin: 0;
  color: #c4d0e4;
  font-size: 18px;
  line-height: 1.75;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.services-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.services-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  box-shadow: 0 18px 46px rgba(255, 107, 53, 0.22);
}

.services-btn.secondary {
  border: 1px solid rgba(186, 200, 222, 0.2);
  color: #edf3ff;
  background: rgba(255, 255, 255, 0.045);
}

.services-btn:hover,
.service-card:hover {
  transform: translateY(-2px);
}

.services-btn:focus-visible,
.service-card:focus-visible {
  outline: 3px solid rgba(255, 177, 61, 0.42);
  outline-offset: 3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover {
  border-color: rgba(255, 107, 53, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.22);
}

.service-card h2 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  color: #aebbd0;
  line-height: 1.65;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 24px;
  color: #dbe4ff;
  line-height: 1.45;
  font-size: 14px;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 212, 155, 0.12);
}

.service-card strong {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  color: #ff9b6e;
  font-size: 14px;
  font-weight: 900;
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 255, 255, 0.045)),
    var(--panel-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.services-cta h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.services-cta p {
  max-width: 720px;
  margin: 0;
  color: #aebbd0;
  line-height: 1.65;
}

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

  .services-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .services-page {
    width: min(100% - 28px, 1320px);
    padding: 112px 0 96px;
  }

  .services-hero,
  .service-card,
  .services-cta {
    padding: 20px;
  }

  .services-hero h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .services-hero p {
    font-size: 16px;
  }

  .services-actions,
  .services-btn,
  .services-grid {
    width: 100%;
  }

  .services-actions,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-cta h2 {
    font-size: 25px;
  }
}

@media (max-width: 430px) {
  .services-page {
    width: min(100% - 20px, 1320px);
  }

  .services-hero h1 {
    font-size: 34px;
  }
}
