/**
 * Stiluri pentru paginile de serviciu.
 *
 * Se incarca peste site.css si refolosesc aceleasi variabile de tema
 * (--bg, --surface, --line, --blue...), ca paginile sa arate ca parte din site,
 * nu ca un sablon lipit peste el.
 */

/* ------------------------------------------------------------------ hero */

.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 54px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.sp-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(22, 130, 255, 0.16) 0%, rgba(22, 130, 255, 0.04) 45%, transparent 70%);
  pointer-events: none;
}

.sp-breadcrumb {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: #6b7c92;
  font-size: 13px;
}

.sp-breadcrumb a {
  color: #8fa0b6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-breadcrumb a:hover {
  color: white;
}

.sp-breadcrumb [aria-current="page"] {
  color: var(--blue-bright);
  font-weight: 700;
}

.sp-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.sp-hero-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  background: rgba(22, 130, 255, 0.09);
  border: 1px solid rgba(22, 130, 255, 0.22);
  border-radius: 17px;
  font-size: 28px;
}

.sp-hero h1 {
  margin: 0;
  color: #f7faff;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.sp-lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: #a5b3c5;
  font-size: 18px;
  line-height: 1.75;
}

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

.sp-actions .button {
  min-height: 52px;
  gap: 14px;
}

/* ------------------------------------------------------------------ corp */

.sp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 56px;
  align-items: start;
  padding-block: 66px 76px;
}

.sp-block + .sp-block {
  margin-top: 52px;
}

.sp-block h2 {
  margin: 0 0 24px;
  color: #f2f7ff;
  font-size: clamp(25px, 2.5vw, 33px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sp-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-list li {
  position: relative;
  padding-left: 30px;
  color: #a8b5c6;
  font-size: 16px;
  line-height: 1.7;
}

.sp-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 8px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.sp-list-check li::before {
  content: "✓";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

/* ------------------------------------------------------------------ etape */

.sp-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  list-style: none;
  counter-reset: none;
}

.sp-steps li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
}

.sp-step-no {
  flex: 0 0 auto;
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding-top: 3px;
}

.sp-steps strong {
  display: block;
  color: #e9f0fa;
  font-size: 17px;
  font-weight: 700;
}

.sp-steps p {
  margin: 7px 0 0;
  color: #8b9aae;
  font-size: 15px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------- faq */

.sp-faq {
  display: grid;
  border-top: 1px solid var(--line);
}

.sp-faq details {
  border-bottom: 1px solid var(--line);
}

.sp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  color: #dfe7f2;
  font-size: 17px;
  font-weight: 660;
  cursor: pointer;
  list-style: none;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq summary::after {
  content: "+";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  transition: transform 0.2s ease;
}

.sp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.sp-faq p {
  max-width: 720px;
  margin: 0;
  padding: 0 46px 22px 0;
  color: #8b9aae;
  font-size: 16px;
  line-height: 1.75;
}

/* ----------------------------------------------------------------- aside */

.sp-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 15px;
}

.sp-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.sp-card-label {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.sp-card p {
  margin: 0;
  color: #aab6c7;
  font-size: 15px;
  line-height: 1.72;
}

.sp-card small {
  display: block;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #6d7d92;
  font-size: 13px;
  line-height: 1.6;
}

.sp-card-cta {
  background: #0d1b2b;
  border-color: rgba(22, 130, 255, 0.3);
}

.sp-card-cta strong {
  display: block;
  margin-bottom: 9px;
  color: #eaf2fd;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.sp-card-cta .button {
  width: 100%;
  margin-top: 11px;
}

/* --------------------------------------------------------------- conexe */

.sp-related {
  padding: 62px 0 74px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.sp-related h2 {
  margin: 0 0 28px;
  color: #f2f7ff;
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-card {
  display: block;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.related-card:hover {
  background: #101824;
  border-color: rgba(50, 144, 255, 0.32);
  transform: translateY(-4px);
}

.related-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 17px;
  color: var(--blue-bright);
  background: rgba(22, 130, 255, 0.08);
  border: 1px solid rgba(22, 130, 255, 0.18);
  border-radius: 11px;
  font-size: 19px;
}

.sp-hero-icon svg {
  width: 34px;
  height: 34px;
}

.related-icon svg {
  width: 22px;
  height: 22px;
}

.related-card strong {
  display: block;
  color: #e9f0fa;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related-desc {
  display: block;
  margin-top: 8px;
  color: #7e8da1;
  font-size: 14px;
  line-height: 1.65;
}

/* ------------------------------------------------------- aprobare deviz */

.approve-wrap {
  padding-block: 46px 80px;
}

.approve-card {
  max-width: 660px;
  margin: 0 auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.approve-card h2 {
  margin: 0 0 10px;
  color: #f2f7ff;
  font-size: 28px;
  font-weight: 690;
  letter-spacing: -0.03em;
}

.approve-card > p {
  margin: 0;
  color: #a3b1c4;
  font-size: 16px;
  line-height: 1.72;
}

.approve-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--blue-bright);
  background: rgba(22, 130, 255, 0.1);
  border: 1px solid rgba(22, 130, 255, 0.28);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.approve-ok .approve-badge {
  color: #8ff0c0;
  background: rgba(55, 214, 141, 0.1);
  border-color: rgba(55, 214, 141, 0.35);
}

.approve-declined .approve-badge {
  color: #ffb7bd;
  background: rgba(255, 107, 117, 0.1);
  border-color: rgba(255, 107, 117, 0.32);
}

.approve-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.approve-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.approve-diagnostic {
  margin: 0;
  color: #dbe5f1;
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.approve-price-block {
  background: rgba(22, 130, 255, 0.05);
  border: 1px solid rgba(22, 130, 255, 0.22);
  border-radius: var(--radius-sm);
  margin-top: 18px;
  padding: 20px 22px;
}

.approve-amount {
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.approve-price-block small {
  display: block;
  margin-top: 10px;
  color: #7f8fa4;
  font-size: 13px;
}

.approve-note {
  margin: 22px 0 0;
  color: #7f8fa4;
  font-size: 14px;
  line-height: 1.65;
}

.approve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.approve-actions .button {
  flex: 1 1 220px;
  min-height: 54px;
  gap: 12px;
}

.approve-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #ffc0c5;
  background: rgba(255, 107, 117, 0.07);
  border: 1px solid rgba(255, 107, 117, 0.24);
  border-radius: 9px;
  font-size: 14px;
}

.approve-facts {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.approve-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
}

.approve-facts dt {
  color: #7f8fa4;
  font-size: 13px;
  font-weight: 700;
}

.approve-facts dd {
  margin: 0;
  color: #e2ebf6;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .sp-body {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .sp-aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-card-cta {
    grid-column: 1 / -1;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .sp-hero {
    padding: 32px 0 40px;
  }

  .sp-breadcrumb {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .sp-hero-inner {
    flex-direction: column;
    gap: 18px;
  }

  .sp-hero-icon {
    width: 56px;
    height: 56px;
    font-size: 23px;
  }

  .sp-hero-icon svg {
    width: 28px;
    height: 28px;
  }

  .sp-lead {
    font-size: 16px;
  }

  .sp-actions {
    display: grid;
  }

  .sp-actions .button {
    width: 100%;
  }

  .sp-body {
    padding-block: 46px 54px;
  }

  .sp-block + .sp-block {
    margin-top: 40px;
  }

  .sp-steps li {
    flex-direction: column;
    gap: 8px;
    padding: 19px 18px;
  }

  .sp-aside,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .sp-card {
    padding: 22px 20px;
  }

  .sp-faq p {
    padding-right: 0;
  }

  .approve-wrap {
    padding-block: 30px 54px;
  }

  .approve-card {
    padding: 24px 20px;
  }

  .approve-actions .button {
    flex: 1 1 100%;
  }

  .approve-facts > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .approve-facts dd {
    text-align: left;
  }
}

/* ---- Pagini legale (Termeni, Confidențialitate, Cookies) ----
   Documentele existau doar în modale; acum au pagini proprii.
   Site-ul are fundal închis (#070b12), deci textul e deschis: o paletă de
   culori pentru fundal alb ar fi ilizibilă aici. */
.legal-page .legal-article {
  max-width: 820px;
  padding: 24px 0 72px;
  color: #d5deec;
}
.legal-page .legal-article h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 18px;
  color: #f4f8ff;
}
.legal-page .legal-article h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  color: #7fb2f5;
}
.legal-page .legal-article p { line-height: 1.75; margin: 0 0 12px; color: #c6d2e4; }
.legal-page .legal-article ul { margin: 0 0 14px 22px; line-height: 1.75; color: #c6d2e4; }
.legal-page .legal-article li { margin-bottom: 6px; }
.legal-page .legal-article p.legal-subtitle { font-weight: 600; color: #7fb2f5; }
.legal-page .legal-article p.legal-intro { font-size: 17px; color: #dbe4f2; }
.legal-page .legal-article p.legal-list-title { font-weight: 600; color: #e4ebf7; margin-top: 10px; }
.legal-page .legal-article p.legal-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #93a2ba;
}
