/* =========================
   Hero
   ========================= */

.hero {
    position: relative;
    padding: 130px 0 var(--section-space-md);
}

.hero-card-wrapper {
    position: relative;
    max-width: 980px;
    margin: 80px auto 0;
}

.hero-avatar {
    position: absolute;
    top: -72px;
    left: 50%;
    transform: translateX(-50%);
    width: 168px;
    height: 168px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(180deg, rgba(18, 41, 104, 0.95), rgba(2, 10, 36, 0.98));
    box-shadow:
        0 0 0 1px rgba(118, 158, 255, 0.18),
        0 0 28px rgba(0, 81, 255, 0.28),
        0 0 40px rgba(0, 38, 255, 0.12);
    z-index: 2;
}

.hero-avatar::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.18), transparent 68%);
    z-index: -1;
    filter: blur(10px);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 124px 48px 42px;
    border-radius: var(--card-radius-lg);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 81, 255, 0.15), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(0, 81, 255, 0.1), transparent 35%);
    pointer-events: none;
}

.hero-card::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -16px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 89, 255, 0.32), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-title {
    margin: 0 0 3px;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-role {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
    font-weight: 500;
    color: #eef3ff;
}

.hero-description {
    max-width: 760px;
    margin: 20px auto;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.75;
    font-weight: 400;
    color: rgba(224, 232, 255, 0.78);
}

.hero-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-social {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(20, 24, 40, 0.92), rgba(8, 10, 18, 0.98));
    border: 1px solid rgba(122, 151, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 65, 170, 0.08),
        0 0 18px rgba(0, 102, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-social i {
    font-size: 1rem;
}

.hero-social:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 158, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 24px rgba(0, 102, 255, 0.22),
        0 10px 20px rgba(0, 0, 0, 0.28);
}


body.rtl .hero-card {
    text-align: center;
}

body.rtl .hero-description {
    direction: rtl;
}

/* =========================
   Stats Section
   ========================= */
/* =========================
   Stats Section
   ========================= */

.stats-section {
    padding: 0 0 var(--section-space-md);
}

.stats-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--card-radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 81, 255, 0.15), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(0, 81, 255, 0.10), transparent 35%);
    pointer-events: none;
    animation: statsGlowFloat 8s ease-in-out infinite alternate;
}

.stats-card::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -16px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 89, 255, 0.32), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
    animation: statsGlowPulse 6s ease-in-out infinite;
}

.stats-card > * {
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-radius: 22px;
    transition: transform 0.25s ease;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-value {
    margin-bottom: 6px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(224, 232, 255, 0.72);
}

body.rtl .stat-label {
    direction: rtl;
}

@keyframes statsGlowFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-6px) scale(1.02);
        opacity: 1;
    }
}

@keyframes statsGlowPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.03);
    }
}

/* =========================
   Offers Section
   ========================= */

.offers-section {
    padding: 100px 0 var(--section-space-lg);
    overflow: hidden;
}

.offers-head {
    margin-bottom: var(--section-title-gap);
}

.offers-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.1;
    font-weight: 500;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
}

.offers-swiper {
    overflow: visible;
    touch-action: pan-y;
}

.offers-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.offers-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

.offers-swiper .offer-card {
    width: 100%;
}

.offer-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: var(--card-radius-lg);
    background: linear-gradient(180deg, rgba(7, 10, 28, 0.96), rgba(4, 6, 20, 0.98));
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.45),
        0 30px 40px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(0, 38, 255, 0.06);
    border: 1px solid rgba(84, 117, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 40px rgba(0, 0, 0, 0.5),
        0 36px 50px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(65, 90, 255, 0.12);
    border-color: rgba(120, 140, 255, 0.18);
}

.offer-card__image-wrap {
    width: 100%;
    height: 215px;
    padding: 14px 14px 0;
}

.offer-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 34px 34px 0 0;
    transition: transform 0.45s ease;
}

.offer-card:hover .offer-card__image {
    transform: scale(1.04);
}

.offer-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 235px;
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, #3f3d51 0%, #2f2d41 100%);
    border-radius: 0 28px 34px 34px;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-card__content::before {
    content: "";
    position: absolute;
    top: -34px;
    left: 0;
    width: 118px;
    height: 34px;
    background: linear-gradient(180deg, #3f3d51 0%, #3f3d51 100%);
    border-radius: 0 18px 0 0;
}

.offer-card__content::after {
    content: "";
    position: absolute;
    top: -34px;
    left: 118px;
    width: 34px;
    height: 34px;
    background: transparent;
    border-bottom-left-radius: 22px;
    box-shadow: -12px 12px 0 0 #3f3d51;
}

.offer-card__title {
    margin: 0 0 4px;
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 500;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: lowercase;
}

.offer-card__subtitle {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.3;
    color: rgba(240, 240, 248, 0.82);
}

.offer-card__description {
    margin: 0;
    max-width: 92%;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(230, 232, 245, 0.68);
}

.offer-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.offer-card__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.offer-card__count {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    color: #00ff4c;
    letter-spacing: -0.03em;
}

.offer-card__label {
    font-size: 0.95rem;
    color: rgba(240, 240, 248, 0.8);
}

.offer-card__arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.offer-card__arrow:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.offers-swiper-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.offers-swiper-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.offers-swiper-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: #ffffff;
}

/* =========================
   Feedback Section
   ========================= */

.feedback-section {
    padding: 0 0 var(--section-space-lg);
    overflow: hidden;
}

.feedback-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feedback-head {
    margin-bottom: var(--section-title-gap);
}

.feedback-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    font-weight: 500;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
}

.feedback-swiper {
    overflow: hidden;
    touch-action: pan-y;
    padding: 8px 4px 8px;
}

.feedback-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.feedback-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

.feedback-swiper .feedback-card {
    width: 100%;
}

.feedback-card {
    position: relative;
    min-height: 180px;
    padding: 22px 22px 20px;
    border-radius: var(--card-radius-md);
    background: linear-gradient(180deg, rgba(8, 10, 32, 0.96), rgba(5, 7, 24, 0.98));
    border: 1px solid rgba(93, 108, 255, 0.12);
    box-shadow:
        0 16px 24px rgba(0, 0, 0, 0.42),
        0 24px 40px rgba(0, 0, 0, 0.18),
        0 0 22px rgba(0, 68, 255, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feedback-card:hover {
    transform: translateY(-6px);
    border-color: rgba(118, 132, 255, 0.22);
    box-shadow:
        0 22px 32px rgba(0, 0, 0, 0.48),
        0 30px 46px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(68, 98, 255, 0.09);
}

.feedback-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.feedback-card__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.feedback-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.feedback-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.feedback-card__name {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 500;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feedback-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.feedback-card__star {
    font-size: 1rem;
    line-height: 1;
    color: rgba(255, 215, 0, 0.28);
}

.feedback-card__star.is-active {
    color: #ffd84d;
    text-shadow: 0 0 10px rgba(255, 216, 77, 0.18);
}

.feedback-card__text {
    margin: 0;
    max-width: 95%;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(228, 232, 245, 0.78);
}

.feedback-swiper-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.feedback-swiper-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.22);
    opacity: 1;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.feedback-swiper-pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: #ffffff;
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 991px) {
    .hero {
        padding: 80px 0 var(--section-space-sm);
    }

    .hero-card-wrapper {
        margin-top: 66px;
    }

    .hero-avatar {
        width: 128px;
        height: 128px;
        top: -62px;
    }

    .hero-card {
        min-height: auto;
        padding: 104px 30px 34px;
        border-radius: var(--card-radius-md);
    }

    .offers-section {
        padding-top: 70px;
        padding-bottom: var(--section-space-md);
    }

    .offer-card {
        min-height: 400px;
        border-radius: var(--card-radius-md);
    }

    .offer-card__image-wrap {
        height: 185px;
        padding: 12px 12px 0;
    }

    .offer-card__image {
        border-radius: 28px 28px 0 0;
    }

    .offer-card__content {
        min-height: 218px;
        padding: 18px 18px 16px;
        border-radius: 0 24px 28px 28px;
    }

    .offer-card__content::before {
        width: 102px;
        height: 30px;
        top: -30px;
    }

    .offer-card__content::after {
        top: -30px;
        left: 102px;
        width: 30px;
        height: 30px;
        box-shadow: -11px 11px 0 0 #3f3d51;
    }

    .offer-card__title {
        font-size: 1.8rem;
    }

    .offer-card__subtitle,
    .offer-card__description {
        font-size: 0.88rem;
    }

    .offer-card__count {
        font-size: 1.9rem;
    }

    .feedback-section {
        padding-bottom: calc(var(--section-space-md) + 6px);
    }

    .feedback-card {
        min-height: 170px;
        padding: 20px 20px 18px;
        border-radius: 24px;
    }

    .feedback-card__name {
        font-size: 1.1rem;
    }

    .feedback-card__text {
        font-size: 0.9rem;
    }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 767px) {
    .hero {
        padding: 80px 0 var(--section-space-sm);
    }

    .hero-card-wrapper {
        margin-top: 66px;
    }

    .hero-avatar {
        width: 96px;
        height: 96px;
        top: -46px;
        padding: 4px;
    }

    .hero-card {
        padding: 66px 18px 26px;
        border-radius: var(--card-radius-sm);
    }

    .hero-title {
        margin: 0 18px;
        font-size: 2rem;
    }

    .hero-role {
        font-size: 1.12rem;
    }

    .hero-description {
        max-width: 100%;
        margin: 10px 0;
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .hero-socials {
        gap: 14px;
        margin-top: 24px;
    }

    .hero-social {
        width: 36px;
        height: 36px;
    }

    .hero-social i {
        font-size: 0.9rem;
    }

    .stats-section {
        padding-bottom: var(--section-space-sm);
    }

    .stats-card {
        flex-direction: row;
        gap: 6px;
        border-radius: var(--card-radius-sm);
    }

    .stat-item {
        flex: 1;
        padding: 12px 6px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-item:not(:last-child)::after {
        right: 0;
        top: 20%;
        bottom: 20%;
    }

    .offers-section {
        padding-bottom: 36px;
    }

    .offers-head {
        margin-bottom: var(--section-title-gap-mobile);
    }

    .offers-title {
        font-size: 2.4rem;
    }

    .offer-card {
        min-height: 390px;
        border-radius: 28px;
    }

    .offer-card__image-wrap {
        height: 170px;
        padding: 12px 12px 0;
    }

    .offer-card__image {
        border-radius: 28px 28px 0 0;
    }

    .offer-card__content {
        min-height: 220px;
        padding: 18px 18px 14px;
        border-radius: 0 24px 28px 28px;
    }

    .offer-card__content::before {
        width: 94px;
        height: 28px;
        top: -28px;
        border-radius: 0 16px 0 0;
    }

    .offer-card__content::after {
        top: -28px;
        left: 94px;
        width: 28px;
        height: 28px;
        border-bottom-left-radius: 18px;
        box-shadow: -10px 10px 0 0 #3f3d51;
    }

    .offer-card__title {
        font-size: 1.7rem;
    }

    .offer-card__subtitle {
        margin-bottom: 14px;
        font-size: 0.85rem;
    }

    .offer-card__description {
        max-width: 100%;
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .offer-card__footer {
        margin-top: 22px;
    }

    .offer-card__count {
        font-size: 1.9rem;
    }

    .offer-card__label {
        font-size: 0.9rem;
    }

    .offer-card__arrow {
        width: 40px;
        height: 40px;
        font-size: 1.45rem;
    }

    .feedback-section {
        padding-bottom: 40px;
    }

    .feedback-head {
        margin-bottom: var(--section-title-gap-mobile);
    }

    .feedback-title {
        font-size: 2.2rem;
    }

    .feedback-swiper {
    padding: 8px 4px 8px;
    }

    .feedback-card {
        min-height: 160px;
        padding: 18px 18px 16px;
        border-radius: 22px;
    }

    .feedback-card__top {
        margin-bottom: 14px;
        gap: 10px;
    }

    .feedback-card__avatar {
        width: 38px;
        height: 38px;
    }

    .feedback-card__name {
        font-size: 1.25rem;
    }

    .feedback-card__rating {
        gap: 3px;
    }

    .feedback-card__star {
        font-size: 0.9rem;
    }

    .feedback-card__text {
        max-width: 100%;
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .feedback-swiper-pagination {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding-inline: 14px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-role {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .offers-title {
        font-size: 2.1rem;
    }

    .offer-card {
        min-height: 375px;
    }

    .offer-card__image-wrap {
        height: 160px;
    }

    .offer-card__title {
        font-size: 1.65rem;
    }

    .offer-card__description {
        font-size: 0.82rem;
    }

    .feedback-title {
        font-size: 2rem;
    }

    .feedback-card__name {
        font-size: 1rem;
    }

    .feedback-card__text {
        font-size: 0.82rem;
    }
}


/* =========================
   Safe Animation Helpers
   ========================= */

.hero-avatar img {
    will-change: transform;
}

.hero-card,
.offer-card,
.feedback-card,
.footer-logo,
.footer-text,
.footer-copy {
    will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
    .hero-avatar,
    .hero-avatar img {
        animation: none !important;
        transition: none !important;
    }
}