: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;
  --amber: #ffb13d;
  --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;
}

.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 {
  color: #fff;
}

.service-detail {
  min-height: 100vh;
  padding: 128px 0 104px;
}

.service-detail-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.detail-back {
  order: 1;
  display: none;
  min-height: 42px;
  align-items: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: 8px;
  color: #ff9b6e;
  background: rgba(255, 107, 53, 0.08);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.detail-back:hover,
.detail-btn:hover,
.related-services a:hover,
.detail-card:hover,
.process-step:hover {
  transform: translateY(-2px);
}

.detail-back:focus-visible,
.detail-btn:focus-visible,
.related-services a:focus-visible {
  outline: 3px solid rgba(255, 177, 61, 0.42);
  outline-offset: 3px;
}

.detail-hero {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  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);
}

.detail-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;
}

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

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

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

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

.detail-panel,
.detail-card,
.detail-process,
.detail-cta {
  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);
}

.detail-panel {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(32, 212, 155, 0.14), transparent 42%),
    var(--panel);
}

.detail-panel h2,
.detail-card h3,
.detail-process h2,
.detail-cta h2 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.detail-panel h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.detail-panel ul,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-panel li,
.detail-list li {
  position: relative;
  margin: 13px 0;
  padding-left: 24px;
  color: #dbe4ff;
  line-height: 1.55;
}

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

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

.detail-card {
  min-height: 100%;
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.detail-card strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.22);
}

.detail-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.detail-card p,
.process-step p,
.detail-cta p {
  margin: 0;
  color: #aebbd0;
  line-height: 1.65;
}

.detail-process {
  order: 5;
  margin-top: 16px;
  padding: 24px;
}

.detail-process h2 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.15;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(186, 200, 222, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.process-step span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  margin-bottom: 11px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ff9b6e;
  background: rgba(255, 107, 53, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.process-step h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.process-step p {
  font-size: 14px;
}

.detail-cta {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 16px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 255, 255, 0.045)),
    var(--panel-strong);
}

.detail-cta h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.15;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.detail-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b4a);
  box-shadow: 0 18px 46px rgba(255, 107, 53, 0.22);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

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

.related-services {
  order: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-services a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(186, 200, 222, 0.14);
  border-radius: 8px;
  color: #dbe4ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.related-services a:hover {
  border-color: rgba(255, 107, 53, 0.28);
  color: #fff;
  background: rgba(255, 107, 53, 0.1);
}

@media (max-width: 1080px) {
  .detail-hero,
  .detail-grid,
  .process-row {
    grid-template-columns: 1fr;
  }

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

  .detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .service-detail {
    padding: 112px 0 96px;
  }

  .service-detail-inner {
    width: min(100% - 28px, 1240px);
  }

  .detail-hero,
  .detail-panel,
  .detail-card,
  .detail-process,
  .detail-cta {
    padding: 20px;
  }

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

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

  .detail-process h2,
  .detail-cta h2 {
    font-size: 25px;
  }

  .detail-actions,
  .detail-btn,
  .related-services,
  .related-services a {
    width: 100%;
  }

  .detail-actions {
    display: grid;
  }

  .related-services {
    display: grid;
  }

  .related-services a {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .service-detail-inner {
    width: min(100% - 20px, 1240px);
  }

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

  .detail-card h3 {
    font-size: 20px;
  }
}
