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

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "InterLocal";
    src: url("/fonts/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "InterLocal";
    src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --fh-blue: #1a6bf0;
    --fh-blue-dark: #0f56ca;
    --fh-blue-soft: #edf5ff;
    --fh-ink: #0d1424;
    --fh-muted: #64748b;
    --fh-line: #e8edf4;
    --fh-surface: #ffffff;
    --fh-shadow: 0 24px 65px rgba(13, 20, 36, 0.14), 0 4px 16px rgba(13, 20, 36, 0.06);
}

.fh-header,
.fh-header *,
.fh-mobile-shell,
.fh-mobile-shell * {
    box-sizing: border-box;
}

.fh-header,
.fh-mobile-shell {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    color: var(--fh-ink);
}

html[dir="ltr"] .fh-header,
html[dir="ltr"] .fh-mobile-shell {
    font-family: "InterLocal", Arial, sans-serif;
}

.fh-skip-link {
    position: fixed;
    inset-block-start: 8px;
    inset-inline-start: 12px;
    z-index: 99999;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--fh-ink);
    color: #fff;
    font: 600 14px/1.5 "Vazirmatn", sans-serif;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.fh-skip-link:focus {
    transform: translateY(0);
}

.fh-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 9000;
    width: 100%;
    border-block-end: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(13, 20, 36, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.fh-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100% - 40px, 1240px);
    min-height: 72px;
    margin-inline: auto;
}

.fh-brand-cluster,
.fh-brand,
.fh-actions,
.fh-desktop-nav,
.fh-nav-trigger,
.fh-menu-card,
.fh-language summary,
.fh-language__list a,
.fh-mobile-panel__head,
.fh-mobile-direct,
.fh-mobile-group summary,
.fh-mobile-item,
.fh-mobile-panel__footer,
.fh-mobile-languages {
    display: flex;
    align-items: center;
}

.fh-brand-cluster {
    flex: 0 0 auto;
    gap: 8px;
}

.fh-brand {
    gap: 8px;
    color: var(--fh-ink);
    text-decoration: none;
    white-space: nowrap;
}

.fh-brand img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.fh-brand__text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

html[dir="ltr"] .fh-brand__text {
    letter-spacing: -0.35px;
}

.fh-desktop-nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.fh-nav-item {
    position: relative;
}

.fh-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #253149;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.fh-nav-link:hover,
.fh-nav-link:focus-visible,
.fh-nav-item.is-open > .fh-nav-link {
    outline: none;
    background: var(--fh-blue-soft);
    color: var(--fh-blue-dark);
}

.fh-nav-trigger svg,
.fh-language__chevron {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.fh-nav-item.is-open .fh-nav-trigger svg {
    transform: rotate(180deg);
}

.fh-panel {
    position: absolute;
    inset-block-start: calc(100% + 14px);
    left: 50%;
    z-index: 30;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: var(--fh-surface);
    box-shadow: var(--fh-shadow);
    --fh-panel-shift: 0px;
    transform: translateX(calc(-50% + var(--fh-panel-shift)));
    transform-origin: top center;
}

.fh-panel[hidden] {
    display: none;
}

.fh-panel:not([hidden]) {
    animation: fh-panel-in 170ms ease both;
}

.fh-panel--wide {
    width: min(810px, calc(100vw - 40px));
}

.fh-panel--medium {
    width: min(430px, calc(100vw - 40px));
}

.fh-panel__arrow {
    position: absolute;
    inset-block-start: -6px;
    left: calc(50% - 6px - var(--fh-panel-shift));
    width: 12px;
    height: 12px;
    border-block-start: 1px solid var(--fh-line);
    border-inline-start: 1px solid var(--fh-line);
    background: #fff;
    transform: rotate(45deg);
}

.fh-panel__layout {
    position: relative;
    display: block;
}

.fh-panel__layout--featured {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 12px;
}

html[dir="rtl"] .fh-panel__layout--featured {
    grid-template-columns: minmax(0, 1fr) 218px;
}

html[dir="rtl"] .fh-panel__layout--featured .fh-featured {
    grid-column: 2;
    grid-row: 1;
}

html[dir="rtl"] .fh-panel__layout--featured .fh-panel__sections {
    grid-column: 1;
    grid-row: 1;
}

.fh-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    overflow: hidden;
    padding: 22px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.4), transparent 30%),
        linear-gradient(145deg, #1a6bf0, #0d4fbd);
    color: #fff;
    text-decoration: none;
}

.fh-featured::before,
.fh-featured::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
}

.fh-featured::before {
    inset-block-start: -38px;
    inset-inline-end: -36px;
    width: 132px;
    height: 132px;
}

.fh-featured::after {
    inset-block-start: 14px;
    inset-inline-end: 8px;
    width: 72px;
    height: 72px;
}

.fh-featured__eyebrow {
    position: relative;
    z-index: 1;
    margin-block-end: auto;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 600;
}

.fh-featured strong {
    position: relative;
    z-index: 1;
    margin-block-start: 34px;
    font-size: 16px;
    line-height: 1.75;
}

.fh-featured small {
    position: relative;
    z-index: 1;
    margin-block-start: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.75;
}

.fh-featured__link {
    position: relative;
    z-index: 1;
    margin-block-start: 18px;
    font-size: 11.5px;
    font-weight: 700;
}

.fh-featured__link b {
    display: inline-block;
    margin-inline-start: 3px;
    font-size: 15px;
    transition: transform 150ms ease;
}

.fh-featured:hover .fh-featured__link b {
    transform: translateX(-3px);
}

html[dir="ltr"] .fh-featured__link b {
    transform: rotate(180deg);
}

html[dir="ltr"] .fh-featured:hover .fh-featured__link b {
    transform: rotate(180deg) translateX(-3px);
}

.fh-panel__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fh-panel--medium .fh-panel__sections {
    grid-template-columns: 1fr;
}

.fh-menu-section {
    min-width: 0;
    padding: 9px;
}

.fh-menu-section h2 {
    margin: 0 8px 7px;
    color: #8a96a8;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.fh-menu-section__items {
    display: grid;
    gap: 2px;
}

.fh-menu-card {
    gap: 10px;
    min-width: 0;
    padding: 9px;
    border-radius: 12px;
    color: var(--fh-ink);
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

.fh-menu-card:hover,
.fh-menu-card:focus-visible {
    outline: none;
    background: #f3f7fc;
    transform: translateY(-1px);
}

.fh-menu-card__icon,
.fh-mobile-item__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #dce9fc;
    border-radius: 10px;
    background: #f0f6ff;
    color: var(--fh-blue);
}

.fh-menu-card__icon svg,
.fh-mobile-item__icon svg {
    width: 18px;
    height: 18px;
}

.fh-menu-card__copy {
    display: block;
    min-width: 0;
}

.fh-menu-card strong,
.fh-mobile-item strong {
    display: block;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.65;
}

.fh-menu-card strong em,
.fh-mobile-item strong em {
    display: inline-flex;
    margin-inline-start: 4px;
    padding: 1px 5px;
    border-radius: 99px;
    background: #fff1d6;
    color: #9a5c00;
    font-size: 8px;
    font-style: normal;
    vertical-align: middle;
}

.fh-menu-card small,
.fh-mobile-item small {
    display: block;
    overflow: hidden;
    color: var(--fh-muted);
    font-size: 10.5px;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-actions {
    flex: 0 0 auto;
    gap: 8px;
}

.fh-language {
    position: relative;
}

.fh-language summary {
    justify-content: center;
    gap: 5px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--fh-line);
    border-radius: 11px;
    background: #fff;
    color: #465269;
    font-size: 11px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.fh-language summary::-webkit-details-marker {
    display: none;
}

.fh-language summary > svg:first-child {
    width: 17px;
    height: 17px;
}

.fh-language summary:hover,
.fh-language summary:focus-visible,
.fh-language[open] summary {
    outline: none;
    border-color: #bcd4fa;
    background: var(--fh-blue-soft);
    color: var(--fh-blue-dark);
}

.fh-language[open] .fh-language__chevron {
    transform: rotate(180deg);
}

.fh-language__list {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 40;
    width: 160px;
    padding: 6px;
    border: 1px solid var(--fh-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(13, 20, 36, 0.13);
    animation: fh-soft-in 160ms ease both;
}

.fh-language__list a {
    justify-content: space-between;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: #344056;
    font-size: 12px;
    text-decoration: none;
}

.fh-language__list a:hover,
.fh-language__list a:focus-visible,
.fh-language__list a[aria-current="page"] {
    outline: none;
    background: var(--fh-blue-soft);
    color: var(--fh-blue-dark);
}

.fh-language__list small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.fh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--fh-blue);
    border-radius: 11px;
    background: var(--fh-blue);
    box-shadow: 0 8px 20px rgba(26, 107, 240, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.fh-cta:hover,
.fh-cta:focus-visible {
    outline: none;
    border-color: var(--fh-blue-dark);
    background: var(--fh-blue-dark);
    box-shadow: 0 11px 24px rgba(26, 107, 240, 0.27);
    transform: translateY(-1px);
}

.fh-cta__short {
    display: none;
}

.fh-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--fh-line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.fh-mobile-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 3px auto;
    border-radius: 99px;
    background: var(--fh-ink);
}

.fh-mobile-toggle:hover,
.fh-mobile-toggle:focus-visible {
    outline: none;
    border-color: #bcd4fa;
    background: var(--fh-blue-soft);
}

.fh-mobile-shell[hidden] {
    display: none;
}

.fh-mobile-shell {
    position: fixed;
    inset: 0;
    z-index: 9500;
}

.fh-mobile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(6, 13, 27, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fh-fade-in 180ms ease both;
    cursor: default;
}

.fh-mobile-panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100% - 24px));
    max-width: 100%;
    overflow: hidden;
    border-inline-end: 1px solid var(--fh-line);
    background: #fff;
    box-shadow: 0 0 60px rgba(13, 20, 36, 0.2);
    animation: fh-drawer-in-rtl 220ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

html[dir="ltr"] .fh-mobile-panel {
    animation-name: fh-drawer-in-ltr;
}

.fh-mobile-panel__head {
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 18px;
    border-block-end: 1px solid var(--fh-line);
}

.fh-mobile-panel__head > div {
    display: grid;
    gap: 2px;
}

.fh-mobile-panel__head strong {
    font-size: 16px;
}

.fh-mobile-panel__head small {
    color: var(--fh-muted);
    font-size: 10px;
}

.fh-mobile-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--fh-line);
    border-radius: 11px;
    background: #fff;
    color: var(--fh-ink);
    cursor: pointer;
}

.fh-mobile-close svg,
.fh-mobile-direct svg,
.fh-mobile-group summary svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fh-mobile-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px 28px;
    overscroll-behavior: contain;
}

.fh-mobile-direct,
.fh-mobile-group summary {
    justify-content: space-between;
    min-height: 52px;
    padding: 0 12px;
    border-block-end: 1px solid #f0f3f7;
    color: var(--fh-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

.fh-mobile-direct:hover,
.fh-mobile-direct:focus-visible,
.fh-mobile-group summary:hover,
.fh-mobile-group summary:focus-visible {
    outline: none;
    color: var(--fh-blue-dark);
}

.fh-mobile-direct svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
}

html[dir="ltr"] .fh-mobile-direct svg {
    transform: none;
}

.fh-mobile-group summary::-webkit-details-marker {
    display: none;
}

.fh-mobile-group summary svg {
    width: 17px;
    height: 17px;
    transition: transform 160ms ease;
}

.fh-mobile-group[open] summary {
    color: var(--fh-blue-dark);
}

.fh-mobile-group[open] summary svg {
    transform: rotate(180deg);
}

.fh-mobile-group__body {
    padding: 7px 5px 13px;
    border-block-end: 1px solid #eef2f6;
    animation: fh-soft-in 160ms ease both;
}

.fh-mobile-group__body > p {
    margin: 12px 11px 5px;
    color: #8a96a8;
    font-size: 10px;
    font-weight: 600;
}

.fh-mobile-featured {
    display: grid;
    gap: 3px;
    margin: 4px 5px 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a6bf0, #0d4fbd);
    color: #fff;
    text-decoration: none;
}

.fh-mobile-featured strong {
    font-size: 12px;
    line-height: 1.65;
}

.fh-mobile-featured span {
    color: #dbeafe;
    font-size: 10px;
}

.fh-mobile-item {
    gap: 10px;
    min-width: 0;
    padding: 8px 7px;
    border-radius: 11px;
    color: var(--fh-ink);
    text-decoration: none;
}

.fh-mobile-item:hover,
.fh-mobile-item:focus-visible {
    outline: none;
    background: #f3f7fc;
}

.fh-mobile-item__icon {
    width: 34px;
    height: 34px;
}

.fh-mobile-item > span:last-child {
    min-width: 0;
}

.fh-mobile-panel__footer {
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-block-start: 1px solid var(--fh-line);
    background: #fff;
}

.fh-mobile-languages {
    flex: 0 0 auto;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--fh-line);
    border-radius: 10px;
}

.fh-mobile-languages a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 31px;
    border-radius: 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.fh-mobile-languages a[aria-current="page"] {
    background: var(--fh-blue-soft);
    color: var(--fh-blue-dark);
}

.fh-mobile-cta {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding-inline: 12px;
    border-radius: 10px;
    background: var(--fh-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

body.fh-scroll-lock {
    overflow: hidden !important;
}

/* The styles below are only for the isolated demo page. */
.fh-demo-page {
    min-height: 100%;
    margin: 0;
    background: #f7f9fc;
    color: var(--fh-ink);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

html[dir="ltr"] .fh-demo-page {
    font-family: "InterLocal", Arial, sans-serif;
}

.fh-demo-main {
    min-height: auto;
}

.fh-demo-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 20px 74px;
    background:
        radial-gradient(circle at 15% 20%, rgba(26, 107, 240, 0.13), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(44, 199, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #fff, #f7f9fc);
}

.fh-demo-hero::after {
    position: absolute;
    inset-block-start: 42px;
    inset-inline-end: 5%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(26, 107, 240, 0.1);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 50px rgba(26, 107, 240, 0.025), 0 0 0 100px rgba(26, 107, 240, 0.018);
}

.fh-demo-container {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    margin-inline: auto;
}

.fh-demo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-block-end: 20px;
    padding: 7px 11px;
    border: 1px solid #cfdef7;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.78);
    color: #245ca9;
    font-size: 11px;
    font-weight: 700;
}

.fh-demo-kicker::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    content: "";
}

.fh-demo-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.25;
    letter-spacing: -1.7px;
}

.fh-demo-hero h1 span {
    color: var(--fh-blue);
}

.fh-demo-hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #5c6980;
    font-size: clamp(14px, 2vw, 17px);
    line-height: 2;
}

.fh-demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-block-start: 28px;
}

.fh-demo-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dce4ef;
    border-radius: 11px;
    background: #fff;
    color: #3b4659;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.fh-demo-buttons a[aria-current="page"] {
    border-color: var(--fh-blue);
    background: var(--fh-blue);
    color: #fff;
}

.fh-demo-buttons .fh-demo-jump {
    border-color: #bcd4fa;
    background: var(--fh-blue-soft);
    color: var(--fh-blue-dark);
}

.fh-demo-buttons .fh-demo-jump:hover,
.fh-demo-buttons .fh-demo-jump:focus-visible {
    outline: none;
    border-color: var(--fh-blue);
    background: #fff;
}

.fh-demo-guide {
    padding: 0 20px 80px;
}

.fh-demo-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 980px);
    margin: -24px auto 0;
}

.fh-demo-card {
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--fh-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(13, 20, 36, 0.045);
}

.fh-demo-card b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-block-end: 14px;
    border-radius: 10px;
    background: var(--fh-blue-soft);
    color: var(--fh-blue);
    font-size: 13px;
}

.fh-demo-card h2 {
    margin: 0;
    font-size: 15px;
}

.fh-demo-card p {
    margin: 8px 0 0;
    color: var(--fh-muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.fh-demo-footer {
    padding: 24px 20px;
    border-block-start: 1px solid var(--fh-line);
    background: #fff;
    color: var(--fh-muted);
    font-size: 11px;
    text-align: center;
}

@keyframes fh-panel-in {
    from { opacity: 0; transform: translateX(calc(-50% + var(--fh-panel-shift))) translateY(-5px) scale(0.985); }
    to { opacity: 1; transform: translateX(calc(-50% + var(--fh-panel-shift))) translateY(0) scale(1); }
}

@keyframes fh-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fh-soft-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-drawer-in-rtl {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fh-drawer-in-ltr {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1160px) {
    .fh-header__inner {
        width: min(100% - 28px, 1180px);
        gap: 10px;
    }

    .fh-nav-link {
        padding-inline: 7px;
        font-size: 12.5px;
    }

    .fh-brand__text {
        font-size: 19px;
    }

    .fh-brand img {
        width: 44px;
        height: 44px;
    }

    .fh-cta {
        padding-inline: 12px;
        font-size: 11px;
    }
}

@media (max-width: 1080px) {
    .fh-header__inner {
        min-height: 66px;
    }

    .fh-desktop-nav {
        display: none;
    }

    .fh-mobile-toggle {
        display: block;
    }

    .fh-actions {
        margin-inline-start: auto;
    }

    .fh-brand img {
        width: 43px;
        height: 43px;
    }

    .fh-mobile-item small {
        display: none;
    }

}

@media (max-width: 660px) {
    .fh-header__inner {
        width: calc(100% - 20px);
        gap: 6px;
    }

    .fh-brand-cluster {
        gap: 5px;
        min-width: 0;
    }

    .fh-mobile-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .fh-brand {
        gap: 4px;
        min-width: 0;
    }

    .fh-brand img {
        width: 40px;
        height: 40px;
    }

    .fh-brand__text {
        font-size: 17px;
    }

    .fh-language {
        display: none;
    }

    .fh-cta {
        min-height: 40px;
        padding-inline: 11px;
        border-radius: 10px;
    }

    .fh-cta__full {
        display: none;
    }

    .fh-cta__short {
        display: inline;
    }

    .fh-demo-hero {
        padding-block: 58px 64px;
    }

    .fh-demo-hero::after {
        width: 180px;
        height: 180px;
    }

    .fh-demo-hero h1 {
        letter-spacing: -1px;
    }

    .fh-demo-guide__grid {
        grid-template-columns: 1fr;
        margin-block-start: -18px;
    }
}

@media (max-width: 390px) {
    .fh-brand__text {
        display: none;
    }

    .fh-mobile-panel__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .fh-mobile-languages {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fh-header *,
    .fh-mobile-shell *,
    .fh-demo-page * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ── گارد تدافعی: فقط خنثی‌سازی سلکتورهای عنصری قدیمی، بدون دست‌زدن به چیدمان ── */
header.fh-header {
    float: none;
    clear: both;
    width: auto;
    max-width: none;
    min-width: 0;
    transform: none;
    visibility: visible;
    opacity: 1;
}
