/* =====================================================================
   Ostaman — Home page
   Glass UI · RTL · mobile-first responsive
   Everything is scoped under .hm-root so other pages are not affected.
   ===================================================================== */

@font-face {
    font-family: "OstamanUI";
    src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2"), url("../fonts/IRANYekanX-Regular.woff") format("woff");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OstamanUI";
    src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2"), url("../fonts/IRANYekanX-Bold.woff") format("woff");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

.hm-root {
    --navy: #0d2340;
    --navy-800: #0a1c36;
    --navy-900: #071528;
    --orange: #ff6a00;
    --orange-600: #e85f00;
    --orange-300: #ffa25c;
    --ink: #0d2340;
    --muted: #5d6b80;
    --paper: #f6f7f9;
    --white: #fff;
    --glass-dark: rgba(8, 24, 48, .55);
    --glass-light: rgba(255, 255, 255, .72);
    --line-light: rgba(13, 35, 64, .08);
    --line-dark: rgba(255, 255, 255, .14);
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    font-family: "OstamanUI", "Vazir", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

@media (max-width: 899.98px) {
    .hm-root {
        --header-h: 60px;
    }
}

html.hm-home {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

.hm-root *, .hm-root *::before, .hm-root *::after {
    box-sizing: border-box;
}

.hm-root img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hm-root a {
    color: inherit;
    text-decoration: none;
}

.hm-root h1, .hm-root h2, .hm-root h3, .hm-root p, .hm-root ul {
    margin: 0;
    padding: 0;
}

.hm-root ul {
    list-style: none;
}

.hm-root button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

.hm-root :focus-visible {
    outline: 2px solid var(--orange-300);
    outline-offset: 3px;
    border-radius: 8px;
}

.hm-root [id] {
    scroll-margin-top: 76px;
}

.hm-ic {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-container {
    width: min(1200px, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.hm-skip {
    position: fixed;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    transform: translateY(-200%);
    transition: transform .2s;
}

    .hm-skip:focus {
        transform: none;
    }

/* ---------- Buttons ---------- */
.hm-btn {
    --h: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--h);
    padding-inline: 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}

    .hm-btn .hm-ic {
        transition: transform .25s var(--ease);
    }

    .hm-btn:hover .hm-ic--arrow {
        transform: translateX(-4px);
    }

    .hm-btn:active {
        transform: scale(.97);
    }

.hm-btn--primary {
    background: linear-gradient(180deg, #ff7a1a, var(--orange));
    color: #fff;
    box-shadow: 0 10px 26px -8px rgba(255, 106, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
}

    .hm-btn--primary:hover {
        box-shadow: 0 14px 32px -8px rgba(255, 106, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
        translate: 0 -2px;
    }

.hm-btn--glass {
    background: rgba(255, 255, 255, .08);
    border-color: var(--line-dark);
    color: #fff;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

    .hm-btn--glass:hover {
        background: rgba(255, 255, 255, .16);
        translate: 0 -2px;
    }

.hm-btn--outline {
    --h: 42px;
    padding-inline: 18px;
    color: var(--orange);
    border-color: rgba(255, 106, 0, .85);
    background: rgba(8, 24, 48, .35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

    .hm-btn--outline:hover {
        background: var(--orange);
        color: #fff;
    }

.hm-btn--sm {
    --h: 40px;
    padding-inline: 18px;
    font-size: .88rem;
}

.hm-roundbtn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    color: var(--navy);
    background: var(--glass-light);
    border: 1px solid var(--line-light);
    box-shadow: 0 6px 18px -8px rgba(13, 35, 64, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .25s var(--ease), background-color .25s, color .25s, opacity .25s;
}

    .hm-roundbtn:hover:not(:disabled) {
        background: var(--orange);
        color: #fff;
        translate: 0 -2px;
    }

    .hm-roundbtn:disabled {
        opacity: .35;
        cursor: default;
    }

/* ---------- Header (glass) ---------- */
.hm-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(180deg, rgba(7, 21, 40, .6), rgba(7, 21, 40, .28));
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .35s, box-shadow .35s;
}

    .hm-header.is-scrolled {
        background: rgba(7, 21, 40, .78);
        box-shadow: 0 10px 34px -12px rgba(0, 0, 0, .5);
    }

.hm-header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.hm-logo img {
    height: 36px;
    width: auto;
}

.hm-nav {
    display: none;
    margin-inline: auto;
    gap: clamp(18px, 3vw, 44px);
}

    .hm-nav a {
        position: relative;
        padding: 8px 2px;
        font-size: .92rem;
        color: rgba(255, 255, 255, .82);
        transition: color .25s;
    }

        .hm-nav a::after {
            content: "";
            position: absolute;
            inset-inline: 0;
            bottom: 0;
            height: 2px;
            border-radius: 2px;
            background: var(--orange);
            transform: scaleX(0);
            transition: transform .35s var(--ease);
        }

        .hm-nav a:hover {
            color: #fff;
        }

        .hm-nav a.is-active {
            color: var(--orange);
        }

            .hm-nav a.is-active::after {
                transform: scaleX(1);
            }

.hm-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.hm-iconbtn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line-dark);
    transition: background-color .25s, translate .25s var(--ease);
}

    .hm-iconbtn:hover {
        background: rgba(255, 255, 255, .18);
        translate: 0 -2px;
    }

.hm-burger {
    display: grid;
}

.hm-header__auth {
    display: none;
}

@media (min-width: 900px) {
    .hm-nav {
        display: flex;
    }

    .hm-header__actions {
        margin-inline-start: 0;
    }

    .hm-burger, .hm-mobile {
        display: none !important;
    }

    .hm-header__auth {
        display: grid;
    }

    .hm-logo img {
        height: 40px;
    }
}

/* Mobile menu */
.hm-mobile {
    position: fixed;
    inset: 0;
    z-index: 55;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}

    .hm-mobile::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(4, 12, 24, .5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

html.hm-menu-open .hm-mobile {
    visibility: visible;
    opacity: 1;
}

html.hm-menu-open {
    overflow: hidden;
}

.hm-mobile__panel {
    position: absolute;
    inset: calc(var(--header-h) + 8px) 12px auto 12px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(10, 28, 54, .82);
    border: 1px solid var(--line-dark);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    transform: translateY(-10px) scale(.98);
    transition: transform .35s var(--ease);
}

html.hm-menu-open .hm-mobile__panel {
    transform: none;
}

.hm-mobile__panel a, .hm-mobile__panel button.hm-mobile__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
    text-align: start;
}

    .hm-mobile__panel a:hover, .hm-mobile__panel a.is-active {
        background: rgba(255, 255, 255, .08);
        color: var(--orange);
    }

.hm-mobile__panel .hm-btn {
    width: 100%;
    margin-top: 8px;
    color: #fff;
}

/* ---------- Hero ---------- */
.hm-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    height: clamp(560px, calc(42.3vw + var(--header-h)), 860px);
    padding-top: var(--header-h);
    background: #0b1b38;
    color: #fff;
    overflow: hidden;
}

.hm-hero__media {
    position: absolute;
    inset: var(--header-h) 0 0 0; /* the banner sits right under the glass header so the head is never covered */
    z-index: -2;
}

    .hm-hero__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 62% 100%;
    }

.hm-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 21, 40, .82) 0%, rgba(7, 21, 40, .5) 30%, rgba(7, 21, 40, 0) 58%);
    pointer-events: none;
}

.hm-hero__inner {
    display: flex;
    justify-content: flex-end; /* RTL: pushes the copy to the left side of the screen, like the design */
    width: min(1440px, calc(100% - 2 * var(--gutter)));
    padding-block: 40px;
}

.hm-hero__copy {
    width: clamp(300px, 34%, 420px);
}

.hm-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 14px;
}

    .hm-eyebrow::before {
        content: "";
        width: 34px;
        height: 2px;
        border-radius: 2px;
        background: var(--orange);
    }

.hm-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.01em;
}

    .hm-hero h1 em {
        display: block;
        font-style: normal;
        color: var(--orange);
    }

.hm-lead {
    margin-top: 18px;
    font-size: clamp(.95rem, 1.35vw, 1.15rem);
    color: rgba(255, 255, 255, .86);
    max-width: 30em;
}

.hm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@media (min-width: 900px) {
    .hm-hero__cta {
        flex-wrap: nowrap;
        width: max-content;
    }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
    .hm-hero__cta {
        gap: 10px;
        margin-top: 22px;
    }

        .hm-hero__cta .hm-btn {
            --h: 42px;
            padding-inline: 14px;
            font-size: .84rem;
            gap: 8px;
        }
}

/* hero entrance (plays once) */
html.hm-js:not(.hm-hero-played) .hm-hero__copy > * {
    animation: hm-rise .8s var(--ease) both;
}

    html.hm-js:not(.hm-hero-played) .hm-hero__copy > *:nth-child(2) {
        animation-delay: .08s;
    }

    html.hm-js:not(.hm-hero-played) .hm-hero__copy > *:nth-child(3) {
        animation-delay: .16s;
    }

    html.hm-js:not(.hm-hero-played) .hm-hero__copy > *:nth-child(4) {
        animation-delay: .24s;
    }

@keyframes hm-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 899.98px) {
    .hm-hero {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-top: 0;
    }

    .hm-hero__shade {
        display: none;
    }

    .hm-hero__inner {
        order: 1;
        justify-content: center;
        padding-top: calc(var(--header-h) + 34px);
        padding-bottom: 0;
        position: relative;
        z-index: 2;
    }

    .hm-hero__copy {
        width: min(560px, 100%);
        text-align: center;
    }

    .hm-eyebrow {
        justify-content: center;
    }

        .hm-eyebrow::after {
            content: "";
            width: 34px;
            height: 2px;
            border-radius: 2px;
            background: var(--orange);
        }

    .hm-lead {
        margin-inline: auto;
    }

    .hm-hero__cta {
        justify-content: center;
    }

    .hm-hero__media {
        order: 2;
        position: relative;
        inset: auto;
        aspect-ratio: 1928 / 815;
        margin-top: 28px; /* the banner starts below the buttons, never under them */
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .hm-hero__media {
        aspect-ratio: 900 / 815;
        margin-top: 24px;
    }

    .hm-hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hm-hero__cta .hm-btn {
        flex: 1 1 150px;
    }
}

/* ---------- Section primitives ---------- */
.hm-section {
    padding-block: clamp(48px, 7vw, 96px);
}

.hm-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}

    .hm-title::after {
        content: "";
        display: block;
        width: 46px;
        height: 3px;
        border-radius: 3px;
        background: var(--orange);
        margin: 12px auto 0;
    }

/* scroll reveal */
html.hm-js .hm-root [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity .75s var(--ease) var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms);
}

    html.hm-js .hm-root [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    html.hm-js .hm-root [data-reveal].is-instant {
        transition: none;
    }

/* ---------- Services ---------- */
.hm-services {
    position: relative;
    background: radial-gradient(60% 80% at 80% 0, #fff 0, rgba(255, 255, 255, 0) 70%), var(--paper);
    padding-bottom: 28px;
}

    .hm-services .hm-container {
        position: relative;
    }

.hm-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 26px);
    margin-top: clamp(26px, 4vw, 46px);
    padding-inline-end: 0;
}

.hm-services__mascot {
    position: absolute;
    left: calc(-1 * var(--gutter) * .4);
    bottom: -28px;
    width: clamp(150px, 17vw, 260px);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    filter: drop-shadow(0 18px 24px rgba(13, 35, 64, .18));
}

@media (min-width: 900px) {
    .hm-services__grid {
        margin-inline-end: clamp(150px, 19vw, 260px); /* RTL: "end" = left side, leaves room for the mascot */
    }
}

@media (max-width: 899.98px) {
    .hm-services .hm-container {
        display: flex;
        flex-direction: column;
    }

    .hm-services__mascot {
        position: static;
        order: 1;
        align-self: center;
        margin: 18px 0 -10px;
        width: 140px;
    }

    .hm-services__grid {
        order: 2;
    }
}

.hm-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 18px 44px -18px rgba(13, 35, 64, .25), 0 0 0 1px var(--line-light);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    transition: translate .4s var(--ease), box-shadow .4s var(--ease);
    overflow: hidden;
}

    .hm-card:hover {
        translate: 0 -5px;
        box-shadow: 0 26px 54px -18px rgba(13, 35, 64, .32), 0 0 0 1px var(--line-light);
    }

.hm-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 6px 2px;
    min-width: 0;
}

.hm-card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 1.1rem;
}

.hm-card h3 {
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 800;
}

.hm-card p {
    margin-top: 4px;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.8;
}

.hm-card__go {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: auto;
    margin-inline-start: auto;
    border-radius: 50%;
    color: var(--orange);
    border: 1.5px solid var(--orange);
    transition: background-color .25s, color .25s, translate .3s var(--ease);
}

.hm-card:hover .hm-card__go {
    background: var(--orange);
    color: #fff;
    translate: -3px 0;
}

.hm-card__img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 150px;
}

    .hm-card__img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s var(--ease);
    }

.hm-card:hover .hm-card__img img {
    transform: scale(1.06);
}

@media (max-width: 760px) {
    .hm-services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hm-card {
        grid-template-columns: 1fr;
    }

    .hm-card__img {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .hm-card__go {
        margin-top: 12px;
    }
}

/* ---------- Steps ---------- */
.hm-steps {
    padding-block: clamp(18px, 3vw, 34px) clamp(30px, 5vw, 60px);
}

.hm-steps__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3.4vw, 40px) clamp(18px, 3vw, 40px);
    border-radius: clamp(22px, 3vw, 32px);
    color: #fff;
    text-align: center;
    background: radial-gradient(80% 140% at 85% -20%, rgba(255, 106, 0, .22) 0, rgba(255, 106, 0, 0) 55%), linear-gradient(135deg, #12305a 0%, #0d2340 55%, #09182f 100%);
    border: 1px solid var(--line-dark);
    box-shadow: 0 30px 60px -28px rgba(7, 21, 40, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.hm-steps__title {
    font-size: 1.05rem;
    font-weight: 700;
}

.hm-steps__list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.hm-step {
    flex: 1 1 0;
    min-width: 0;
}

.hm-step__badge {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: var(--orange);
    font-size: 1.7rem;
    background: radial-gradient(circle at 50% 30%, rgba(255, 106, 0, .22), rgba(255, 106, 0, .04));
    border: 2px solid rgba(255, 106, 0, .85);
    box-shadow: 0 0 0 6px rgba(255, 106, 0, .08);
    transition: transform .4s var(--ease), box-shadow .4s;
}

.hm-step:hover .hm-step__badge {
    transform: translateY(-3px);
    box-shadow: 0 0 0 9px rgba(255, 106, 0, .12);
}

.hm-step h3 {
    font-size: 1rem;
    font-weight: 800;
}

.hm-step p {
    margin-top: 2px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .66);
}

.hm-steps__arrow {
    flex: none;
    margin-top: 22px;
    color: rgba(255, 255, 255, .55);
    font-size: 1.3rem;
}

@media (max-width: 719.98px) {
    .hm-steps__list {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .hm-step {
        flex: none;
        width: 100%;
    }

    .hm-steps__arrow {
        margin: 0;
        transform: rotate(-90deg);
    }
}

/* ---------- Packages ---------- */
.hm-packages {
    padding-top: clamp(20px, 3vw, 36px);
}

.hm-packs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 22px);
    margin-top: clamp(40px, 5vw, 56px);
    align-items: stretch;
}

.hm-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 14px 16px;
    border-radius: 24px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 14px 36px -18px rgba(13, 35, 64, .28), 0 0 0 1px var(--line-light);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    transition: translate .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}

    .hm-pack:hover {
        translate: 0 -6px;
        box-shadow: 0 26px 50px -20px rgba(13, 35, 64, .35), 0 0 0 1px rgba(255, 106, 0, .35);
    }

.hm-pack--featured {
    border-color: var(--orange);
    box-shadow: 0 22px 54px -20px rgba(255, 106, 0, .5), 0 0 0 1.5px var(--orange);
    translate: 0 -8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 244, 235, .85));
}

    .hm-pack--featured:hover {
        translate: 0 -13px;
        box-shadow: 0 30px 60px -20px rgba(255, 106, 0, .6), 0 0 0 1.5px var(--orange);
    }

.hm-pack__badge {
    position: absolute;
    top: -13px;
    inset-inline: 0;
    margin-inline: auto;
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(255, 106, 0, .8);
}

    .hm-pack__badge .hm-ic {
        width: .95em;
        height: .95em;
    }

.hm-pack__img {
    height: 132px;
    width: 100%;
    margin-top: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .hm-pack__img img {
        max-height: 100%;
        width: auto;
        max-width: 88%;
        object-fit: contain;
        object-position: bottom;
        transition: transform .6s var(--ease);
    }

.hm-pack:hover .hm-pack__img img {
    transform: scale(1.05) translateY(-2px);
}

.hm-pack h3 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

    .hm-pack h3 .hm-ic {
        color: var(--navy);
        width: 1.05em;
        height: 1.05em;
    }

.hm-pack__meta {
    margin-top: 4px;
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.9;
}

.hm-pack__price {
    margin-top: 10px;
    font-weight: 800;
    font-size: .95rem;
}

    .hm-pack__price small {
        font-weight: 600;
        font-size: .8rem;
    }

.hm-pack .hm-btn {
    --h: 38px;
    width: 100%;
    margin-top: auto;
    font-size: .85rem;
    color: var(--navy);
    background: rgba(255, 255, 255, .8);
    border-color: var(--line-light);
    box-shadow: 0 6px 16px -10px rgba(13, 35, 64, .3);
}

.hm-pack__price + .hm-btn,
.hm-pack__details + .hm-btn {
    margin-top: 14px;
}

/* خدمات شامل‌شده در هر بسته */
.hm-pack__details {
    width: 100%;
    margin-top: 10px;
    text-align: right;
    font-size: .82rem;
}

    .hm-pack__details summary {
        cursor: pointer;
        list-style: none;
        text-align: center;
        font-weight: 700;
        color: var(--orange-600, #e85d00);
        padding: 6px 0;
    }

        .hm-pack__details summary::-webkit-details-marker {
            display: none;
        }

        .hm-pack__details summary::after {
            content: " ▾";
        }

    .hm-pack__details[open] summary::after {
        content: " ▴";
    }

    .hm-pack__details ul {
        margin: 6px 0 0;
        padding: 0 16px 0 0;
        line-height: 1.9;
        color: var(--muted);
        max-height: 180px;
        overflow-y: auto;
    }

.hm-pack .hm-btn:hover {
    background: var(--navy);
    color: #fff;
}

.hm-pack--featured .hm-btn {
    color: #fff;
    background: linear-gradient(180deg, #ff7a1a, var(--orange));
    border-color: transparent;
    box-shadow: 0 10px 22px -8px rgba(255, 106, 0, .7);
}

    .hm-pack--featured .hm-btn:hover {
        background: var(--orange-600);
    }

@media (max-width: 1099.98px) {
    .hm-packs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 34px;
    }

    .hm-pack {
        grid-column: span 2;
    }

        .hm-pack:nth-child(4) {
            grid-column: 2 / span 2;
        }

        .hm-pack:nth-child(5) {
            grid-column: 4 / span 2;
        }
}

@media (max-width: 719.98px) {
    .hm-packs {
        display: flex;
        gap: 14px;
        margin-top: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 34px var(--gutter) 26px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

        .hm-packs::-webkit-scrollbar {
            display: none;
        }

    .hm-pack, .hm-pack:nth-child(4), .hm-pack:nth-child(5) {
        flex: 0 0 min(72%, 250px);
        scroll-snap-align: center;
    }
}


/* ---------- بسته‌ها: وسط‌چین با هر تعداد، عنوان در یک خط ---------- */
.hm-packs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hm-pack, .hm-pack:nth-child(4), .hm-pack:nth-child(5) {
    grid-column: auto;
    flex: 0 1 clamp(200px, 19%, 260px);
}

    /* نام بسته همیشه در یک خط (اگر خیلی بلند بود با ... کوتاه می‌شود) */
    .hm-pack h3 {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(.9rem, 1.05vw, 1.05rem);
    }

@media (max-width: 1099.98px) {
    .hm-pack, .hm-pack:nth-child(4), .hm-pack:nth-child(5) {
        flex: 0 1 calc((100% - 2 * clamp(12px, 1.6vw, 22px)) / 3);
    }
}

@media (max-width: 719.98px) {
    .hm-packs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .hm-pack, .hm-pack:nth-child(4), .hm-pack:nth-child(5) {
        flex: 0 0 min(72%, 250px);
    }
}


/* ---------- پایین کارت بسته: دکمه مودال + انتخاب (همه روی یک خط) ---------- */
.hm-pack__meta {
    min-height: 3.8em;
}

.hm-pack__foot {
    margin-top: auto;
    width: 100%;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .hm-pack__foot .hm-btn {
        margin-top: 0;
    }

.hm-pack__more {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    color: var(--orange-600, #e85d00);
    padding: 6px 0;
}

    .hm-pack__more:hover {
        text-decoration: underline;
    }

/* ---------- مودال خدمات شامل‌شده ---------- */
.hm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(7, 21, 40, .6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hm-modal__box {
    position: relative;
    width: min(480px, 100%);
    max-height: 80vh;
    overflow: auto;
    padding: 26px 24px 22px;
    border-radius: 22px;
    background: #fff;
    color: var(--navy, #0d2340);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}

    .hm-modal__box h3 {
        margin: 0 0 4px;
        padding-inline-end: 30px;
        font-size: 1.1rem;
        font-weight: 800;
    }

    .hm-modal__box ul {
        list-style: none;
        margin: 12px 0 0;
        padding: 0;
        line-height: 1.9;
    }

    .hm-modal__box li {
        position: relative;
        padding: 5px 20px 5px 0;
        border-bottom: 1px dashed rgba(13, 35, 64, .15);
    }

        .hm-modal__box li:last-child {
            border-bottom: 0;
        }

        .hm-modal__box li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 1em;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--orange, #ff6a00);
        }

.hm-modal__close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(13, 35, 64, .08);
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

    .hm-modal__close:hover {
        background: rgba(255, 106, 0, .18);
    }

/* ---------- Why Ostaman ---------- */
.hm-why {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(90% 160% at 12% 60%, #17396a 0, #0d2340 52%, #071528 100%);
}

    .hm-why::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(40% 80% at 88% 10%, rgba(255, 106, 0, .12), transparent 70%);
        pointer-events: none;
    }

.hm-why__grid {
    position: relative;
    display: grid;
    grid-template-areas: "features text mascot";
    grid-template-columns: minmax(0, 3.6fr) minmax(0, 1.7fr) minmax(0, 1.35fr);
    align-items: center;
    gap: clamp(14px, 3vw, 40px);
    min-height: 190px;
}

.hm-why__text {
    grid-area: text;
    padding-block: 28px;
}

    .hm-why__text h2 {
        font-size: clamp(1.15rem, 1.8vw, 1.45rem);
        font-weight: 800;
    }

    .hm-why__text p {
        margin-top: 8px;
        font-size: .86rem;
        line-height: 1.95;
        color: rgba(255, 255, 255, .72);
    }

.hm-why__features {
    grid-area: features;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-block: 26px;
}

.hm-why__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-inline: 8px;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    border-inline-start: 1px solid rgba(255, 255, 255, .1);
}

    .hm-why__feature:first-child {
        border-inline-start: 0;
    }

    .hm-why__feature .hm-ic {
        width: 2.5rem;
        height: 2.5rem;
        color: var(--orange);
        stroke-width: 1.5;
        transition: transform .4s var(--ease), filter .4s;
    }

    .hm-why__feature:hover .hm-ic {
        transform: translateY(-4px);
        filter: drop-shadow(0 8px 12px rgba(255, 106, 0, .5));
    }

.hm-why__mascot {
    grid-area: mascot;
    align-self: end;
    justify-self: end; /* RTL: "end" = left edge, like the design */
    width: min(100%, 300px);
    margin-bottom: -2px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4));
}

@media (max-width: 899.98px) {
    .hm-why__grid {
        grid-template-areas: "text mascot" "features features";
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 0 16px;
    }

    .hm-why__mascot {
        width: min(100%, 190px);
        justify-self: center;
    }

    .hm-why__features {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-block: 26px 30px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
}

@media (max-width: 599.98px) {
    .hm-why__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 22px;
        padding-block: 8px 34px;
        border-top: 0;
    }

    .hm-why__feature:nth-child(4) {
        border-inline-start: 0;
    }
}

@media (max-width: 480px) {
    .hm-why__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .hm-why__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-why__feature, .hm-why__feature:nth-child(4) {
        border-inline-start: 0;
    }

    .hm-why__feature:nth-child(5) {
        grid-column: 1 / -1;
    }
}

/* ---------- Reviews / CTA ---------- */
.hm-reviews {
    padding-block: clamp(40px, 6vw, 72px);
}

.hm-reviews__grid {
    display: grid;
    grid-template-areas: "cta reviews slogan";
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.7fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
}

.hm-reviews__main {
    grid-area: reviews;
    min-width: 0;
}

.hm-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.hm-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    border-radius: 24px;
}

    .hm-track::-webkit-scrollbar {
        display: none;
    }

.hm-review {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 20px 22px;
    border-radius: 24px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 16px 40px -20px rgba(13, 35, 64, .3), 0 0 0 1px var(--line-light);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    min-height: 150px;
}

.hm-review__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hm-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(140deg, #1c447c, var(--navy));
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(255, 106, 0, .55);
}

.hm-review__name {
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.5;
}

.hm-stars {
    display: flex;
    gap: 2px;
    color: var(--orange);
    font-size: .85rem;
}

    .hm-stars .hm-ic {
        width: 1em;
        height: 1em;
    }

    .hm-stars .is-off {
        color: rgba(13, 35, 64, .18);
    }

.hm-review p {
    margin-top: 12px;
    font-size: .88rem;
    color: #3d4c63;
    line-height: 1.95;
}

.hm-cta {
    grid-area: cta;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 170px;
    padding: 18px 18px 0;
    border-radius: 26px;
    overflow: hidden;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 16px 40px -20px rgba(13, 35, 64, .3), 0 0 0 1px var(--line-light);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

    .hm-cta img {
        width: clamp(92px, 9vw, 130px);
        flex: none;
        margin-bottom: -2px;
        transition: transform .6s var(--ease);
    }

.hm-cta:hover img {
    transform: translateY(-4px) rotate(-1.5deg);
}

.hm-cta__body {
    align-self: center;
    padding-bottom: 18px;
}

.hm-cta h3 {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.7;
    margin-bottom: 12px;
}

.hm-slogan {
    grid-area: slogan;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .hm-slogan p {
        font-size: clamp(1.25rem, 2vw, 1.7rem);
        line-height: 1.7;
        color: rgba(13, 35, 64, .6);
        font-weight: 500;
        white-space: nowrap;
    }

    .hm-slogan img {
        width: clamp(120px, 14vw, 190px);
        aspect-ratio: 1.15;
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 20px 40px -18px rgba(13, 35, 64, .5);
    }

@media (max-width: 1023.98px) {
    .hm-reviews__grid {
        grid-template-areas: "reviews reviews" "cta slogan";
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hm-reviews__grid {
        grid-template-areas: "reviews" "cta" "slogan";
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-slogan {
        justify-content: center;
    }

    .hm-roundbtn {
        width: 34px;
        height: 34px;
    }

    .hm-slider {
        gap: 6px;
    }
}

/* ---------- Footer ---------- */
.hm-footer {
    position: relative;
    color: rgba(255, 255, 255, .8);
    background: radial-gradient(80% 120% at 85% 0, #0f2b52 0, #0a1c36 55%, #071528 100%);
    padding-top: clamp(36px, 5vw, 56px);
}

.hm-footer__grid {
    display: grid;
    grid-template-areas: "contact services links brand";
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(20px, 3vw, 44px);
}

.hm-footer h3 {
    font-size: .98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.hm-footer__brand {
    grid-area: brand;
}

    .hm-footer__brand img {
        height: 44px;
        width: auto;
    }

    .hm-footer__brand p {
        margin-top: 10px;
        font-size: .85rem;
        color: rgba(255, 255, 255, .7);
    }

.hm-footer__contact {
    grid-area: contact;
}

.hm-footer__services {
    grid-area: services;
}

.hm-footer__links {
    grid-area: links;
}

.hm-footer__col li + li {
    margin-top: 8px;
}

.hm-footer__col a {
    font-size: .86rem;
    color: rgba(255, 255, 255, .7);
    transition: color .25s;
}

    .hm-footer__col a:hover {
        color: var(--orange);
    }

.hm-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff !important;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-dark);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color .25s, translate .3s var(--ease);
}

    .hm-phone:hover {
        background: rgba(255, 255, 255, .14);
        translate: 0 -2px;
    }

    .hm-phone .hm-ic {
        color: var(--orange);
    }

    .hm-phone span {
        direction: ltr;
        unicode-bidi: isolate;
    }

.hm-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: .85rem;
    line-height: 1.8;
}

    .hm-info .hm-ic {
        color: var(--orange);
        margin-top: 4px;
    }

    .hm-info a {
        color: rgba(255, 255, 255, .85);
    }

        .hm-info a:hover {
            color: var(--orange);
        }

.hm-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.hm-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

    .hm-social a {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
        border: 1px solid var(--line-dark);
        transition: background-color .25s, translate .3s var(--ease);
    }

        .hm-social a:hover {
            background: rgba(255, 255, 255, .22);
            translate: 0 -3px;
        }

    .hm-social img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        border-radius: 5px;
    }

.hm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
}

.hm-totop {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    color: #fff;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, .06);
    transition: background-color .25s, translate .3s var(--ease);
}

    .hm-totop:hover {
        background: var(--orange);
        translate: 0 -3px;
    }

@media (max-width: 899.98px) {
    .hm-footer__grid {
        grid-template-areas: "brand brand" "contact contact" "services links";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .hm-footer__bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* Fallback when backdrop-filter is not supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hm-header {
        background: rgba(7, 21, 40, .92);
    }

    .hm-card, .hm-pack, .hm-review, .hm-cta {
        background: rgba(255, 255, 255, .96);
    }

    .hm-mobile__panel {
        background: rgba(10, 28, 54, .97);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html.hm-home {
        scroll-behavior: auto;
    }

    .hm-root *, .hm-root *::before, .hm-root *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    html.hm-js .hm-root [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- SEO text + FAQ ---------- */
.hm-seo__text { max-width: 860px; margin: 0 auto 2.5rem; text-align: center; line-height: 2; color: #34425a; }
.hm-seo__text p { margin: 0 0 1rem; }
.hm-faq { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.hm-faq__item { background: #fff; border: 1px solid rgba(13,35,64,.12); border-radius: 14px; padding: .9rem 1.2rem; }
.hm-faq__item summary { cursor: pointer; font-weight: 700; color: #0d2340; }
.hm-faq__item[open] summary { color: #ff6a00; }
.hm-faq__item p { margin: .7rem 0 0; line-height: 1.9; color: #34425a; }

/* ---------- Blog ---------- */
.hm-blog { padding-top: 7.5rem; }
.hm-blog--home { padding-top: 3rem; }
.hm-blog__lead { text-align: center; color: #34425a; margin: 0 0 2rem; }
.hm-blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.hm-blogcard { background: #fff; border: 1px solid rgba(13,35,64,.12); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.hm-blogcard h2, .hm-blogcard h3 { font-size: 1.1rem; margin: 0; line-height: 1.8; }
.hm-blogcard h2 a, .hm-blogcard h3 a { color: #0d2340; text-decoration: none; }
.hm-blogcard h2 a:hover, .hm-blogcard h3 a:hover { color: #ff6a00; }
.hm-blogcard p { margin: 0; color: #34425a; line-height: 1.9; }
.hm-blogcard .hm-btn { margin-top: auto; align-self: flex-start; }
.hm-blog__article { max-width: 820px; }
.hm-blog__crumb { font-size: .9rem; color: #5b6b85; margin-bottom: 1rem; }
.hm-blog__body { line-height: 2.1; color: #26344b; }
.hm-blog__body h2 { color: #0d2340; font-size: 1.3rem; margin: 2rem 0 .6rem; }
.hm-blog__body ul { padding-inline-start: 1.4rem; }
.hm-blog__body li { margin-bottom: .4rem; }
.hm-blog__cta { text-align: center; margin: 2.5rem 0; }
.hm-blog__more { font-size: 1.2rem; color: #0d2340; }
.hm-blog__list a { color: #0d2340; }
.hm-blog__list a:hover { color: #ff6a00; }


/* ---------- نماد اعتماد (اینماد) ---------- */
.hm-enamad { margin-top: 1rem; display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; line-height: 0; }
.hm-enamad img { max-height: 90px; width: auto; }
