main.spg-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #020b15;
  display: flex;
  flex-direction: column;
}

[data-spg-guide] {
  --spg-bg: #020b15;
  --spg-bg-2: #061826;
  --spg-surface: rgba(9, 19, 33, 0.76);
  --spg-surface-strong: rgba(14, 26, 44, 0.94);
  --spg-text: #f5f8fb;
  --spg-muted: rgba(229, 237, 244, 0.68);
  --spg-accent: #20d1e2;
  --spg-accent-dark: #0b87b0;
  --spg-border: rgba(166, 195, 214, 0.16);
  --spg-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 12px 30px rgba(0, 0, 0, 0.18);
  direction: rtl;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(52px, 8vw, 112px) 18px clamp(54px, 7vw, 96px);
  color: var(--spg-text);
  background:
    radial-gradient(circle at 4% 2%, rgba(32, 209, 226, 0.22) 0, rgba(32, 209, 226, 0.12) 10%, transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(32, 209, 226, 0.16) 0, transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(8, 160, 178, 0.18) 0, transparent 24%),
    linear-gradient(180deg, var(--spg-bg) 0%, var(--spg-bg-2) 100%);
}

[data-spg-guide]::before,
[data-spg-guide]::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

[data-spg-guide]::before {
  inset: auto auto -16vw -10vw;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(35, 174, 202, 0.18) 0, rgba(35, 174, 202, 0.1) 30%, rgba(35, 174, 202, 0.04) 48%, transparent 70%);
  filter: blur(10px);
  opacity: 0.95;
}

[data-spg-guide]::after {
  top: 7%;
  right: 24px;
  width: 16px;
  height: 64vh;
  opacity: 0.32;
  background:
    radial-gradient(circle, rgba(32, 209, 226, 0.5) 0 2px, transparent 2.7px) center top/16px 34px repeat-y;
}

[data-spg-guide] *,
[data-spg-guide] *::before,
[data-spg-guide] *::after {
  box-sizing: border-box;
}

.spg-guide__shell {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
}

.spg-guide__intro {
  max-width: 1080px;
  margin: 0 auto 22px;
  text-align: center;
}

.spg-guide__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.spg-guide__title-accent {
  color: var(--spg-accent);
}

.spg-guide__lead {
  margin: 0;
  color: var(--spg-muted);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.9;
  font-weight: 500;
}

.spg-guide__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 2vw, 26px) clamp(16px, 2vw, 26px) clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(180, 205, 220, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.86), rgba(7, 14, 24, 0.9));
  box-shadow: var(--spg-shadow);
  backdrop-filter: blur(18px);
}

.spg-guide__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 14%, rgba(32, 209, 226, 0.12), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(32, 209, 226, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

.spg-guide__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.spg-guide__card > * {
  position: relative;
  z-index: 1;
}

.spg-guide__progress {
  width: 100%;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.spg-guide__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spg-accent), var(--spg-accent-dark));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: width 0.28s ease;
}

.spg-step {
  position: relative;
}

.spg-step__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  direction: ltr;
}

.spg-step__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--spg-accent);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 800;
  white-space: nowrap;
}

.spg-step__meta-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--spg-accent);
  box-shadow: 0 0 0 8px rgba(32, 209, 226, 0.12);
  flex: 0 0 auto;
}

.spg-step__title {
  margin: 0;
  color: var(--spg-text);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: right;
  direction: rtl;
}

.spg-step__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.spg-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.spg-option {
  appearance: none;
  border: 1px solid rgba(198, 217, 228, 0.12);
  border-radius: 16px;
  background: rgba(15, 28, 45, 0.82);
  color: var(--spg-text);
  padding: 14px 16px;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.spg-option:hover,
.spg-option:focus-visible,
.spg-option.is-active {
  transform: translateY(-1px);
  border-color: rgba(32, 209, 226, 0.52);
  background: linear-gradient(180deg, rgba(26, 48, 68, 0.98), rgba(16, 31, 47, 0.95));
  color: #fff;
  outline: none;
  box-shadow: 0 16px 30px rgba(5, 17, 26, 0.32);
}

[data-spg-guide] .spg-input {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid rgba(195, 215, 228, 0.16);
  border-radius: 16px;
  background-color: rgba(10, 18, 29, 0.96);
  background-image: linear-gradient(180deg, rgba(12, 22, 35, 0.96), rgba(10, 18, 29, 0.96));
  color: var(--spg-text);
  font: inherit;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  caret-color: var(--spg-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

[data-spg-guide] .spg-input::placeholder {
  color: rgba(212, 222, 230, 0.42);
}

[data-spg-guide] .spg-input:focus {
  outline: none;
  border-color: rgba(32, 209, 226, 0.56);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(32, 209, 226, 0.12);
}

[data-spg-guide] .spg-input:-webkit-autofill,
[data-spg-guide] .spg-input:-webkit-autofill:hover,
[data-spg-guide] .spg-input:-webkit-autofill:focus,
[data-spg-guide] .spg-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--spg-text);
  box-shadow:
    0 0 0 1000px rgba(10, 18, 29, 0.96) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(0, 0, 0, 0.2);
  transition: background-color 9999s ease-out 0s;
}

[data-spg-guide] .spg-input[data-spg-phone] {
  padding-inline-end: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2320d1e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.66A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.92.33 1.82.61 2.69a2 2 0 0 1-.45 2.11L8.09 9.62a16 16 0 0 0 6.29 6.29l1.1-1.18a2 2 0 0 1 2.11-.45c.87.28 1.77.49 2.69.61A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) 50%;
  background-size: 20px 20px;
}

.spg-step__error {
  min-height: 22px;
  margin: 0;
  color: #fda29b;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.spg-step__actions,
.spg-step__actions--end {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.spg-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #22d6e6 0%, #0b91b7 100%);
  color: #fff;
  padding: 12px 18px;
  min-height: 50px;
  min-width: 156px;
  font: inherit;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 800;
  cursor: pointer;
  direction: ltr;
  box-shadow: 0 20px 42px rgba(17, 165, 182, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.spg-button:hover,
.spg-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  outline: none;
  box-shadow: 0 24px 48px rgba(17, 165, 182, 0.36);
}

.spg-button::before {
  content: "";
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.spg-button--ghost {
  min-width: 0;
  min-height: 50px;
  padding-inline: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--spg-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.spg-button--ghost::before {
  content: none;
}

.spg-loading,
.spg-empty {
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--spg-muted);
  text-align: center;
}

.spg-complete {
  padding: 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(32, 209, 226, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.04);
  text-align: center;
}

.spg-complete__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spg-accent), #0b6f78);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(11, 166, 170, 0.2);
}

.spg-complete__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
}

.spg-complete__text {
  margin: 0 0 14px;
  color: var(--spg-muted);
  line-height: 1.8;
}

.spg-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.spg-result {
  overflow: hidden;
  border: 1px solid var(--spg-border);
  border-radius: 18px;
  background: rgba(10, 17, 29, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.spg-result__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
}

.spg-result__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spg-result__body {
  padding: 14px;
}

.spg-result__title {
  margin: 0 0 8px;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .spg-guide__shell,
  .spg-guide__card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  [data-spg-guide] {
    padding: 20px 12px 34px;
  }

  [data-spg-guide]::before {
    inset: auto auto -22vw -18vw;
    width: 62vw;
    height: 62vw;
  }

  [data-spg-guide]::after {
    right: 10px;
    top: 12%;
    height: 46vh;
    opacity: 0.2;
  }

  .spg-guide__intro {
    margin-bottom: 22px;
  }

  .spg-guide__title {
    font-size: clamp(24px, 7vw, 34px);
    margin-bottom: 10px;
    white-space: normal;
  }

  .spg-guide__lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .spg-guide__card {
    min-height: 0;
    padding: 14px 12px 16px;
    border-radius: 24px;
  }

  .spg-guide__progress {
    margin-bottom: 20px;
  }

  .spg-step__header {
    flex-direction: column-reverse;
    gap: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
  }

  .spg-step__meta {
    margin-top: 0;
    flex-direction: row-reverse;
  }

  .spg-step__title {
    font-size: clamp(20px, 5.2vw, 28px);
  }

  .spg-step__body {
    gap: 12px;
  }

  .spg-input {
    min-height: 56px;
    font-size: 15px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .spg-input[data-spg-phone] {
    padding-inline-end: 48px;
    background-position: calc(100% - 14px) 50%;
    background-size: 18px 18px;
  }

  .spg-step__actions,
  .spg-step__actions--end {
    flex-direction: column;
  }

  .spg-button,
  .spg-button--ghost {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .spg-button {
    padding: 11px 16px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .spg-options {
    grid-template-columns: 1fr;
  }

  .spg-step__actions,
  .spg-step__actions--end {
    gap: 8px;
  }
}
