/* ============================================================
   service-details.css
   Desktop 1440px: tabs (left) + description panel (right)
   Mobile  370px:  stacked — active tab on top, panel, remaining tabs
   ============================================================ */

/* ── Section ────────────────────────────────────────────────── */
.svc-details {
  padding-top:    calc(40 / var(--vw-base) * 100vw);
  padding-bottom: calc(40 / var(--vw-base) * 100vw);
  background-color: var(--color-bg);
}

/* ── Container ───────────────────────────────────────────────── */
.svc-details .container {
  display: flex;
  flex-direction: column;
  gap: calc(30 / var(--vw-base) * 100vw);
}

/* ── Title ────────────────────────────────────────────────────── */
.svc-details__title {
  font-size:   calc(35 / var(--vw-base) * 100vw);
  font-weight: 600;
  line-height: 1.14;
  color: var(--color-text);
}

/* ── Content card (white wrapper) ─────────────────────────────── */
.svc-details__content {
  display: flex;
  gap: calc(40 / var(--vw-base) * 100vw);
  padding: calc(30 / var(--vw-base) * 100vw);
  border-radius: calc(20 / var(--vw-base) * 100vw);
  background-color: var(--color-white);
}

/* ── Tabs list (left sidebar) ─────────────────────────────────── */
.svc-details__tabs {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: calc(10 / var(--vw-base) * 100vw);
  width: calc(381 / var(--vw-base) * 100vw);
}

.svc-details__tab {
  display: flex;
  align-items: center;
  gap: calc(15 / var(--vw-base) * 100vw);
  width: 100%;
  height: calc(50 / var(--vw-base) * 100vw);
  padding: 0 calc(20 / var(--vw-base) * 100vw);
  border: none;
  border-radius: calc(10 / var(--vw-base) * 100vw);
  font-size:   calc(16 / var(--vw-base) * 100vw);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  text-align: left;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.svc-details__tab:hover {
  background-color: rgba(234, 51, 35, 0.05);
}
.svc-details__tab.-active {
  color: var(--color-white);
  background-color: var(--color-red);
}

.svc-details__tab-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width:  calc(18 / var(--vw-base) * 100vw);
  height: calc(18 / var(--vw-base) * 100vw);
}

.svc-details__tab-icon svg {
  display: block;
  width:  100%;
  height: 100%;
  fill: currentColor;
}

/* ── Description panel (right side) ───────────────────────────── */
.svc-details__panel {
  display: none;
  flex-direction: column;
  flex: 1;
  gap: calc(20 / var(--vw-base) * 100vw);
}
.svc-details__panel.-active {
  display: flex;
}

/* Badge */
.svc-details__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: calc(8 / var(--vw-base) * 100vw) calc(15 / var(--vw-base) * 100vw);
  border-radius: calc(10 / var(--vw-base) * 100vw);
  font-size:   calc(14 / var(--vw-base) * 100vw);
  font-weight: 600;
  line-height: 1.43;
  color: var(--color-red);
  background-color: rgba(234, 51, 35, 0.08);
}

/* Panel title */
.svc-details__panel-title {
  font-size:   calc(35 / var(--vw-base) * 100vw);
  font-weight: 600;
  line-height: 1.14;
  color: var(--color-text);
}

/* Panel description text */
.svc-details__panel-text {
  font-size:   calc(18 / var(--vw-base) * 100vw);
  font-weight: 400;
  line-height: 1.11;
  color: var(--color-text);
}

/* ── Features grid (two columns of checkmark items) ───────────── */
.svc-details__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(30 / var(--vw-base) * 100vw) calc(37 / var(--vw-base) * 100vw);
}

.svc-details__feature {
  display: flex;
  align-items: flex-start;
  gap: calc(20 / var(--vw-base) * 100vw);
}

.svc-details__feature-icon {
  flex-shrink: 0;
  width:  calc(14 / var(--vw-base) * 100vw);
  height: calc(10 / var(--vw-base) * 100vw);
  margin-top: calc(5 / var(--vw-base) * 100vw);
  fill: none;
  stroke: var(--color-red);
  stroke-width: 2;
}

.svc-details__feature-text {
  font-size:   calc(18 / var(--vw-base) * 100vw);
  font-weight: 400;
  line-height: 1.11;
  color: var(--color-text);
}

/* ── CTA bar (bottom of panel) ────────────────────────────────── */
.svc-details__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20 / var(--vw-base) * 100vw) calc(30 / var(--vw-base) * 100vw);
  border-radius: calc(20 / var(--vw-base) * 100vw);
  background-color: var(--color-bg);
}

.svc-details__cta-price {
  display: flex;
  flex-direction: column;
  gap: calc(5 / var(--vw-base) * 100vw);
}

.svc-details__cta-label {
  font-size:   calc(16 / var(--vw-base) * 100vw);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
}

.svc-details__cta-value {
  font-size:   calc(20 / var(--vw-base) * 100vw);
  font-weight: 600;
  line-height: 1.0;
  color: var(--color-text);
}

.svc-details__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(45 / var(--vw-base) * 100vw);
  padding: 0 calc(30 / var(--vw-base) * 100vw);
  border-radius: calc(10 / var(--vw-base) * 100vw);
  font-size:   calc(14 / var(--vw-base) * 100vw);
  font-weight: 500;
  line-height: 1.43;
  color: var(--color-white);
  background-color: var(--color-red);
  transition: opacity 0.2s;
}
.svc-details__cta-btn:hover { opacity: 0.9; }

/* ============================================================
   MOBILE  (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  .svc-details {
    padding-top:    calc(15 / var(--vw-base) * 100vw);
    padding-bottom: calc(15 / var(--vw-base) * 100vw);
  }

  .svc-details .container {
    gap: calc(20 / var(--vw-base) * 100vw);
  }

  .svc-details__title {
    font-size:   calc(26 / var(--vw-base) * 100vw);
    line-height: 1.15;
  }

  .svc-details__content {
    flex-direction: column;
    gap: calc(20 / var(--vw-base) * 100vw);
    padding: calc(15 / var(--vw-base) * 100vw);
    border-radius: calc(10 / var(--vw-base) * 100vw);
  }

  .svc-details__tabs {
    width: 100%;
  }

  .svc-details__tab {
    gap: calc(10 / var(--vw-base) * 100vw);
    justify-content: flex-start;
    height: calc(45 / var(--vw-base) * 100vw);
    padding: 0 calc(26 / var(--vw-base) * 100vw);
    border-radius: calc(10 / var(--vw-base) * 100vw);
    font-size:   calc(14 / var(--vw-base) * 100vw);
    background-color: var(--color-bg);
  }
  .svc-details__tab.-active {
    border-radius: calc(5 / var(--vw-base) * 100vw);
  }
  .svc-details__tab::after {
    content: '';
    flex-shrink: 0;
    margin-left: auto;
    width:  calc(8 / var(--vw-base) * 100vw);
    height: calc(8 / var(--vw-base) * 100vw);
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg);
    transition: transform 0.2s, border-color 0.2s;
  }
  .svc-details__tab.-active::after {
    transform: rotate(-135deg);
    border-color: var(--color-white);
  }

  /* Panel inside tabs container (accordion) */
  .svc-details__panel {
    padding: calc(15 / var(--vw-base) * 100vw) 0;
  }

  .svc-details__panel-title {
    font-size:   calc(22 / var(--vw-base) * 100vw);
    line-height: 1.18;
  }

  .svc-details__panel-text {
    font-size:   calc(14 / var(--vw-base) * 100vw);
    line-height: 1.43;
  }

  .svc-details__features {
    grid-template-columns: 1fr;
    gap: calc(15 / var(--vw-base) * 100vw);
  }

  .svc-details__feature-text {
    font-size:   calc(14 / var(--vw-base) * 100vw);
    line-height: 1.43;
  }

  .svc-details__cta {
    flex-direction: column;
    gap: calc(15 / var(--vw-base) * 100vw);
    padding: calc(15 / var(--vw-base) * 100vw);
    border-radius: calc(10 / var(--vw-base) * 100vw);
  }

  .svc-details__cta-btn {
    width: 100%;
    height: calc(45 / var(--vw-base) * 100vw);
  }
}
