.services-grid {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 14px 14px;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding-inline: 14px;
  -webkit-overflow-scrolling: touch;
}

.services-grid {
  --card-width: 300px;
  --card-scale: 0.92;
  --card-scale-active: 1.03;
}

.services-grid::-webkit-scrollbar {
  height: 10px;
}

.services-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.services-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.services-grid {
  scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.services-carousel {
  position: relative;
}

.services-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 30, 0.92);
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.services-carousel__btn:hover {
  background: rgba(12, 16, 60, 0.96);
  border-color: rgba(255, 255, 255, 0.3);
}

.services-carousel__btn--prev {
  left: -10px;
}

.services-carousel__btn--next {
  right: -10px;
}

.card {
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(13, 14, 40, 0.96), rgba(7, 8, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  width: var(--card-width);
  scroll-snap-align: center;
  transform: scale(var(--card-scale));
}

.card.is-active {
  transform: scale(var(--card-scale-active));
}

@media (max-width: 420px) {
  .services-grid {
    --card-width: calc(75vw - 14px);
    padding-right: 20px;
  }
}

.service-card__title {
  font-size: 1.1rem;
  line-height: 1.1;
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.service-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.service-card__icon img {
  width: 80%;
  height: 80%;
  margin: 10%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.service-card__header .service-card__title {
  margin: 0;
}

.service-card--individual .service-card__title {
  color: var(--service-blue);
}

.service-card--groups .service-card__title {
  color: var(--service-green);
}

.service-card--wedding .service-card__title {
  color: var(--service-orange);
}

.service-card--graduation .service-card__title {
  color: var(--service-purple);
}

.service-card--request .service-card__title {
  color: var(--service-cyan);
}

.service-card__text {
  font-size: 0.95rem;
}

.service-card__price {
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.service-card--individual .service-card__price {
  color: var(--service-blue);
  margin-top: auto;
}

.service-card--groups .service-card__price {
  color: var(--service-green);
}

.service-card--wedding .service-card__price {
  color: var(--service-orange);
  margin-top: auto;
}

.service-card--graduation .service-card__price {
  color: var(--service-purple);
  margin-top: auto;
}

.service-card--request .service-card__price {
  color: var(--service-cyan);
  margin-top: auto;
}

.service-card__note {
  font-size: 0.85rem;
  margin-top: 4px;
}

.service-card--individual:hover,
.service-card--individual.is-active {
  border-color: var(--service-blue);
  box-shadow: 0 0 0 1px rgba(91, 141, 255, 0.6), 0 18px 46px rgba(0, 0, 0, 0.8);
}

.service-card--groups:hover,
.service-card--groups.is-active {
  border-color: var(--service-green);
  box-shadow: 0 0 0 1px rgba(79, 209, 161, 0.6), 0 18px 46px rgba(0, 0, 0, 0.8);
}

.service-card--wedding:hover,
.service-card--wedding.is-active {
  border-color: var(--service-orange);
  box-shadow: 0 0 0 1px rgba(255, 184, 96, 0.6), 0 18px 46px rgba(0, 0, 0, 0.8);
}

.service-card--graduation:hover,
.service-card--graduation.is-active {
  border-color: var(--service-purple);
  box-shadow: 0 0 0 1px rgba(199, 146, 255, 0.6), 0 18px 46px rgba(0, 0, 0, 0.8);
}

.service-card--request:hover,
.service-card--request.is-active {
  border-color: var(--service-cyan);
  box-shadow: 0 0 0 1px rgba(67, 217, 255, 0.6), 0 18px 46px rgba(0, 0, 0, 0.8);
}

.service-card--individual:hover .service-card__icon,
.service-card--individual.is-active .service-card__icon {
  background: rgba(91, 141, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(91, 141, 255, 0.5);
}

.service-card--groups:hover .service-card__icon,
.service-card--groups.is-active .service-card__icon {
  background: rgba(79, 209, 161, 0.18);
  box-shadow: 0 0 0 1px rgba(79, 209, 161, 0.5);
}

.service-card--wedding:hover .service-card__icon,
.service-card--wedding.is-active .service-card__icon {
  background: rgba(255, 184, 96, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 184, 96, 0.5);
}

.service-card--graduation:hover .service-card__icon,
.service-card--graduation.is-active .service-card__icon {
  background: rgba(199, 146, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(199, 146, 255, 0.5);
}

.service-card--request:hover .service-card__icon,
.service-card--request.is-active .service-card__icon {
  background: rgba(67, 217, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(67, 217, 255, 0.5);
}

.service-card__list {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10, 9, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-main);
}

.service-card__list li + li {
  margin-top: 4px;
}

.service-card--groups .service-card__list {
  margin-top: auto;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
}

.service-card--groups .service-card__list li {
  color: var(--service-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-card__cta {
  margin-top: 12px;
  align-self: stretch;
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.service-card__cta:hover {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
  transform: translateY(-0.5px);
}

.service-card--individual .service-card__cta {
  background: rgba(91, 141, 255, 0.18);
}

.service-card--individual .service-card__cta:hover {
  background: rgba(91, 141, 255, 0.36);
}

.service-card--groups .service-card__cta {
  background: rgba(79, 209, 161, 0.18);
}

.service-card--groups .service-card__cta:hover {
  background: rgba(79, 209, 161, 0.36);
}

.service-card--wedding .service-card__cta {
  background: rgba(255, 184, 96, 0.18);
}

.service-card--wedding .service-card__cta:hover {
  background: rgba(255, 184, 96, 0.36);
}

.service-card--graduation .service-card__cta {
  background: rgba(199, 146, 255, 0.18);
}

.service-card--graduation .service-card__cta:hover {
  background: rgba(199, 146, 255, 0.36);
}

.service-card--request .service-card__cta {
  background: rgba(67, 217, 255, 0.18);
}

.service-card--request .service-card__cta:hover {
  background: rgba(67, 217, 255, 0.36);
}

.service-card__cta:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7) inset;
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .services-carousel__btn {
    display: none;
  }
}
