:root {
  --bg: #040812;
  --surface: rgba(13, 21, 40, 0.86);
  --surface-hover: rgba(19, 31, 58, 0.96);
  --inner: rgba(6, 11, 24, 0.84);
  --border: rgba(148, 163, 184, 0.16);
  --glow: rgba(56, 189, 248, 0.52);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --emerald-bright: #34d399;
  --amber: #fbbf24;
  --rose: #fda4af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 55% 40% at 90% 25%, rgba(129, 140, 248, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(16, 185, 129, 0.09), transparent);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  padding: 26px 16px 64px;
}

.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(160deg, rgba(14, 23, 44, 0.92), rgba(6, 11, 24, 0.96));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--emerald-bright), transparent);
}

.brand-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
}

.hero h1 {
  font-size: clamp(1.95rem, 4.3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 35%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.5vw, 1rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.step-item {
  background: var(--inner);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 2px 0;
}

.step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: transparent;
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(16px, 2.5vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--glow);
  background: var(--surface-hover);
}

.card.is-hidden {
  display: none;
}

.card-visual-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--inner);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.card-logo-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald-bright));
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
  overflow: hidden;
}

.card-logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #060d1c;
}

.banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cat-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--indigo);
}

.price-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-bright);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.card h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.specs {
  background: var(--inner);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.specs > div {
  display: flex;
  gap: 7px;
  font-size: 0.84rem;
}

.specs dt {
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.specs dt.warn {
  color: var(--amber);
}

.specs dd {
  color: var(--text-soft);
}

.order-btn,
.btn-confirm {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #032212;
  border: none;
  border-radius: 11px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.order-btn {
  width: 100%;
}

.order-btn:hover,
.btn-confirm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.footer-note {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-note strong {
  color: var(--text);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  background: #0b1222;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 465px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 1.08rem;
  font-weight: 800;
}

.modal-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-top: 2px;
}

.modal-close {
  background: rgba(148, 163, 184, 0.14);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 5px;
}

.req {
  color: #f87171;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #050914;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
}

.field textarea {
  min-height: 68px;
  resize: vertical;
}

.status-box {
  display: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.status-box.is-visible {
  display: block;
}

.status-box.is-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-bright);
}

.status-box.is-error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: var(--rose);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-cancel {
  flex: 1;
  background: #1e293b;
  color: var(--text-soft);
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-confirm {
  flex: 2;
}