/* =========================================================
   ImenFix — service detail page (service-charge.html)
   Builds on services.css (.sp, .stage, --u = 1px of the 1024 mock-up).
   ========================================================= */

/* ---------- HERO (design y 100 → 418) ---------- */
.sd-hero {
  position: relative; z-index: 2; padding-top: 82px;
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(40,46,62,.6), transparent 70%),
    linear-gradient(180deg, #151820 0%, #10131b 70%, #161922 100%);
}
.sd-hero__stage { height: calc(318 * var(--u)); }
.sd-hero__media {
  position: absolute; top: 0; left: 0; width: calc(620 * var(--u)); height: calc(318 * var(--u));
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 12%); mask-image: linear-gradient(to left, transparent 0%, #000 12%);
}
.sd-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 1441px) {
  .sd-hero__media { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 12%, #000 92%, transparent 100%); mask-image: linear-gradient(to left, transparent 0%, #000 12%, #000 92%, transparent 100%); }
}
.sd-hero__content { position: absolute; top: calc(28 * var(--u)); right: calc(44 * var(--u)); width: calc(440 * var(--u)); color: #fff; }
.sd-hero .crumbs { margin-bottom: 0; }
.sd-hero .crumbs::before { content: ""; width: calc(18 * var(--u)); height: calc(3 * var(--u)); border-radius: 3px; background: var(--red); }
.sd-hero h1 { margin-top: calc(12 * var(--u)); font-size: calc(36 * var(--u)); font-weight: 900; line-height: 1.35; text-shadow: 0 3px 14px rgba(0,0,0,.4); }
.sd-hero p { margin-top: calc(6 * var(--u)); font-size: calc(13.5 * var(--u)); line-height: 1.75; color: #ecebf0; font-weight: 500; }
.sd-hero .btn {
  margin-top: calc(34 * var(--u)); height: calc(39 * var(--u)); min-width: calc(217 * var(--u)); padding: 0 calc(20 * var(--u));
  font-size: calc(15 * var(--u)); gap: calc(14 * var(--u)); border-radius: 999px;
}
.sd-hero .btn .ico { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }

/* glass pill — sits exactly over the one baked into the photo (x 107 → 755, y 340 → 400) */
.sd-pill {
  position: absolute; z-index: 3; top: calc(240 * var(--u)); left: calc(107 * var(--u));
  width: calc(648 * var(--u)); height: calc(60 * var(--u));
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46,46,58,.94), rgba(26,27,36,.95));
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sd-pill li { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); color: #fff; font-size: calc(12 * var(--u)); line-height: 1.55; font-weight: 500; }
.sd-pill li + li { border-right: 1px solid rgba(255,255,255,.2); }
.sd-pill svg { width: calc(23 * var(--u)); height: calc(23 * var(--u)); color: #ff2a3a; flex: none; }

/* ---------- STEPS (design y 418 → 650) ---------- */
.sd-steps { padding: calc(14 * var(--u)) 0 calc(18 * var(--u)); }
.sd-title {
  display: flex; align-items: center; gap: calc(15 * var(--u));
  font-size: calc(21.5 * var(--u)); font-weight: 900; color: #15121a; line-height: 1.5;
}
.sd-title::before { content: ""; width: calc(25 * var(--u)); height: calc(3 * var(--u)); border-radius: 3px; background: var(--red); }
.sd-steps .sd-title { padding-right: calc(44 * var(--u)); }

.sd-steps__row {
  list-style: none; padding: 0; margin: calc(42 * var(--u)) calc(61 * var(--u)) 0 0;
  width: calc(897 * var(--u)); display: flex; justify-content: space-between; align-items: center;
}
.sd-step {
  position: relative; width: calc(167 * var(--u)); height: calc(140 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(14 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u));
  border-radius: calc(14 * var(--u));
  background: linear-gradient(180deg, #fdfdff 0%, #f1f1f6 100%);
  border: 1px solid #fff; box-shadow: 0 10px 24px rgba(40,30,60,.12);
}
.sd-step b {
  position: absolute; top: calc(-12 * var(--u)); left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 50%;
  font: 800 calc(10.5 * var(--u))/1 Arial, sans-serif; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff3a46, #c30b18); border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(200,10,25,.4);
}
.sd-step svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); color: #e3111f; margin-bottom: calc(8 * var(--u)); }
.sd-step strong { font-size: calc(14.3 * var(--u)); font-weight: 900; color: #15121a; line-height: 1.5; }
.sd-step span { font-size: calc(12.5 * var(--u)); color: #2b2830; line-height: 1.7; font-weight: 500; }
.sd-steps__row > .sp-arrow { color: #e3111f; font: 900 calc(19 * var(--u))/1 Arial, sans-serif; letter-spacing: -2px; }

/* ---------- TYPES (design y 655 → 925) ---------- */
.sd-types__stage { height: calc(270 * var(--u)); }
.sd-types__media { position: absolute; top: 0; left: 0; width: calc(470 * var(--u)); height: 100%; }
.sd-types__media img { width: 100%; height: 100%; object-fit: cover; }
.sd-types__panel {
  position: absolute; top: 0; bottom: 0; right: 0; left: calc(455 * var(--u));
  border-top-left-radius: calc(60 * var(--u));
  background: linear-gradient(180deg, #f3f3f7 0%, #ececf2 100%);
  box-shadow: -14px 0 30px rgba(30,30,40,.12);
}
@media (min-width: 1441px) { .sd-types__panel { right: calc((100vw - 1024 * var(--u)) / -2); } }
.sd-types .sd-title { position: absolute; top: calc(14 * var(--u)); right: calc(44 * var(--u)); }
.sd-types__grid {
  position: absolute; top: calc(58 * var(--u)); right: calc(41 * var(--u));
  display: grid; grid-template-columns: calc(240 * var(--u)) calc(236 * var(--u)); column-gap: calc(15 * var(--u)); row-gap: calc(9 * var(--u));
}
.sd-type {
  display: flex; align-items: center; gap: calc(14 * var(--u)); height: calc(80 * var(--u)); padding: 0 calc(16 * var(--u));
  border-radius: calc(12 * var(--u)); background: linear-gradient(180deg, #fff, #f6f6f9);
  border: 1px solid #fff; box-shadow: 0 8px 20px rgba(40,30,60,.1);
}
.sd-type svg { width: calc(34 * var(--u)); height: calc(46 * var(--u)); color: #e3111f; flex: none; }
.sd-type strong { display: block; font-size: calc(14.3 * var(--u)); font-weight: 900; color: #15121a; line-height: 1.45; }
.sd-type span { display: block; font-size: calc(12.5 * var(--u)); color: #2b2830; line-height: 1.6; font-weight: 500; }
.sd-type--hot { background: linear-gradient(180deg, #fdeceb, #fbe3e3); border-color: rgba(255,150,150,.7); box-shadow: 0 8px 20px rgba(200,40,50,.15); }

/* red band: design x 25 → 1000, y 925 → 1030 */
.sd-band { position: relative; z-index: 2; margin-top: calc(4 * var(--u)); }
.sd-band ul {
  list-style: none; margin: 0 auto; padding: 0;
  width: calc(975 * var(--u)); height: calc(105 * var(--u)); transform: translateX(calc(-0.5 * var(--u)));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: calc(28 * var(--u));
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(255,60,70,.28), transparent 70%),
    linear-gradient(90deg, #5a0c16 0%, #8d1220 35%, #9c1424 60%, #6a0e19 100%);
  border: 1px solid rgba(255,120,130,.35);
  box-shadow: 0 16px 34px rgba(100,10,20,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.sd-band li { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; height: calc(70 * var(--u)); justify-content: center; }
.sd-band li + li { border-right: 1px solid rgba(255,255,255,.22); }
.sd-band svg { width: calc(42 * var(--u)); height: calc(36 * var(--u)); color: #ffe3e5; margin-bottom: calc(6 * var(--u)); filter: drop-shadow(0 0 6px rgba(255,80,90,.6)); }
.sd-band strong { font-size: calc(17 * var(--u)); font-weight: 900; line-height: 1.45; }
.sd-band span { font-size: calc(13.6 * var(--u)); color: #f3dfe2; line-height: 1.5; }

/* ---------- FAQ + FORM (design y 1055 → 1355) ---------- */
.sd-bottom__row {
  display: grid; grid-template-columns: calc(444 * var(--u)) calc(500 * var(--u)); justify-content: space-between;
  width: calc(959 * var(--u)); margin: calc(25 * var(--u)) auto 0;
  direction: ltr;                      /* form on the left, FAQ on the right like the mock-up */
}
.sd-bottom__row > * { direction: rtl; }
.sd-card {
  height: calc(300 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u));
  border-radius: calc(20 * var(--u)); background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(244,244,248,.92));
  border: 1px solid #fff; box-shadow: 0 14px 34px rgba(40,30,60,.12);
}
.sd-card h2 { font-size: calc(18.5 * var(--u)); font-weight: 900; color: #15121a; line-height: 1.5; }
.sd-faq h2 { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-bottom: calc(10 * var(--u)); padding-right: calc(4 * var(--u)); }
.sd-faq h2::before { content: ""; width: calc(25 * var(--u)); height: calc(3 * var(--u)); border-radius: 3px; background: var(--red); }

.sd-faq details {
  margin-top: calc(6 * var(--u)); border-radius: calc(10 * var(--u));
  background: linear-gradient(180deg, #fff, #f7f7fa); border: 1px solid #ececf2;
  box-shadow: 0 3px 10px rgba(40,30,60,.06);
}
.sd-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none;
  height: calc(31 * var(--u)); padding: 0 calc(14 * var(--u));
  font-size: calc(14.8 * var(--u)); font-weight: 800; color: #15121a;
}
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: #15121a; transition: transform .25s; flex: none; }
.sd-faq details[open] summary svg { transform: rotate(180deg); color: #e3111f; }
.sd-faq details p {
  margin: 0 calc(8 * var(--u)) calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u));
  border-radius: calc(6 * var(--u)); background: #f6dde0;
  font-size: calc(12 * var(--u)); line-height: 1.75; color: #2b2830; font-weight: 500;
}

.sd-form { display: flex; flex-direction: column; }
.sd-form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(8 * var(--u)); }
.sd-form__head svg { width: calc(30 * var(--u)); height: calc(40 * var(--u)); color: #e3111f; }
.sd-field { position: relative; display: block; margin-top: calc(10 * var(--u)); }
.sd-field input, .sd-field select {
  width: 100%; height: calc(35 * var(--u)); padding: 0 calc(40 * var(--u)) 0 calc(14 * var(--u));
  font: 500 calc(13 * var(--u)) "Vazirmatn", Tahoma, sans-serif; color: #15121a;
  border-radius: calc(10 * var(--u)); border: 1px solid #dddce4; background: #fff;
  -webkit-appearance: none; appearance: none; outline: none; transition: border-color .2s, box-shadow .2s;
}
.sd-field select { cursor: pointer; color: #3a3640; }
.sd-field input::placeholder { color: #3a3640; }
.sd-field input:focus, .sd-field select:focus { border-color: #e3111f; box-shadow: 0 0 0 3px rgba(227,17,31,.12); }
.sd-field > svg { position: absolute; right: calc(14 * var(--u)); top: 50%; transform: translateY(-50%); width: calc(17 * var(--u)); height: calc(17 * var(--u)); color: #3a3640; pointer-events: none; }
.sd-field > svg.sd-field__chev { right: auto; left: calc(14 * var(--u)); width: calc(14 * var(--u)); }
.sd-field.is-invalid input, .sd-field.is-invalid select { border-color: #e3111f; }
.sd-form button {
  margin-top: calc(18 * var(--u)); height: calc(40 * var(--u)); border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u));
  font: 800 calc(15 * var(--u)) "Vazirmatn", Tahoma, sans-serif; color: #fff;
  background: linear-gradient(180deg, #e01625 0%, #a60c18 100%);
  box-shadow: 0 8px 20px rgba(200,10,25,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s, box-shadow .2s;
}
.sd-form button:hover { transform: translateY(-2px); }
.sd-form button:disabled { opacity: .6; cursor: wait; transform: none; }
.sd-form button svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.sd-form__msg { margin-top: 8px; font-size: 13px; font-weight: 700; text-align: center; min-height: 1.4em; }
.sd-form__msg.is-ok { color: #138a3a; }
.sd-form__msg.is-err { color: #c50d1a; }

.sd-page .contact--light { padding-top: calc(22 * var(--u)); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .sd-hero__media { position: relative; width: calc(100% + 32px); height: auto; margin-inline: -16px; aspect-ratio: 620 / 236; }
  .sd-hero__content { position: relative; inset: auto; width: 100%; margin-top: -10px; }
  .sd-hero .btn { margin-top: 18px; }
  .sd-pill { position: relative; inset: auto; width: 100%; height: auto; margin: 22px 0 26px; padding: 12px 6px; border-radius: 18px; grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .sd-pill li:nth-child(3) { border-right: 0; }
  .sd-steps .sd-title, .sd-types .sd-title { padding-right: 16px; position: static; }
  .sd-steps__row { width: auto; margin: 32px 16px 0; flex-wrap: wrap; justify-content: center; gap: 26px 14px; }
  .sd-steps__row > .sp-arrow { display: none; }
  .sd-step { width: calc(50% - 8px); max-width: 220px; height: auto; min-height: 140px; }
  .sd-types__media { position: relative; width: 100%; height: auto; aspect-ratio: 466 / 268; }
  .sd-types__panel { position: relative; inset: auto; margin-top: -40px; padding: 20px 16px; border-top-left-radius: 40px; }
  .sd-types__grid { position: static; margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sd-type { height: auto; min-height: 80px; padding: 10px 12px; }
  .sd-band ul { width: calc(100% - 32px); height: auto; transform: none; padding: 16px 6px; grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .sd-band li { height: auto; }
  .sd-band li:nth-child(4) { border-right: 0; }
  .sd-bottom__row { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 18px; direction: rtl; }
  .sd-faq { order: -1; }
  .sd-card { height: auto; padding: 18px 16px; }
}
@media (max-width: 640px) {
  .sd-types__grid { grid-template-columns: 1fr; }
  .sd-band ul { grid-template-columns: repeat(2, 1fr); }
  .sd-band li:nth-child(4) { border-right: 1px solid rgba(255,255,255,.22); }
  .sd-band li:nth-child(odd) { border-right: 0; }
  .sd-band li:last-child { grid-column: 1 / -1; }
  .sd-step { width: 100%; max-width: 320px; }
}
