.custom-container {
    margin-inline: auto;
    width: 100%;
    max-width: 80rem;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .custom-container {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .custom-container {
        padding-inline: 2rem;
    }
}

.home-page-main {
    overflow-x: hidden;
    max-width: 100%;
    --home-fs-xs: 0.75rem;
    --home-fs-sm: 0.8125rem;
    --home-fs-base: 0.875rem;
    --home-fs-md: 1rem;
    --home-fs-lg: 1.0625rem;
    --home-fs-xl: 1.125rem;
    --home-fs-2xl: 1.25rem;
}

.home-section-title {
    font-size: var(--home-fs-md);
    font-weight: 700;
    color: rgb(15 23 42);
}

@media (min-width: 768px) {
    .home-section-title {
        font-size: var(--home-fs-lg);
    }
}

.home-section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--home-fs-xs);
    font-weight: 600;
    color: rgb(59 130 246);
}

.home-section-link:hover {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .home-section-link {
        font-size: var(--home-fs-sm);
    }
}

.home-reviews__title,
.home-branches__title {
    font-size: var(--home-fs-md);
    font-weight: 700;
    color: rgb(15 23 42);
}

@media (min-width: 768px) {
    .home-reviews__title,
    .home-branches__title {
        font-size: var(--home-fs-lg);
    }
}

.home-order-steps__title {
    font-size: var(--home-fs-lg);
    font-weight: 700;
    color: rgb(15 23 42);
}

@media (min-width: 768px) {
    .home-order-steps__title {
        font-size: var(--home-fs-xl);
    }
}

.home-reviews__intro,
.home-branches__subtitle,
.home-order-steps__subtitle {
    font-size: var(--home-fs-sm);
    line-height: 1.7;
    color: rgb(100 116 139);
}

#home-typewriter {
    min-height: 100%;
}

#home-hero-main-slider:not(.swiper-initialized) .swiper-slide:not(:first-child),
#hero-search-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.image-inset-shadow {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.swiper.swiper-pagination--custom .swiper-pagination {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem;
    bottom: 10px !important;
}

.swiper.swiper-pagination--custom .swiper-pagination-bullet {
    background: #fff;
    opacity: 1;
}

.swiper.swiper-pagination--custom .swiper-pagination-bullet-active {
    width: 2.5rem;
    border-radius: 0.375rem;
    background: rgb(59 130 246);
}

.swiper:not(.swiper-initialized).four-slides {
    overflow: hidden;
}

.swiper:not(.swiper-initialized).four-slides .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 576px) {
    .swiper:not(.swiper-initialized).four-slides .swiper-slide {
        width: 50%;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}

@media (min-width: 768px) {
    .swiper:not(.swiper-initialized).four-slides .swiper-slide {
        width: 33.333333%;
    }
}

@media (min-width: 1024px) {
    .swiper:not(.swiper-initialized).four-slides .swiper-slide {
        width: 25%;
    }
}

.home-hero-search-menu {
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

.home-hero-search-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.home-hero-search-menu.is-closed {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
}

/* —— دیدگاه مشتریان —— */
.home-reviews__header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.home-reviews__intro {
  margin: 0.5rem auto 0;
  max-width: 42rem;
  line-height: 1.85;
  text-align: justify;
}

@media (min-width: 640px) {
  .home-reviews__intro {
    text-align: center;
  }
}

.home-reviews__audio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-reviews__audio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
  }
}

.home-reviews__audio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-reviews__audio-card:hover {
  border-color: rgb(191 219 254);
  box-shadow: 0 8px 22px rgb(37 99 235 / 0.1);
}

.home-reviews__audio-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
}

.home-reviews__audio-badge {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgb(239 246 255) 0%, rgb(219 234 254) 100%);
  color: rgb(37 99 235);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85);
}

.home-reviews__audio-badge svg {
  height: 1.35rem;
  width: 1.35rem;
}

.home-reviews__audio-info {
  min-width: 0;
  flex: 1;
}

.home-reviews__person {
  font-size: var(--home-fs-base);
  font-weight: 800;
  line-height: 1.4;
  color: rgb(15 23 42);
}

.home-reviews__service {
  margin-top: 0.5rem;
}

.home-reviews__service-tag {
  display: inline-block;
  max-width: 100%;
  border-radius: 0.375rem;
  background: rgb(248 250 252);
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgb(71 85 105);
  border: 1px solid rgb(226 232 240);
}

/* پلیر صوتی — نوار پایین کارت */
.home-reviews__audio-card .home-audio-player {
  margin-top: auto;
}

.home-audio-player__native {
  display: none;
}

.home-audio-player__shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgb(241 245 249);
  background: rgb(248 250 252);
  padding: 0.75rem 1rem 0.875rem;
}

.home-audio-player__btn {
  position: relative;
  display: flex;
  height: 2.625rem;
  width: 2.625rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: rgb(37 99 235);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.home-audio-player__btn:hover {
  background: rgb(29 78 216);
}

.home-audio-player__btn:active {
  transform: scale(0.96);
}

.home-audio-player.is-playing .home-audio-player__btn {
  background: rgb(30 64 175);
}

.home-audio-player__btn-icon {
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-audio-player__btn-icon svg {
  display: block;
  height: 1.125rem;
  width: 1.125rem;
}

.home-audio-player:not(.is-playing):not(.is-loading) .home-audio-player__btn-icon--play {
  display: flex;
}

.home-audio-player.is-playing .home-audio-player__btn-icon--pause {
  display: flex;
}

.home-audio-player__btn-icon--play svg {
  margin-inline-start: 1px;
}

.home-audio-player__spinner {
  display: none;
  height: 1.125rem;
  width: 1.125rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: home-audio-spin 0.7s linear infinite;
}

.home-audio-player.is-loading .home-audio-player__spinner {
  display: block;
}

.home-audio-player.is-loading .home-audio-player__btn-icon {
  display: none !important;
}

@keyframes home-audio-spin {
  to {
    transform: rotate(360deg);
  }
}

.home-audio-player__main {
  flex: 1;
  min-width: 0;
}

.home-audio-player__track {
  position: relative;
  height: 1.25rem;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.home-audio-player__track.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.home-audio-player__track:focus-visible {
  outline: 2px solid rgb(59 130 246);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.home-audio-player__track-bg,
.home-audio-player__track-fill {
  position: absolute;
  top: 50%;
  height: 0.3125rem;
  transform: translateY(-50%);
  border-radius: 9999px;
}

.home-audio-player__track-bg {
  right: 0;
  left: 0;
  background: rgb(203 213 225);
}

.home-audio-player__track-fill {
  right: 0;
  width: 0%;
  background: rgb(37 99 235);
  pointer-events: none;
}

.home-audio-player__track-thumb {
  position: absolute;
  top: 50%;
  right: 0;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid rgb(37 99 235);
  box-shadow: 0 1px 4px rgb(37 99 235 / 0.35);
  pointer-events: none;
}

.home-audio-player__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4375rem;
}

.home-audio-player__status {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(100 116 139);
}

.home-audio-player.is-playing .home-audio-player__status {
  color: rgb(37 99 235);
}

.home-audio-player__status::before {
  content: "";
  display: inline-block;
  height: 0.375rem;
  width: 0.375rem;
  margin-inline-end: 0.375rem;
  border-radius: 9999px;
  background: rgb(148 163 184);
  vertical-align: middle;
}

.home-audio-player.is-playing .home-audio-player__status::before {
  background: rgb(37 99 235);
  animation: home-audio-pulse 1.2s ease-in-out infinite;
}

@keyframes home-audio-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.home-audio-player__times {
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgb(100 116 139);
  white-space: nowrap;
}

.home-audio-player__times-sep {
  margin-inline: 0.125rem;
  opacity: 0.5;
}

.home-audio-player.is-playing [data-home-audio-current] {
  color: rgb(37 99 235);
}

.home-reviews__testimonials {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.home-reviews-testimonials__frame {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .home-reviews-testimonials__frame {
    gap: 0.625rem;
  }
}

.home-reviews-testimonials {
  position: relative;
  flex: 1;
  min-width: 0;
}

.home-reviews-testimonials .swiper-slide {
  height: auto;
  padding-top: 2.125rem;
}

.home-reviews-testimonial {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 15.5rem;
  flex-direction: column;
  align-items: center;
  border-radius: 0.875rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  padding: 3rem 1rem 1.125rem;
  text-align: center;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
}

.home-reviews-testimonial__avatar {
  position: absolute;
  top: -2.125rem;
  left: 50%;
  height: 4.25rem;
  width: 4.25rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 4px solid #fff;
  background: rgb(241 245 249);
  object-fit: cover;
  box-shadow: 0 4px 12px rgb(37 99 235 / 0.15);
}

.home-reviews-testimonial__text {
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgb(71 85 105);
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.home-reviews-testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 0.125rem;
  margin-top: 0.75rem;
}

.home-reviews-testimonial__star {
  height: 0.875rem;
  width: 0.875rem;
  color: rgb(251 191 36);
}

.home-reviews-testimonial__user {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(15 23 42);
}

.home-reviews-testimonials__prev,
.home-reviews-testimonials__next {
  position: relative;
  inset: auto;
  flex-shrink: 0;
  align-self: center;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(191 219 254);
  background: #fff;
  color: rgb(37 99 235);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.12);
  cursor: pointer;
  z-index: 2;
}

@media (min-width: 640px) {
  .home-reviews-testimonials__prev,
  .home-reviews-testimonials__next {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.home-reviews-testimonials__prev::after,
.home-reviews-testimonials__next::after {
  font-size: 0.875rem;
  font-weight: 700;
}

.home-reviews-testimonials__pagination {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: 100% !important;
  margin-top: 1rem;
}

.home-reviews-testimonials__pagination .swiper-pagination-bullet {
  margin: 0 !important;
  background: rgb(147 197 253);
  opacity: 1;
}

.home-reviews-testimonials__pagination .swiper-pagination-bullet-active {
  background: rgb(37 99 235);
  width: 1.25rem;
  border-radius: 9999px;
}

.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .home-categories__grid {
        grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
        gap: 0.625rem;
    }
}

.home-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.625rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    padding: 0.625rem 0.375rem 0.5rem;
    text-align: center;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-2px);
    border-color: rgb(147 197 253);
    background: rgb(239 246 255);
    box-shadow: 0 6px 16px rgb(37 99 235 / 0.1);
}

.home-category-card__icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(
        145deg,
        rgb(248 250 252) 0%,
        rgb(241 245 249) 100%
    );
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.home-category-card:hover .home-category-card__icon {
    transform: scale(1.03);
    background: linear-gradient(
        145deg,
        rgb(239 246 255) 0%,
        rgb(219 234 254) 100%
    );
}

.home-category-card__icon .service-icon-img {
    display: block;
    height: 2rem;
    width: 2rem;
    background-color: rgb(100 116 139);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.2s ease;
}

.home-category-card__icon svg {
    height: 2rem;
    width: 2rem;
    color: rgb(100 116 139);
    transition: color 0.2s ease;
}

.home-category-card:hover .home-category-card__icon .service-icon-img {
    background-color: rgb(37 99 235);
}

.home-category-card:hover .home-category-card__icon svg {
    color: rgb(37 99 235);
}

.home-category-card__title {
    display: -webkit-box;
    min-height: 2.125rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(30 41 59);
    transition: color 0.2s ease;
}

@media (min-width: 640px) {
    .home-category-card__title {
        font-size: 0.8125rem;
    }
}

.home-category-card:hover .home-category-card__title {
    color: rgb(29 78 216);
}

.home-categories__empty {
    padding: 2.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgb(100 116 139);
}

/* —— شعب تهران —— */
.home-branches__header {
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .home-branches__header {
        margin-bottom: 1.125rem;
    }
}

.home-branches__subtitle {
    margin: 0.375rem auto 0;
    max-width: 32rem;
}

.home-branches__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .home-branches__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .home-branches__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.home-branch-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.home-branch-card:hover {
    transform: translateY(-3px);
    border-color: rgb(147 197 253);
    box-shadow: 0 10px 24px rgb(37 99 235 / 0.12);
}

.home-branch-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgb(241 245 249);
}

.home-branch-card__image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-branch-card:hover .home-branch-card__image {
    transform: scale(1.05);
}

.home-branch-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgb(15 23 42 / 0) 35%,
        rgb(15 23 42 / 0.55) 100%
    );
    pointer-events: none;
}

.home-branch-card__region {
    position: absolute;
    right: 0.625rem;
    bottom: 0.625rem;
    left: 0.625rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

.home-branch-card__region-icon {
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    opacity: 0.95;
}

.home-branch-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.75rem 0.875rem 0.875rem;
}

@media (min-width: 640px) {
    .home-branch-card__body {
        padding: 0.875rem 1rem 1rem;
    }
}

.home-branch-card__desc {
    margin-top: 0;
    flex: 1;
    font-size: 0.75rem;
    line-height: 1.65;
    color: rgb(100 116 139);
}

@media (min-width: 640px) {
    .home-branch-card__desc {
        font-size: 0.8125rem;
    }
}

.home-branch-card__cta {
    margin-top: 0.75rem;
    width: 100%;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(
        180deg,
        rgb(59 130 246) 0%,
        rgb(37 99 235) 100%
    );
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.home-branch-card__cta:hover {
    background: linear-gradient(
        180deg,
        rgb(96 165 250) 0%,
        rgb(59 130 246) 100%
    );
    box-shadow: 0 4px 14px rgb(37 99 235 / 0.35);
}

.home-branch-card__cta:active {
    transform: scale(0.98);
}

/* —— مراحل ثبت سفارش —— */
.home-order-steps__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.home-order-steps__subtitle {
    margin: 0.375rem auto 0;
    max-width: 30rem;
}

/* لیست + خط پیوسته تایم‌لاین */
.home-order-steps__list {
    --step-badge-size: 2.75rem;
    --step-rail-width: 3rem;
    --step-line-color: rgb(147 197 253);
    --step-line-strong: rgb(59 130 246);

    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.home-order-step {
    position: relative;
    display: grid;
    grid-template-columns: var(--step-rail-width) 1fr;
    gap: 1rem;
    align-items: stretch;
}

.home-order-step__rail {
    display: flex;
    justify-content: center;
    align-self: stretch;
    padding-top: 0.125rem;
    position: relative;
    z-index: 2;
}

/* موبایل — خط فقط بین شماره‌ها، نه زیر ۳ */
.home-order-step:not(:last-child) .home-order-step__rail::after {
    content: "";
    position: absolute;
    top: var(--step-badge-size);
    left: 50%;
    width: 4px;
    height: calc(100% - var(--step-badge-size));
    margin-left: -2px;
    border-radius: 9999px;
    background: linear-gradient(
        180deg,
        var(--step-line-strong) 0%,
        var(--step-line-color) 50%,
        var(--step-line-color) 100%
    );
    z-index: 0;
}

.home-order-step__badge {
    display: flex;
    height: var(--step-badge-size);
    width: var(--step-badge-size);
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(
        145deg,
        rgb(59 130 246) 0%,
        rgb(29 78 216) 100%
    );
    font-size: var(--home-fs-md);
    font-weight: 800;
    color: #fff;
    box-shadow:
        0 0 0 5px #fff,
        0 0 0 7px rgb(219 234 254),
        0 6px 16px rgb(37 99 235 / 0.35);
}

.home-order-step__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    padding: 1.125rem 1.125rem 1.25rem;
    box-shadow: none;
    cursor: default;
}

.home-order-step__label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    border-radius: 9999px;
    background: rgb(239 246 255);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgb(37 99 235);
}

.home-order-step__icon-wrap {
    display: flex;
    height: 4.5rem;
    width: 4.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.125rem;
    background: linear-gradient(
        160deg,
        rgb(248 250 252) 0%,
        rgb(239 246 255) 55%,
        rgb(219 234 254) 100%
    );
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
}

.home-order-step__icon {
    display: block;
    height: 2.75rem;
    width: 2.75rem;
    object-fit: contain;
}

.home-order-step__heading {
    margin-top: 1rem;
    font-size: var(--home-fs-base);
    font-weight: 800;
    line-height: 1.5;
    color: rgb(15 23 42);
}

.home-order-step__text {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgb(100 116 139);
    text-align: justify;
}

/* دسکتاپ — سه ستون + خط افقی پیوسته */
@media (min-width: 1024px) {
    .home-order-steps__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        padding-top: 0;
    }

    .home-order-steps__list::before {
        content: "";
        position: absolute;
        top: calc(var(--step-badge-size) / 2 - 2px);
        bottom: auto;
        height: 4px;
        inset-inline: 16.666%;
        width: auto;
        border-radius: 9999px;
        background: linear-gradient(
            90deg,
            var(--step-line-strong) 0%,
            var(--step-line-color) 25%,
            var(--step-line-color) 75%,
            var(--step-line-strong) 100%
        );
        z-index: 0;
    }

    .home-order-step:not(:last-child) .home-order-step__rail::after {
        display: none;
    }

    .home-order-step {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .home-order-step__rail {
        position: absolute;
        top: calc(var(--step-badge-size) / 2);
        left: 50%;
        padding-top: 0;
        margin-top: 0;
        transform: translate(-50%, -50%);
    }

    .home-order-step__card {
        margin-top: calc(var(--step-badge-size) + 0.75rem);
        height: 100%;
        padding: 1.375rem 1.125rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .home-order-step__label {
        align-self: center;
        font-size: 0.75rem;
    }

    .home-order-step__icon-wrap {
        margin-top: 0.25rem;
    }

    .home-order-step__heading {
        margin-top: 1rem;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--home-fs-base);
    }

    .home-order-step__text {
        text-align: center;
        font-size: var(--home-fs-sm);
    }
}

@media (min-width: 1280px) {
    .home-order-steps__list {
        gap: 1.5rem;
    }

    .home-order-step__card {
        padding-inline: 1.25rem;
    }
}

/* —— چرا خدمات من —— */
.home-why-choose__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.home-why-choose__title {
    font-size: var(--home-fs-lg);
    font-weight: 800;
    line-height: 1.45;
    color: rgb(51 65 85);
}

@media (min-width: 768px) {
    .home-why-choose__title {
        font-size: var(--home-fs-2xl);
    }
}

.home-why-choose__brand {
    color: rgb(59 130 246);
}

.home-why-choose__subtitle {
    margin: 0.5rem auto 0;
    max-width: 28rem;
    font-size: var(--home-fs-sm);
    font-weight: 600;
    line-height: 1.75;
    color: rgb(100 116 139);
}

.home-why-choose__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .home-why-choose__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .home-why-choose__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.125rem;
    }
}

.home-why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgb(226 232 240);
    background: linear-gradient(180deg, #fff 0%, rgb(248 250 252) 100%);
    padding: 1.125rem 1rem 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.home-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--why-accent-bar);
}

.home-why-card__top {
    margin-bottom: 0.875rem;
}

.home-why-card__icon-wrap {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--why-accent-icon-bg);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.85),
        0 4px 14px var(--why-accent-shadow);
}

.home-why-card__icon {
    display: block;
    height: 2rem;
    width: 2rem;
    flex-shrink: 0;
    color: var(--why-accent-icon-color, rgb(37 99 235));
}

.home-why-card--support {
    --why-accent-bar: linear-gradient(90deg, rgb(59 130 246), rgb(96 165 250));
    --why-accent-border: rgb(147 197 253);
    --why-accent-shadow: rgb(37 99 235 / 0.12);
    --why-accent-icon-bg: linear-gradient(145deg, rgb(239 246 255) 0%, rgb(219 234 254) 100%);
    --why-accent-icon-color: rgb(37 99 235);
}

.home-why-card--price {
    --why-accent-bar: linear-gradient(90deg, rgb(16 185 129), rgb(52 211 153));
    --why-accent-border: rgb(110 231 183);
    --why-accent-shadow: rgb(5 150 105 / 0.12);
    --why-accent-icon-bg: linear-gradient(145deg, rgb(236 253 245) 0%, rgb(209 250 229) 100%);
    --why-accent-icon-color: rgb(5 150 105);
}

.home-why-card--trust {
    --why-accent-bar: linear-gradient(90deg, rgb(99 102 241), rgb(129 140 248));
    --why-accent-border: rgb(165 180 252);
    --why-accent-shadow: rgb(79 70 229 / 0.12);
    --why-accent-icon-bg: linear-gradient(145deg, rgb(238 242 255) 0%, rgb(224 231 255) 100%);
    --why-accent-icon-color: rgb(79 70 229);
}

.home-why-card--variety {
    --why-accent-bar: linear-gradient(90deg, rgb(14 165 233), rgb(56 189 248));
    --why-accent-border: rgb(125 211 252);
    --why-accent-shadow: rgb(2 132 199 / 0.12);
    --why-accent-icon-bg: linear-gradient(145deg, rgb(240 249 255) 0%, rgb(224 242 254) 100%);
    --why-accent-icon-color: rgb(2 132 199);
}

.home-why-card__title {
    margin-bottom: 0.5rem;
    font-size: var(--home-fs-base);
    font-weight: 800;
    line-height: 1.55;
    color: rgb(15 23 42);
    text-align: justify;
}

.home-why-card__text {
    margin: 0;
    font-size: var(--home-fs-sm);
    line-height: 1.85;
    color: rgb(100 116 139);
    text-align: justify;
}

@media (min-width: 1024px) {
    .home-why-card {
        padding: 1.25rem 1.125rem 1.375rem;
    }
}

/* —— دانلود اپلیکیشن اندروید —— */
.home-download-app__panel {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background:
        radial-gradient(ellipse 70% 80% at 100% 20%, rgb(187 247 208 / 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 0% 80%, rgb(219 234 254 / 0.55) 0%, transparent 50%),
        linear-gradient(180deg, #fff 0%, rgb(248 250 252) 100%);
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        0 10px 28px rgb(15 23 42 / 0.06);
}

.home-download-app__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
    .home-download-app__grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
        padding: 1.5rem 1.75rem;
    }
}

.home-download-app__content {
    text-align: center;
}

@media (min-width: 768px) {
    .home-download-app__content {
        text-align: start;
    }
}

.home-download-app__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border: 1px solid rgb(187 247 208);
    background: rgb(240 253 244);
    padding: 0.3125rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(22 101 52);
}

.home-download-app__badge-icon {
    display: block;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    object-fit: contain;
}

.home-download-app__title {
    margin-top: 0.75rem;
    font-size: var(--home-fs-lg);
    font-weight: 800;
    line-height: 1.45;
    color: rgb(15 23 42);
}

@media (min-width: 768px) {
    .home-download-app__title {
        font-size: var(--home-fs-xl);
    }
}

.home-download-app__desc {
    margin-top: 0.5rem;
    max-width: 32rem;
    font-size: var(--home-fs-sm);
    line-height: 1.85;
    color: rgb(100 116 139);
}

@media (min-width: 768px) {
    .home-download-app__desc {
        margin-inline: 0;
    }
}

.home-download-app__features {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-download-app__features li {
    position: relative;
    padding-inline-start: 1.125rem;
    font-size: var(--home-fs-sm);
    font-weight: 600;
    color: rgb(51 65 85);
    text-align: start;
}

.home-download-app__features li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 9999px;
    background: rgb(34 197 94);
    transform: translateY(-50%);
}

.home-download-app__btn {
    display: inline-flex;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.625rem;
    background: linear-gradient(145deg, rgb(59 130 246) 0%, rgb(37 99 235) 100%);
    padding: 0.75rem 1.25rem;
    font-size: var(--home-fs-sm);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 20px rgb(37 99 235 / 0.3);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.home-download-app__btn:hover {
    background: linear-gradient(145deg, rgb(96 165 250) 0%, rgb(59 130 246) 100%);
    box-shadow: 0 10px 24px rgb(37 99 235 / 0.38);
    transform: translateY(-1px);
}

.home-download-app__btn svg {
    height: 1.125rem;
    width: 1.125rem;
    flex-shrink: 0;
}

.home-download-app__visual {
    display: flex;
    justify-content: center;
}

.home-download-app__phone {
    position: relative;
    width: 12.5rem;
    border-radius: 2rem;
    border: 3px solid rgb(51 65 85);
    background: linear-gradient(165deg, rgb(51 65 85) 0%, rgb(15 23 42) 100%);
    padding: 0.5rem;
    box-shadow:
        0 24px 48px rgb(15 23 42 / 0.28),
        inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.home-download-app__phone::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    width: 3.25rem;
    height: 0.3125rem;
    border-radius: 9999px;
    background: rgb(71 85 105);
}

.home-download-app__phone-screen {
    position: relative;
    display: flex;
    min-height: 18.75rem;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 50% 0%, rgb(187 247 208 / 0.45) 0%, transparent 42%),
        linear-gradient(180deg, rgb(248 250 252) 0%, rgb(239 246 255) 55%, rgb(219 234 254) 100%);
}

.home-download-app__screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem 0.25rem;
}

.home-download-app__screen-time {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(51 65 85);
}

.home-download-app__screen-signal {
    display: flex;
    gap: 0.125rem;
    align-items: flex-end;
}

.home-download-app__screen-signal::before,
.home-download-app__screen-signal::after {
    content: "";
    display: block;
    border-radius: 1px;
    background: rgb(100 116 139);
}

.home-download-app__screen-signal::before {
    width: 0.1875rem;
    height: 0.375rem;
}

.home-download-app__screen-signal::after {
    width: 0.1875rem;
    height: 0.5625rem;
}

.home-download-app__screen-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1.25rem;
    text-align: center;
}

.home-download-app__app-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.home-download-app__app-icon-glow {
    position: absolute;
    height: 5.5rem;
    width: 5.5rem;
    border-radius: 1.5rem;
    background: rgb(61 220 132 / 0.22);
    filter: blur(10px);
}

.home-download-app__app-icon-box {
    position: relative;
    display: flex;
    height: 4.75rem;
    width: 4.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.125rem;
    background: linear-gradient(145deg, #fff 0%, rgb(248 250 252) 100%);
    box-shadow:
        0 10px 24px rgb(15 23 42 / 0.12),
        inset 0 1px 0 rgb(255 255 255 / 0.95),
        0 0 0 1px rgb(226 232 240);
}

.home-download-app__android-icon {
    display: block;
    height: 2.75rem;
    width: 2.75rem;
    object-fit: contain;
}

.home-download-app__brand {
    font-size: var(--home-fs-base);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgb(15 23 42);
}

.home-download-app__brand-sub {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(100 116 139);
}

.home-download-app__screen-chips {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0 0.75rem 1.125rem;
}

.home-download-app__screen-chips span {
    border-radius: 9999px;
    border: 1px solid rgb(191 219 254);
    background: rgb(255 255 255 / 0.85);
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(37 99 235);
}

/* about */
.home-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .home-about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.home-about__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-about__img {
    display: block;
    width: 100%;
    max-height: 25rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

.home-about__content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 1024px) {
    .home-about__content {
        padding-inline-start: 1rem;
    }
}

.home-about__title {
    margin: 0 0 0.35rem;
    font-size: var(--home-fs-lg);
    font-weight: 700;
    line-height: 1.5;
    color: rgb(15 23 42);
    text-align: center;
}

.home-about__brand {
    color: rgb(59 130 246);
}

@media (min-width: 1024px) {
    .home-about__title {
        font-size: var(--home-fs-2xl);
        text-align: right;
    }
}

.home-about__text {
    margin: 0;
    font-size: var(--home-fs-base);
    line-height: 2;
    color: rgb(15 23 42);
    text-align: justify;
}
