/* =========================================================
   Services selector + price calculator
   ========================================================= */
.cef-services {
  position: relative;
  scroll-margin-top: 86px;
}

.cef-services__head {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.cef-services__head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
}

.cef-services__head p {
  max-width: 570px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.cef-services__tabs {
  width: fit-content;
  display: flex;
  gap: 3px;
  margin: 0 auto 28px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #e9e9e7;
}

.cef-services__tab {
  min-width: 132px;
  border: 0;
  border-radius: 9px;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.cef-services__tab:hover { color: var(--text-1); }
.cef-services__tab.is-active {
  background: var(--white);
  color: var(--text-1);
  box-shadow: 0 1px 2px rgba(15,15,14,.08), 0 4px 12px rgba(15,15,14,.04);
}
.cef-services__tab:active { transform: scale(.98); }

.cef-services__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 22px;
  align-items: start;
}

.cef-services__styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cef-service-card {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 21px 48px 20px 20px;
  background: rgba(255,255,255,.82);
  color: var(--text-1);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.cef-service-card:hover {
  transform: translateY(-2px);
  border-color: #cbc9c4;
  box-shadow: 0 14px 28px -20px rgba(16,15,10,.28);
}

.cef-service-card.is-selected {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  box-shadow: 0 22px 44px -28px rgba(0,0,0,.65);
}

.cef-service-card__name {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.cef-service-card__desc {
  display: block;
  min-height: 38px;
  margin-bottom: 17px;
  color: var(--text-2);
  font-size: 12.8px;
  font-weight: 450;
  line-height: 1.45;
  transition: color .2s ease;
}

.cef-service-card.is-selected .cef-service-card__desc { color: rgba(255,255,255,.66); }

.cef-service-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  font-weight: 750;
}

.cef-service-card__price small {
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
  transition: color .2s ease;
}

.cef-service-card.is-selected .cef-service-card__price small { color: rgba(255,255,255,.55); }

.cef-service-card__check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c8c7c3;
  border-radius: 50%;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cef-service-card.is-selected .cef-service-card__check {
  border-color: #fff;
  background: #fff;
  transform: scale(1.04);
}

.cef-service-card.is-selected .cef-service-card__check::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--black);
}

.cef-services__calc {
  position: sticky;
  top: 94px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 55px -42px rgba(16,15,10,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cef-services__calc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cef-services__calc-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cef-services__calc h3 {
  max-width: 280px;
  font-size: 19px;
  line-height: 1.25;
}

.cef-services__calc-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-1);
}
.cef-services__calc-icon svg { width: 21px; height: 21px; }

.cef-services__input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 650;
}

.cef-services__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cef-services__input-row:focus-within {
  border-color: #b9b7b2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18,18,16,.06);
}

.cef-services__input-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 22px;
  font-weight: 720;
}
.cef-services__input-row input::placeholder { color: #b1afaa; font-weight: 550; }
.cef-services__input-row input::-webkit-inner-spin-button,
.cef-services__input-row input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.cef-services__input-row span { color: var(--text-2); font-size: 14px; font-weight: 600; }

.cef-services__summary {
  display: grid;
  gap: 9px;
}

.cef-services__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-2);
  font-size: 13px;
}

.cef-services__summary-row strong {
  max-width: 56%;
  color: var(--text-1);
  font-weight: 680;
  text-align: right;
}

.cef-services__divider {
  height: 1px;
  margin: 20px 0;
  background: var(--border);
}

.cef-services__result-label {
  margin-bottom: 3px;
  color: var(--text-2);
  font-size: 12.5px;
}

.cef-services__result {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 32;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.cef-services__note {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.cef-services__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--black);
  color: #fff;
  font-size: 13.5px;
  font-weight: 680;
  transition: transform .15s ease, background .15s ease;
}
.cef-services__cta:hover { transform: translateY(-1px); background: #000; }
.cef-services__cta span { transition: transform .15s ease; }
.cef-services__cta:hover span { transform: translateX(3px); }

@media (max-width: 900px) {
  .cef-services__body { grid-template-columns: 1fr; }
  .cef-services__calc { position: static; }
}

@media (max-width: 620px) {
  .cef-services__head { margin-bottom: 28px; }
  .cef-services__head h2 { font-size: 29px; }
  .cef-services__tabs { width: 100%; }
  .cef-services__tab { min-width: 0; flex: 1; padding: 10px 14px; }
  .cef-services__styles { grid-template-columns: 1fr; }
  .cef-service-card { min-height: 0; padding: 19px 46px 18px 18px; }
  .cef-service-card__desc { min-height: 0; }
  .cef-services__calc { padding: 21px; border-radius: 18px; }
  .cef-services__calc-icon { width: 38px; height: 38px; }
}


/* Standalone services page */
.navbar__nav > a[aria-current="page"] { color: var(--text-1); font-weight: 650; }
.services-page-main { min-height: 70vh; }
.services-page-breadcrumb { display:flex; align-items:center; gap:9px; padding:28px 24px 0; color:var(--text-3); font-size:12.5px; }
.services-page-breadcrumb a { color:var(--text-2); transition:color .15s ease; }
.services-page-breadcrumb a:hover { color:var(--text-1); }
.services-page-breadcrumb strong { color:var(--text-1); font-weight:650; }
.services-page-main .cef-services { border-top:0; padding-top:64px; }
.services-page-note { margin-top:-30px; padding:0 24px 88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.services-page-note p { max-width:700px; color:var(--text-2); font-size:13px; line-height:1.6; }
.services-page-note .btn { flex:0 0 auto; }
@media (max-width:700px){
  .services-page-breadcrumb { padding-top:20px; }
  .services-page-main .cef-services { padding-top:46px; }
  .services-page-note { margin-top:-20px; padding-bottom:64px; flex-direction:column; align-items:stretch; }
  .services-page-note .btn { text-align:center; justify-content:center; }
}
