.services {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 119, 34, 0.055), transparent 55%);
}

.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.services-head h2 {
  max-width: 22ch;
}

.services-head p {
  max-width: 40ch;
  color: var(--text-2);
  font-size: 0.96rem;
}

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

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(28, 21, 13, 0.9), rgba(13, 10, 7, 0.94));
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 72%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.service:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.95);
}

.service:hover::before {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  color: var(--gold-hi);
  background: rgba(240, 160, 75, 0.09);
}

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

.service-tag {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service h3 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.service > p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.62;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 38px;
  margin-top: 20px;
  opacity: 0.8;
}

.mini-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(240, 160, 75, 0.85), rgba(240, 160, 75, 0.12));
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.service.is-visible .mini-chart i {
  transform: scaleY(1);
}

.service-foot {
  margin-top: auto;
  padding-top: 22px;
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-hi);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.service-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.service.is-open .service-toggle svg {
  transform: rotate(45deg);
}

.service-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.service-more > div {
  overflow: hidden;
}

.service.is-open .service-more {
  grid-template-rows: 1fr;
}

.service-more ul {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.service-more li {
  display: flex;
  gap: 9px;
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.5;
}

.service-more li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}
