/* =====================================================================
   بهبودهای صفحه‌ی اصلی خودت روی همان قالب digital-agency
   (رنگ‌های قالب: زرد #e8d716 ، مشکی #202020)
   ===================================================================== */

:root {
    --kh-yellow: #e8d716;
    --kh-dark: #202020;
    --kh-ink: #2b2b2b;
    --kh-muted: #6b6f78;
}

/* تیترهای بخش «درباره» حالا h2 هستند (فقط یک h1 در صفحه)؛ ظاهر همان h1 قبلی */
.service-details .kh-h1 {
    margin-bottom: .5rem;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

.service-details .kh-h1 span { color: #202020; }

@media (max-width: 991.98px) { .service-details .kh-h1 { font-size: 45px; } }
@media (max-width: 767.98px) { .service-details .kh-h1 { font-size: 32px; } }

/* پس‌زمینه‌ی متحرک هیرو: تغییر خطوط نرم‌تر */
.banner-background #roof,
.banner-background #floor {
    transition: d .6s cubic-bezier(.4, 0, .2, 1);
}

/* آمار و دکمه‌های هیرو */
.kh-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.kh-hero-stats li {
    display: flex;
    flex-direction: column;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--kh-yellow);
}

.kh-hero-stats b { color: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.kh-hero-stats span { color: rgba(255, 255, 255, .75); font-size: .9rem; }

@media (max-width: 991.98px) { .kh-hero-stats { justify-content: center; } }

.kh-hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.kh-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid currentColor;
    border-radius: 40px;
    color: var(--kh-dark) !important;
    font-weight: 700;
    transition: background-color .2s, color .2s, transform .2s;
}

.kh-btn-ghost:hover {
    background: var(--kh-dark);
    color: var(--kh-yellow) !important;
    transform: translateY(-2px);
}

/* بازی پازل */
.kh-game-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

.kh-game-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--kh-muted);
    font-size: .88rem;
}

.kh-game-hint i { font-size: 20px; color: var(--kh-dark); }

.kh-game-actions { display: flex; gap: 8px; }

.kh-game-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 2px solid var(--kh-dark);
    border-radius: 30px;
    background: transparent;
    color: var(--kh-dark);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.kh-game-actions button:hover { background: var(--kh-dark); color: var(--kh-yellow); }
.kh-game-actions button:last-child { background: var(--kh-yellow); border-color: var(--kh-yellow); }
.kh-game-actions button:last-child:hover { background: var(--kh-dark); border-color: var(--kh-dark); }

.feature-container .piece { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

/* سرتیتر بخش‌های جدید (هم‌سبک skill-sec) */
.kh-head { max-width: 760px; margin: 0 auto 50px; }

.kh-head .sub-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--kh-dark);
}

.kh-head .title,
.kh-dev .title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--kh-dark);
    margin-bottom: 16px;
}

.kh-head p { color: var(--kh-muted); font-size: 1.05rem; }

@media (max-width: 767.98px) {
    .kh-head .title,
    .kh-dev .title { font-size: 1.7rem; }
}

/* ماژول‌ها */
.kh-modules { padding: 110px 0 80px; background: #f7f7f2; }

.kh-module {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25);
    transition: transform .3s, box-shadow .3s;
}

.kh-module:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .3); }
.kh-module__head { display: flex; gap: 18px; align-items: flex-start; }

.kh-module__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--kh-yellow);
    color: var(--kh-dark);
    font-size: 34px;
}

.kh-module h3 { margin: 4px 0 6px; color: var(--kh-dark); font-size: 1.35rem; font-weight: 700; }
.kh-module__head p { margin: 0; color: var(--kh-muted); }
.kh-module ul { margin: 22px 0; padding: 0; list-style: none; }
.kh-module li { display: flex; gap: 8px; padding: 5px 0; color: var(--kh-ink); }
.kh-module li i { color: #18a058; font-size: 20px; margin-top: 3px; }

.kh-module__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed #e2e2da;
    font-weight: 700;
    color: var(--kh-dark);
}

.kh-module__foot a { color: var(--kh-dark); border-bottom: 2px solid var(--kh-yellow); }

/* توسعه‌دهندگان */
.kh-dev {
    position: relative;
    padding: 110px 0;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(232, 215, 22, .18), transparent 60%),
        var(--kh-dark);
    color: #cfd2d8;
}

.kh-dev .sub-title { color: var(--kh-yellow); font-weight: 600; margin-bottom: 14px; }
.kh-dev .title { color: #fff; }
.kh-dev p { color: #cfd2d8; font-size: 1.02rem; }
.kh-dev b { color: #fff; }
.kh-dev__list { margin: 22px 0 30px; padding: 0; list-style: none; }
.kh-dev__list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.kh-dev__list i { color: var(--kh-yellow); font-size: 22px; }

.kh-code {
    margin: 40px 0 0;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: #0d0d0d;
    color: #e5e7eb;
    font-size: .88rem;
    line-height: 1.85;
    overflow-x: auto;
    text-align: left;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

.kh-code .c { color: #6b7280; }
.kh-code .k { color: #c084fc; }
.kh-code .m { color: var(--kh-yellow); }
.kh-code .s { color: #86efac; }

@media (min-width: 992px) { .kh-code { margin-top: 0; } }

/* سوالات متداول */
.kh-faq { padding: 110px 0 80px; }
.kh-faq__list { max-width: 860px; margin: 0 auto; }

.kh-faq details {
    margin-bottom: 14px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fff;
    transition: box-shadow .25s, border-color .25s;
}

.kh-faq details[open] { border-color: var(--kh-yellow); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .25); }

.kh-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    color: var(--kh-dark);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}

.kh-faq summary::-webkit-details-marker { display: none; }

.kh-faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--kh-yellow);
    color: var(--kh-dark);
    font-size: 1.3rem;
    transition: transform .25s;
}

.kh-faq details[open] summary::after { transform: rotate(45deg); }
.kh-faq details p { margin: 0; padding: 0 24px 22px; color: var(--kh-muted); line-height: 2; }

/* دسترس‌پذیری: حرکت کمتر */
@media (prefers-reduced-motion: reduce) {
    .banner-background #roof,
    .banner-background #floor,
    .feature-container .piece,
    .kh-module { transition: none !important; }
}

/* =====================================================================
   رفع باگ هیرو: ارتفاع ثابت 100vh باعث بیرون‌زدن محتوا روی بخش زرد می‌شد
   ===================================================================== */
/* z-index خودکار: مثلث کج بالای بخش زرد (#about-header-svg) باید روی پایین هیرو دیده شود */
.banner {
    position: relative;
    z-index: auto !important;
    overflow: hidden;
}

.banner .banner-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-background svg {
    height: 100% !important;
    min-height: 100vh;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner .banner-row {
    height: auto !important;
    min-height: 100vh;
    width: auto !important;
    margin: 0 !important;
    padding-top: 140px !important;
    padding-bottom: 230px;
    align-items: center;
    justify-content: center;
    row-gap: 40px;
}

/* دو باکس هیرو وسط صفحه و هم‌عرض */
.banner-text-left,
.banner-text-right {
    width: 100%;
    max-width: 540px;
    margin: 0 auto !important;
    transition: transform .25s ease-out;
    will-change: transform;
}

.banner-text-left h1 { margin-top: 0 !important; }

@media (max-width: 991.98px) {
    .banner .banner-row { padding-top: 120px !important; padding-bottom: 160px; }
    .banner-text-right { transform: none !important; }
}

/* =====================================================================
   بخش زرد (درباره) — بازطراحی با موشن
   ===================================================================== */
.kh-about {
    --y: #e8d716;
    --y2: #f4c22b;
    position: relative;
    padding: 130px 0 0;
    background: var(--y);
    color: #202020;
    overflow: visible;
    isolation: isolate;
}

.kh-about #about-header-svg { position: absolute; left: 0; right: 0; top: -200px; height: 200px; transform: rotateY(-180deg); z-index: 11; }
.kh-about .kh-about__bottom { position: relative; display: block; height: 160px; margin-top: -1px; transform: rotateY(-180deg); }

/* ---------- پس‌زمینه */
.kh-about__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }

.kh-blob {
    position: absolute;
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: kh-blob 18s ease-in-out infinite alternate;
}

.kh-blob--1 { top: -10%; right: -8%; background: #fff7a8; }
.kh-blob--2 { bottom: 5%; left: -12%; background: var(--y2); animation-duration: 22s; animation-delay: -6s; }
.kh-blob--3 { top: 35%; left: 35%; width: 30vw; height: 30vw; background: #fffbe0; opacity: .4; animation-duration: 26s; animation-delay: -12s; }

@keyframes kh-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6%, 8%) scale(1.12); }
    100% { transform: translate(8%, -6%) scale(.92); }
}

.kh-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(32, 32, 32, .14) 1.2px, transparent 1.3px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
    animation: kh-dots 40s linear infinite;
}

@keyframes kh-dots { to { background-position: 260px 260px; } }

.kh-shape {
    --py: 0px;
    position: absolute;
    transform: translateY(var(--py));
    transition: transform .2s linear;
}

.kh-shape::after { content: ""; position: absolute; inset: 0; animation: kh-spin 16s linear infinite; }

.kh-shape--ring { top: 14%; left: 8%; width: 90px; height: 90px; }
.kh-shape--ring::after { border: 10px solid rgba(32, 32, 32, .9); border-radius: 50%; border-right-color: transparent; }
.kh-shape--square { bottom: 26%; right: 4%; width: 54px; height: 54px; }
.kh-shape--square::after { border: 3px solid #202020; border-radius: 12px; animation-duration: 12s; animation-direction: reverse; }
.kh-shape--plus { top: 8%; right: 42%; font-size: 64px; font-weight: 300; line-height: 1; color: #202020; }
.kh-shape--plus::after { display: none; }
.kh-shape--dot { bottom: 18%; left: 44%; width: 18px; height: 18px; border-radius: 50%; background: #202020; }
.kh-shape--dot::after { display: none; }
.kh-shape--tri { top: 58%; left: 4%; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid #fff; opacity: .8; }
.kh-shape--tri::after { display: none; }

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

/* ---------- چیدمان */
.kh-about__inner { position: relative; }

.kh-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
    padding-bottom: 70px;
}

@media (max-width: 991.98px) {
    .kh-about__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; text-align: center; }
    .kh-about { padding-top: 90px; }
}

.kh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #202020;
    color: var(--y);
    font-size: .85rem;
    font-weight: 700;
}

.kh-about__title {
    margin: 22px 0 0;
    color: #202020;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    font-weight: 800;
    line-height: 1.45;
}

.kh-about__title mark {
    position: relative;
    padding: 0 6px;
    background: none;
    color: #202020;
    white-space: nowrap;
}

.kh-about__title mark::before {
    content: "";
    position: absolute;
    inset: 55% -2px 6% -2px;
    z-index: -1;
    border-radius: 6px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .8s cubic-bezier(.7, 0, .2, 1) .9s;
}

.kh-about__title.is-in mark::before { transform: scaleX(1); }

.kh-about__lead {
    margin: 22px 0 0;
    color: rgba(32, 32, 32, .82);
    font-size: 1.05rem;
    line-height: 2.1;
}

/* کلمه‌به‌کلمه */
.kh-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(.8em) rotate(4deg);
    filter: blur(6px);
    transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s;
    transition-delay: calc(var(--i, 0) * 60ms);
}

.is-in .kh-word { opacity: 1; transform: none; filter: none; }

/* ظاهر شدن عمومی */
.kh-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--d, 0s);
}

.kh-reveal.is-in { opacity: 1; transform: none; }

/* شمارنده‌ها */
.kh-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.kh-counters > div {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1.5px solid rgba(32, 32, 32, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.kh-counters b { color: #202020; font-size: 2rem; font-weight: 900; line-height: 1.2; }
.kh-counters span { color: rgba(32, 32, 32, .7); font-size: .85rem; }

/* دکمه‌ها */
.kh-about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 991.98px) { .kh-about__cta, .kh-counters { justify-content: center; } }

.kh-btn-dark {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    overflow: hidden;
    border-radius: 999px;
    background: #202020;
    color: var(--y) !important;
    font-weight: 800;
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
    transition: transform .3s, box-shadow .3s;
}

.kh-btn-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(120%);
    transition: transform .8s;
}

.kh-btn-dark:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -14px rgba(0, 0, 0, .7); }
.kh-btn-dark:hover::before { transform: translateX(-120%); }
.kh-btn-dark i { transition: transform .3s; }
.kh-btn-dark:hover i { transform: translate(-4px, 4px); }

.kh-btn-line {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid #202020;
    border-radius: 999px;
    color: #202020 !important;
    font-weight: 800;
    transition: background-color .25s, color .25s;
}

.kh-btn-line:hover { background: #202020; color: var(--y) !important; }

/* ---------- کارت‌های سه‌بعدی */
.kh-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    perspective: 1200px;
}

.kh-cards .kh-card:nth-child(even) { margin-top: 44px; }

@media (max-width: 575.98px) {
    .kh-cards { grid-template-columns: minmax(0, 1fr); }
    .kh-cards .kh-card:nth-child(even) { margin-top: 0; }
}

.kh-card {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    position: relative;
    padding: 30px 26px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 26px;
    background: linear-gradient(160deg, #2a2a2a, #161616);
    color: #c9cbd1;
    text-align: right;
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8);
    transform-style: preserve-3d;
}

.kh-card.kh-reveal { transform: translateY(50px) rotateX(18deg); }
.kh-card.kh-reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.kh-card.is-tilt { transition: transform .12s linear, opacity .8s; }
.kh-card:not(.is-tilt).is-in { transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .8s; }

.kh-card__glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(232, 215, 22, .22), transparent 45%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.kh-card:hover .kh-card__glare { opacity: 1; }

.kh-card__icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--y);
    color: #202020;
    font-size: 32px;
    transform: translateZ(40px);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.kh-card:hover .kh-card__icon { transform: translateZ(60px) rotate(-8deg) scale(1.08); }

.kh-card__orbit {
    position: absolute;
    inset: -9px;
    border: 1.5px dashed rgba(232, 215, 22, .6);
    border-radius: 26px;
    animation: kh-spin 14s linear infinite;
}

.kh-card h3 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    transform: translateZ(30px);
}

.kh-card p { margin: 0; font-size: .9rem; line-height: 1.95; transform: translateZ(20px); }

.kh-card__num {
    position: absolute;
    top: 14px;
    left: 20px;
    color: rgba(255, 255, 255, .06);
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1;
    transition: color .4s;
}

.kh-card:hover .kh-card__num { color: rgba(232, 215, 22, .22); }

/* ---------- نوار متحرک */
.kh-marquee {
    position: relative;
    margin: 10px -3vw 0;
    padding: 16px 0;
    overflow: hidden;
    background: #202020;
    transform: rotate(-2deg);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

.kh-marquee__track {
    display: flex;
    gap: 46px;
    width: max-content;
    animation: kh-marquee 38s linear infinite;
}

.kh-marquee:hover .kh-marquee__track { animation-play-state: paused; }

.kh-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.kh-marquee i { color: var(--y); font-size: 1.1rem; animation: kh-spin 6s linear infinite; }

@keyframes kh-marquee { to { transform: translateX(50%); } }

/* ---------- حرکت کمتر */
@media (prefers-reduced-motion: reduce) {
    .kh-about *, .kh-about *::before, .kh-about *::after { animation: none !important; transition: none !important; }
    .kh-word, .kh-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
    .kh-about__title mark::before { transform: scaleX(1); }
}

/* =====================================================================
   بخش سوم: توانمندی‌ها + پازل (بازطراحی)
   ===================================================================== */
.kh-skill {
    position: relative;
    padding: 110px 0 120px;
    overflow: hidden;
    background: #fbfbf7;
    isolation: isolate;
}

.kh-skill__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.kh-skill__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    animation: kh-blob 20s ease-in-out infinite alternate;
}

.kh-skill__glow--1 { top: -160px; left: -120px; background: #f6e65c; }
.kh-skill__glow--2 { bottom: -200px; right: -140px; background: #bfe9ff; animation-delay: -8s; }

.kh-skill__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 32, 32, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 32, 32, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.kh-skill__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

@media (max-width: 991.98px) {
    .kh-skill__layout { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .kh-skill__text { text-align: center; }
}

.kh-chip--light { background: #fff; color: #202020; border: 1px solid #ecebdf; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .3); }
.kh-chip--light i { color: #c9b800; }

.kh-skill__title {
    margin: 20px 0 0;
    color: #202020;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.5;
}

.kh-skill__title span {
    background: linear-gradient(90deg, #202020, #6b5f00, #202020);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: kh-shine 6s linear infinite;
}

@keyframes kh-shine { to { background-position: -200% center; } }

.kh-skill__lead {
    margin: 18px 0 0;
    color: #5d616b;
    font-size: 1.02rem;
    line-height: 2.1;
}

/* نوارهای توانمندی */
.kh-meters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.kh-meter__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #202020;
    font-weight: 700;
}

.kh-meter__head span { display: inline-flex; align-items: center; gap: 8px; }

.kh-meter__head i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #202020;
    color: #e8d716;
    font-size: 18px;
}

.kh-meter__head b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.kh-meter__track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ecebe2;
}

.kh-meter__fill {
    position: absolute;
    inset: 0 0 0 auto;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(270deg, #f3e04a, #e8d716 50%, #c9b800);
    box-shadow: 0 0 18px rgba(232, 215, 22, .6);
    transition: width 1.8s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--d, 0s) + .2s);
}

.kh-meter__fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: translateX(100%);
    animation: kh-sweep 2.6s ease-in-out infinite;
}

@keyframes kh-sweep { 60%, 100% { transform: translateX(-100%); } }

.kh-meter.is-in .kh-meter__fill { width: var(--v); }

/* قاب پازل */
.kh-puzzle { position: relative; }

.kh-puzzle__frame {
    position: relative;
    padding: 2px;
    border-radius: 30px;
    background: conic-gradient(from var(--kh-angle, 0deg), #e8d716, #202020, #5ec8ff, #e8d716);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
    animation: kh-border 6s linear infinite;
}

@property --kh-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes kh-border { to { --kh-angle: 360deg; } }

.kh-puzzle__frame > * { position: relative; z-index: 1; }

.kh-puzzle__frame::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 0;
    border-radius: 28px;
    background: linear-gradient(160deg, #1f1f1f, #121212);
}

.kh-puzzle__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.kh-puzzle__bar b { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.kh-puzzle__bar b i { color: #e8d716; font-size: 20px; }
.kh-puzzle__dots { display: inline-flex; gap: 6px; direction: ltr; }
.kh-puzzle__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.kh-puzzle__dots i:nth-child(2) { background: #febc2e; }
.kh-puzzle__dots i:nth-child(3) { background: #28c840; }

.kh-puzzle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: #e8d716;
    color: #202020;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.kh-puzzle__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(232, 215, 22, .9); }
.kh-puzzle__btn i { transition: transform .4s; }
.kh-puzzle__btn:hover i { transform: rotate(180deg); }

.kh-puzzle__stage {
    display: flex;
    justify-content: center;
    padding: 26px 18px 10px;
    perspective: 1000px;
}

.kh-puzzle__stage #game-container { margin: 0 auto; }

.kh-puzzle__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 6px 18px 20px;
    color: #a3a6ad;
    font-size: .84rem;
    text-align: center;
}

.kh-puzzle__hint i { color: #e8d716; font-size: 20px; animation: kh-tap 1.8s ease-in-out infinite; }

@keyframes kh-tap { 50% { transform: translateY(-4px) rotate(-10deg); } }

.kh-puzzle.kh-reveal { transform: translateY(40px) scale(.96); }
.kh-puzzle.kh-reveal.is-in { transform: none; }

/* =====================================================================
   فوتر جدید
   ===================================================================== */
.kh-footer {
    position: relative;
    padding: 0 0 26px;
    overflow: hidden;
    background: #121212;
    color: #a3a6ad;
}

.kh-footer__edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    fill: #e8d716;
    transform: translateY(-1px) scaleY(-1);
}

.kh-footer__mark {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .025);
    font-size: clamp(8rem, 26vw, 22rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.kh-footer .container { position: relative; }

.kh-footer__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 110px;
    padding: 34px 38px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(232, 215, 22, .12), rgba(255, 255, 255, .02));
}

.kh-footer__cta h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.kh-footer__cta h2 span { color: #e8d716; }
.kh-footer__cta p { margin: 6px 0 0; color: #a3a6ad; }
.kh-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kh-btn-yellow,
.kh-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .25s, box-shadow .25s, background-color .25s;
}

.kh-btn-yellow { background: #e8d716; color: #202020 !important; box-shadow: 0 14px 30px -14px rgba(232, 215, 22, .8); }
.kh-btn-glass { border: 1px solid rgba(255, 255, 255, .16); color: #fff !important; background: rgba(255, 255, 255, .04); }
.kh-btn-yellow:hover,
.kh-btn-glass:hover { transform: translateY(-3px); }
.kh-btn-glass:hover { background: rgba(255, 255, 255, .1); }

.kh-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 991.98px) {
    .kh-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .kh-footer__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .kh-footer__cta { padding: 26px 22px; text-align: center; justify-content: center; }
    .kh-footer__col a, .kh-footer__col span { justify-content: center; }
}

.kh-footer__brand p { margin: 16px 0 0; line-height: 2; font-size: .93rem; }

.kh-footer__social { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 575.98px) { .kh-footer__social { justify-content: center; } }

.kh-footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: #fff;
    font-size: 21px;
    transition: transform .25s, background-color .25s, color .25s, border-color .25s;
}

.kh-footer__social a:hover { transform: translateY(-4px); background: #e8d716; border-color: #e8d716; color: #202020; }

.kh-footer__col { display: flex; flex-direction: column; gap: 10px; }

.kh-footer__col h3 {
    position: relative;
    margin: 0 0 10px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.kh-footer__col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: #e8d716;
    transition: width .4s;
}

.kh-footer__col:hover h3::after { width: 60px; }
@media (max-width: 575.98px) { .kh-footer__col h3::after { right: 50%; transform: translateX(50%); } }

.kh-footer__col a,
.kh-footer__col span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a3a6ad;
    font-size: .93rem;
    transition: color .2s, transform .2s;
}

.kh-footer__col a:hover { color: #e8d716; transform: translateX(-4px); }
.kh-footer__col i { color: #e8d716; font-size: 18px; }

.kh-trust {
    display: grid;
    place-items: center;
    width: 132px;
    min-height: 132px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8);
    transition: transform .3s;
}

.kh-trust:hover { transform: translateY(-4px) rotate(-1deg); }
.kh-trust img { display: block; max-width: 110px; height: auto; }
.kh-footer__trust small { color: #7d8089; font-size: .78rem; }
@media (max-width: 575.98px) { .kh-trust { margin: 0 auto; } }

.kh-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .86rem;
}

.kh-heart { color: #ff5a5f; font-style: normal; display: inline-block; animation: kh-beat 1.4s ease-in-out infinite; }
@keyframes kh-beat { 15%, 45% { transform: scale(1.25); } 30% { transform: scale(1); } }

.kh-top {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e8d716;
    color: #202020 !important;
    font-size: 20px;
    transition: transform .25s;
}

.kh-top:hover { transform: translateY(-4px); }

.kh-footer.kh-reveal,
.kh-footer { opacity: 1; }
.kh-footer .kh-footer__cta { transform: translateY(30px); opacity: 0; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.kh-footer.is-in .kh-footer__cta { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .kh-skill *, .kh-footer *, .kh-skill *::before, .kh-footer *::before, .kh-skill *::after { animation: none !important; transition: none !important; }
    .kh-meter .kh-meter__fill { width: var(--v); }
    .kh-footer .kh-footer__cta { opacity: 1; transform: none; }
}

/* =====================================================================
   هدر جدید: نوار بالا + منوی شیشه‌ای چسبان با خط فعال متحرک
   ===================================================================== */
.fixed-nav-on-scroll,
.sidemenu_btn { display: none !important; }

header.kh-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    pointer-events: none;
}

.kh-header > * { pointer-events: auto; }

.kh-topbar {
    max-height: 40px;
    overflow: hidden;
    background: rgba(18, 18, 18, .55);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    transition: max-height .35s ease, opacity .3s;
}

.kh-topbar__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 40px;
    font-size: .82rem;
}

.kh-topbar a,
.kh-topbar span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .82) !important; }
.kh-topbar a:hover { color: #e8d716 !important; }
.kh-topbar i { color: #e8d716; font-size: 16px; }
.kh-topbar__note { margin-inline-start: auto; }

.kh-header.is-scrolled .kh-topbar { max-height: 0; opacity: 0; }

@media (max-width: 767.98px) {
    .kh-topbar__note, .kh-topbar__mail { display: none !important; }
}

.kh-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding: 9px 10px 9px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(20, 20, 20, .32);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
            backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
    transition: background-color .35s, margin .35s, box-shadow .35s, padding .35s;
}

.kh-header.is-scrolled .kh-nav {
    margin-top: 10px;
    background: rgba(18, 18, 18, .86);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
}

.kh-nav__brand img { display: block; height: 38px; width: auto; transition: transform .3s; }
.kh-nav__brand:hover img { transform: rotate(-4deg) scale(1.05); }

.kh-nav__links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-nav__links a {
    position: relative;
    display: block;
    padding: 9px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .82) !important;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}

.kh-nav__links a:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
.kh-nav__links a.is-active { color: #e8d716 !important; }

.kh-nav__ink {
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 3px;
    width: 0;
    border-radius: 3px;
    background: #e8d716;
    box-shadow: 0 0 12px rgba(232, 215, 22, .8);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.3, 1.3, .5, 1), width .4s cubic-bezier(.3, 1.3, .5, 1), opacity .3s;
}

.kh-nav__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.kh-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 700;
    transition: background-color .2s;
}

.kh-nav__login:hover { background: rgba(255, 255, 255, .08); }
.kh-nav__login i { font-size: 20px; }

.kh-nav__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 11px 20px;
    border-radius: 16px;
    background: #e8d716;
    color: #202020 !important;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 24px -10px rgba(232, 215, 22, .9);
    transition: transform .25s, box-shadow .25s;
}

.kh-nav__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(120%);
    animation: kh-cta-shine 4s ease-in-out infinite;
}

@keyframes kh-cta-shine { 60%, 100% { transform: translateX(-120%); } }

.kh-nav__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(232, 215, 22, 1); }
.kh-nav__cta i { transition: transform .3s; }
.kh-nav__cta:hover i { transform: translate(-3px, -3px); }

.kh-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.kh-nav__burger span { height: 2px; border-radius: 2px; background: #fff; transition: width .3s; }
.kh-nav__burger span:nth-child(2) { width: 70%; }
.kh-nav__burger:hover span:nth-child(2) { width: 100%; }

@media (max-width: 1199.98px) {
    .kh-nav__links a { padding: 9px 10px; font-size: .9rem; }
}

@media (max-width: 991.98px) {
    .kh-nav__links { display: none; }
    .kh-nav__burger { display: flex; }
    .kh-nav { padding: 8px 8px 8px 14px; }
}

@media (max-width: 575.98px) {
    .kh-nav__login span { display: none; }
    .kh-nav__cta { padding: 10px 14px; }
    .kh-nav__cta i { display: none; }
    .kh-nav__brand img { height: 32px; }
}

/* =====================================================================
   هیرو: موج تعاملی و صحنه‌ی ربات
   ===================================================================== */
.kh-waves {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.banner .container { z-index: 2; }

.kh-robot-stage {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 26px;
    height: 200px;
    z-index: 12;
    pointer-events: none;
}

.kh-robot-stage .kdr-bot { pointer-events: auto; }

@media (max-width: 991.98px) {
    .kh-robot-stage { bottom: 14px; height: 150px; left: 3%; right: 3%; }
}

/* =====================================================================
   رفع: نوار متحرک بخش زرد صفحه را پهن‌تر می‌کرد (صفحه کج/جابه‌جا می‌شد)
   ===================================================================== */
html, body { overflow-x: clip; }
.kh-about { overflow-x: clip; }

/* آیکون‌های دوتونه‌ی Phosphor در متن راست‌به‌چپ دو لایه‌شان از هم جدا می‌شد */
.ph-duotone { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* =====================================================================
   هیرو: صحنه‌ی غروب زنده (khodet-scene.js) + ربات روی خط زمین
   --kh-ground: فاصله‌ی خط زمین از پایین هیرو (بالای مثلث زرد بخش بعد)
   ===================================================================== */
.banner { --kh-ground: 200px; background: #2a1650; }
.banner-background, .kh-waves { display: none !important; }

.kh-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.banner .container { z-index: 2; }
.banner-text-left h1,
.banner-text-left p,
.kh-hero-stats { text-shadow: 0 2px 18px rgba(40, 10, 60, .55); }

.kh-robot-stage {
    left: 4% !important;
    right: 4% !important;
    bottom: calc(var(--kh-ground) - 4px) !important;
    height: 190px !important;
}

@media (max-width: 991.98px) {
    .banner .banner-row { padding-bottom: 340px !important; }
}

/* =====================================================================
   منو: جای کافی برای همه‌چیز، بدون شکستن خط
   ===================================================================== */
.kh-nav { flex-wrap: nowrap; min-height: 64px; }
.kh-nav__brand { flex: none; }
.kh-nav__links { flex: 1 1 auto; justify-content: center; min-width: 0; }
.kh-nav__actions { flex: none; flex-wrap: nowrap; }

.kh-nav__login,
.kh-nav__cta { flex-wrap: nowrap; white-space: nowrap; line-height: 1; }

.kh-nav__login i,
.kh-nav__cta i { position: static; flex: none; }

.kh-nav__login {
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 10px 16px;
}

@media (max-width: 1399.98px) {
    .kh-topbar__note { display: none !important; }
    .kh-nav__links a { padding: 9px 11px; }
}

/* زیر ۱۲۰۰ فضای کافی نیست: منو به دکمه‌ی همبرگری می‌رود */
@media (max-width: 1199.98px) {
    .kh-nav__links { display: none; }
    .kh-nav__burger { display: flex; }
}

@media (max-width: 575.98px) {
    .kh-nav { gap: 10px; padding: 7px 7px 7px 12px; min-height: 56px; }
    .kh-nav__login { padding: 10px; border-radius: 12px; }
    .kh-nav__actions { gap: 6px; }
}

/* متن هیرو روی آسمان غروب */
.kh-scene { width: 100%; height: 100%; }
.banner-text-left h1 { color: #fff !important; }
.banner-text-left p { color: rgba(255, 255, 255, .85) !important; }

/* =====================================================================
   تماس با ما + موقعیت ما (بازطراحی)
   ===================================================================== */
.contact-sec { display: none !important; }

.kh-contact {
    position: relative;
    padding: 110px 0 150px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfaf3 0%, #f4f1e2 100%);
    isolation: isolate;
}

.kh-contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kh-contact__bg .kh-blob--1 { top: -20%; left: -10%; right: auto; background: #fff3a0; opacity: .7; }
.kh-contact__bg .kh-blob--2 { bottom: -30%; right: -10%; left: auto; background: #ffe066; opacity: .45; }

.kh-contact__grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(32, 32, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 32, 32, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.kh-contact__head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.kh-contact__head h2 { margin: 16px 0 10px; color: #202020; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.kh-contact__head h2 span { position: relative; z-index: 0; white-space: nowrap; }
.kh-contact__head h2 span::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 14px; border-radius: 6px; background: #e8d716; z-index: -1; }
.kh-contact__head p { margin: 0; color: #6b6f78; font-size: 1.05rem; line-height: 2; }

.kh-chip--dark { background: #202020 !important; color: #e8d716 !important; }

.kh-contact__layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; }

/* ---------- فرم */
.kh-cform {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(32, 32, 32, .06);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -36px rgba(60, 50, 0, .35);
}

.kh-cform.is-shake { animation: kh-shake .45s; }
@keyframes kh-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.kh-cform__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.kh-cform__topics legend { width: 100%; margin-bottom: 10px; color: #202020; font-size: .95rem; font-weight: 800; }
.kh-topic { margin: 0; cursor: pointer; }
.kh-topic input { position: absolute; opacity: 0; pointer-events: none; }

.kh-topic span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #e6e3d4;
    border-radius: 999px;
    background: #fff;
    color: #4a4d55;
    font-size: .86rem;
    font-weight: 700;
    transition: all .25s cubic-bezier(.3, 1.4, .5, 1);
}

.kh-topic span i { font-size: 17px; color: #b59c00; }
.kh-topic:hover span { border-color: #e8d716; transform: translateY(-2px); }
.kh-topic input:checked + span { border-color: #202020; background: #202020; color: #e8d716; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.kh-topic input:checked + span i { color: #e8d716; }
.kh-topic input:focus-visible + span { outline: 3px solid rgba(232, 215, 22, .6); outline-offset: 2px; }

.kh-cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.kh-field { position: relative; }
.kh-field--full { grid-column: 1 / -1; }

.kh-field input,
.kh-field textarea {
    display: block;
    width: 100%;
    padding: 26px 16px 10px;
    border: 1.5px solid #e6e3d4;
    border-radius: 16px;
    background: #fff;
    color: #202020;
    font-size: .98rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.kh-field textarea { min-height: 150px; resize: none; line-height: 1.9; }
.kh-field input[dir="ltr"] { text-align: right; }

.kh-field label {
    position: absolute;
    top: 18px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #8a8d96;
    font-size: .95rem;
    pointer-events: none;
    transition: top .2s, font-size .2s, color .2s;
}

.kh-field label i { font-size: 18px; color: #b59c00; }

.kh-field input:focus,
.kh-field textarea:focus { border-color: #202020; box-shadow: 0 0 0 4px rgba(232, 215, 22, .35); }

.kh-field input:focus + label,
.kh-field input:not(:placeholder-shown) + label,
.kh-field textarea:focus + label,
.kh-field textarea:not(:placeholder-shown) + label { top: 7px; font-size: .74rem; color: #202020; font-weight: 700; }

.kh-field.is-error input,
.kh-field.is-error textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.kh-field__err:empty { display: none; }
.kh-field__err { display: block; margin-top: 4px; color: #e5484d; font-size: .78rem; font-weight: 600; }
.kh-field__count { position: absolute; left: 14px; bottom: 26px; color: #a3a6ad; font-size: .74rem; pointer-events: none; }

.kh-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kh-cform__foot { display: flex; align-items: center; gap: 18px; }
.kh-cform__hint { display: flex; gap: 6px; margin: 0; color: #7a7d86; font-size: .8rem; line-height: 1.8; }
.kh-cform__hint i { flex: none; color: #18a058; font-size: 18px; }

.kh-cform__send {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
    padding: 15px 30px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #202020;
    color: #e8d716;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7);
    transition: transform .25s, box-shadow .25s, color .25s;
}

.kh-cform__send::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #e8d716;
    transform: translateY(101%);
    transition: transform .35s cubic-bezier(.3, .8, .3, 1);
    z-index: 0;
}

.kh-cform__send > * { position: relative; z-index: 1; }
.kh-cform__send:hover { transform: translateY(-2px); color: #202020; }
.kh-cform__send:hover::before { transform: none; }
.kh-cform__send-icon { font-size: 20px; transition: transform .35s; }
.kh-cform__send:hover .kh-cform__send-icon { transform: translate(-4px, -4px) rotate(-8deg); }

.kh-cform__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: kh-cspin .7s linear infinite; }
@keyframes kh-cspin { to { transform: rotate(360deg); } }
.kh-cform.is-sending .kh-cform__spinner { display: inline-block; }
.kh-cform.is-sending .kh-cform__send-icon { display: none; }
.kh-cform.is-sending .kh-cform__send { pointer-events: none; opacity: .85; }

.kh-cform__status:empty { display: none; }
.kh-cform__status { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; font-size: .9rem; font-weight: 600; }
.kh-cform__status.is-error { background: rgba(229, 72, 77, .08); color: #c1272d; }
.kh-cform__status i { font-size: 20px; }

/* حالت موفق */
.kh-cform__done {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 30px;
    background: rgba(255, 255, 255, .97);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.kh-cform.is-done .kh-cform__done { opacity: 1; visibility: visible; }
.kh-cform__done h3 { margin: 6px 0 0; color: #202020; font-size: 1.6rem; font-weight: 900; }
.kh-cform__done p { margin: 0 0 8px; color: #6b6f78; }
.kh-cform__check svg { width: 96px; height: 96px; }
.kh-cform__check circle { fill: #e8d716; stroke: #202020; stroke-width: 2; transform-origin: center; transform: scale(0); }
.kh-cform__check path { fill: none; stroke: #202020; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.kh-cform.is-done .kh-cform__check circle { animation: kh-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.kh-cform.is-done .kh-cform__check path { animation: kh-draw .45s .35s ease forwards; }
@keyframes kh-pop { to { transform: scale(1); } }
@keyframes kh-draw { to { stroke-dashoffset: 0; } }

.kh-btn-ghost--dark { border-color: #202020 !important; color: #202020 !important; }

/* ---------- موقعیت ما */
.kh-location {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    background: #1c1c1e;
    color: #fff;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.kh-map { position: relative; height: 260px; flex: none; overflow: hidden; background: #2a2a2d; }

.kh-map iframe {
    width: 100%;
    height: calc(100% + 40px);
    margin-top: -20px;
    border: 0;
    filter: grayscale(1) contrast(1.05) brightness(.95);
    transition: filter .5s;
}

.kh-map:hover iframe { filter: none; }
.kh-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28, 28, 30, .9)); pointer-events: none; }

.kh-map__pin { position: absolute; top: calc(50% - 20px); left: 50%; display: grid; justify-items: center; transform: translate(-50%, calc(-100% - 26px)); pointer-events: none; z-index: 1; }
.kh-map__pin b { margin-bottom: 8px; padding: 5px 12px; border-radius: 10px; background: #202020; color: #e8d716; font-size: .8rem; white-space: nowrap; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); }
.kh-map__pin span { display: none; order: 2; width: 18px; height: 18px; border: 4px solid #202020; border-radius: 50%; background: #e8d716; box-shadow: 0 0 0 0 rgba(232, 215, 22, .7); animation: kh-ping 1.8s infinite; }
@keyframes kh-ping { to { box-shadow: 0 0 0 22px rgba(232, 215, 22, 0); } }

.kh-map__routes { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }

.kh-map__routes a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(20, 20, 22, .72);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    color: #fff !important;
    font-size: .8rem;
    font-weight: 700;
    transition: background-color .2s, color .2s;
}

.kh-map__routes a:hover { background: #e8d716; color: #202020 !important; }
.kh-map__routes i { font-size: 16px; }

.kh-location__body { display: flex; flex-direction: column; gap: 18px; padding: 24px 26px 26px; flex: 1; }
.kh-location__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kh-location__title h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 1.25rem; font-weight: 900; }
.kh-location__title h3 i { color: #e8d716; font-size: 24px; }

.kh-open { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #c9c9cf; font-size: .74rem; }
.kh-open i { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa2; }
.kh-open.is-open { color: #5ee08f; background: rgba(24, 160, 88, .14); }
.kh-open.is-open i { background: #2ecc71; animation: kh-ping-g 1.6s infinite; }
@keyframes kh-ping-g { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .7); } 100% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); } }

.kh-info { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kh-info li { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: background-color .2s; }
.kh-info li:hover { background: rgba(255, 255, 255, .05); }
.kh-info__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(232, 215, 22, .12); color: #e8d716; font-size: 22px; }
.kh-info li > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; text-align: right; }
.kh-info li > div > a[dir="ltr"] { unicode-bidi: isolate; }
.kh-info small { color: #8d8d95; font-size: .76rem; }
.kh-info b, .kh-info a { color: #fff !important; font-weight: 700; font-size: .95rem; }
.kh-info a { text-align: right; transition: color .2s; }
.kh-info a:hover { color: #e8d716 !important; }

.kh-info__copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #c9c9cf; font-size: 17px; cursor: pointer; transition: background-color .2s, color .2s; }
.kh-info__copy:hover { background: #e8d716; color: #202020; }
.kh-info__copy.is-copied { background: #18a058; color: #fff; }

.kh-wa {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #fff !important;
    box-shadow: 0 16px 30px -16px rgba(37, 211, 102, .8);
    transition: transform .25s, box-shadow .25s;
}

.kh-wa:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -16px rgba(37, 211, 102, .9); }
.kh-wa > i:first-child { font-size: 30px; }
.kh-wa span { display: grid; flex: 1; }
.kh-wa small { opacity: .85; font-size: .78rem; }
.kh-wa__go { font-size: 20px; transition: transform .3s; }
.kh-wa:hover .kh-wa__go { transform: translate(-4px, -4px); }

@media (max-width: 991.98px) {
    .kh-contact { padding: 80px 0 120px; }
    .kh-contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .kh-cform { padding: 20px 16px; border-radius: 22px; }
    .kh-cform__grid { grid-template-columns: 1fr; gap: 12px; }
    .kh-cform__foot { flex-direction: column-reverse; align-items: stretch; }
    .kh-cform__send { justify-content: center; margin: 0; }
    .kh-location__body { padding: 18px 16px 20px; }
    .kh-map { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .kh-contact *, .kh-contact *::before, .kh-contact *::after { animation: none !important; transition: none !important; }
    .kh-cform__check circle { transform: none; }
    .kh-cform__check path { stroke-dashoffset: 0; }
}
