﻿/* ============================================================================
   هرکجا | MTheme — ضمیمه اصلاحات صفحه جزئیات (S/I)
   فقط Fix مشکلات — بدون دست‌زدن به استایل‌های سالم بالای فایل
   ============================================================================ */

/* ============================================================
   FIX A) تصویر اصلی — متعادل‌سازی اندازه (مشکل ۸)
   ============================================================ */
/* تصویر مالک کسب‌وکار — بدون crop و بدون zoom
   نسبت ابعاد اصلی همیشه حفظ می‌شود (width:auto + height:auto + max-*)
   object-fit هرگز cover نمی‌شود تا سر/صورت شخص بریده نشود. */
.pd-main-img {
    margin-top: 24px;
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
    background: #f4f7fb;
    box-shadow: 0 10px 30px -18px rgba(15, 40, 90, .28);
    text-align: center;
}
.pd-main-img img {
    display: block;
    margin: 0 auto;
    width: auto;                /* نسبت اصلی حفظ شود */
    height: auto;
    max-width: 100%;            /* از عرض والد بیرون نزند */
    max-height: 560px;          /* سقف ارتفاع برای جلوگیری از گل‌درشت شدن */
    object-fit: contain;        /* کل تصویر دیده شود، بدون برش */
    object-position: center;
}
.pd-main-img:hover img { transform: none; }   /* zoom حذف شد */
.pd-main-img a { display: block; }
/* در موبایل تصویر تمام‌عرض ولی بدون برش */
@media (max-width: 575px) {
    .pd-main-img img { width: 100%; object-fit: contain; max-height: none; }
}

/* ============================================================
   FIX B) گالری تصاویر — اسلایدر واقعی با swipe (مشکل ۲)
   بدون وابستگی به Swiper تم قدیمی
   ============================================================ */
.hz-gallery {
    position: relative;
    margin-top: 40px;
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
    background: #eef3f9;
    box-shadow: 0 14px 40px -22px rgba(15, 40, 90, .34);
}
/* گالری — چیدمان RTL (مهم: flex در RTL از راست به چپ می‌چیند،
   بنابراین جابه‌جایی باید +index باشد نه -index) */
.hz-gallery-track {
    display: flex;
    flex-direction: row;        /* در RTL یعنی راست → چپ */
    transition: transform .42s cubic-bezier(.22, .8, .24, 1);
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}
.hz-gallery-track.dragging {
    transition: none;
    cursor: grabbing;
}
.hz-gallery-slide {
    flex: 0 0 100%;
    position: relative;
    height: clamp(240px, 42vw, 520px);
    background: #e9eef6;
}
.hz-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
/* فلش‌های ناوبری */
.hz-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--brand, #006a0d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(15, 40, 90, .35);
    transition: background .2s, transform .2s;
    z-index: 3;
}
.hz-gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hz-gallery-nav.prev { right: 14px; }
.hz-gallery-nav.next { left: 14px; }
@media (hover: none) { .hz-gallery-nav { display: none; } }

/* شمارنده + نقطه‌ها */
.hz-gallery-count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 40, 90, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hz-gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}
.hz-gallery-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    transition: all .25s;
    cursor: pointer;
}
.hz-gallery-dots span.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* راهنمای کشیدن — حفظ ظاهر قبلی، فقط بالای گالری */
.swipe-hint {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 26px auto 0;
    width: fit-content;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(45, 108, 223, .08);
    border: 1px solid rgba(45, 108, 223, .16);
    color: var(--brand, #006a0d);
    font-size: .82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s, transform .35s;
    pointer-events: none;
}
.swipe-hint[aria-hidden="false"] { opacity: 1; transform: translateY(0); }
.swipe-hint .swipe-finger {
    width: 22px;
    height: 22px;
    animation: hzSwipe 1.4s ease-in-out infinite;
}
.swipe-hint .swipe-finger svg { width: 100%; height: 100%; display: block; }
@keyframes hzSwipe {
    0%, 100% { transform: translateX(5px); }
    50%      { transform: translateX(-5px); }
}

/* ============================================================
   FIX C) مودال ۳۶۰ — دکمه‌ها + spinner (مشکل ۳)
   ============================================================ */
.modal-360 .modal-controls { gap: 8px; }
.modal-360 .modal-controls .btn {
    border: 0;
    border-radius: 11px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter .2s, transform .15s;
}
.modal-360 .modal-controls .btn:hover { filter: brightness(1.06); }
.modal-360 .modal-controls .btn:active { transform: translateY(1px); }
.modal-360 .modal-controls .btn-primary {
    background: var(--brand, #006a0d);
    color: #fff;
}
.modal-360 .modal-controls .btn-primary.active {
    background: #004f09;
}
.modal-360 .modal-controls .btn-secondary {
    background: rgba(15, 40, 90, .08);
    color: #26405f;
}
.modal-360 .loader { flex-direction: column; gap: 14px; }
.modal-360 .spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(45, 108, 223, .2);
    border-top-color: var(--brand, #006a0d);
    animation: hzSpin .8s linear infinite;
}
@keyframes hzSpin { to { transform: rotate(360deg); } }
#modalIframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FIX D) مودال ویدیو — ساختار vid_* (مشکل ۶)
   ============================================================ */
.vid_video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 18, 34, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity .24s ease;
}
.vid_video-modal.active,
.vid_video-modal[aria-hidden="false"] { display: flex; opacity: 1; }

/* ----------------------------------------------------------------------------
   کارت پلیر — قاب زیبا با هدر عنوان روی ویدئو
   ---------------------------------------------------------------------------- */
.vid_video-container {
    position: relative;
    width: min(100%, 1000px);
    border-radius: 22px;
    overflow: hidden;
    background: #0b111c;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.07);
    transform: translateY(14px) scale(.985);
    transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.vid_video-modal.active .vid_video-container,
.vid_video-modal[aria-hidden="false"] .vid_video-container {
    transform: translateY(0) scale(1);
}

.vid_video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    background: #000;
    border-radius: 22px;
}

/* نوار عنوان شیشه‌ای بالای ویدئو */
.vid_top-bar {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(8,18,34,.82) 0%, rgba(8,18,34,0) 100%);
    pointer-events: none;
}
.vid_top-title {
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-inline-end: auto;
}

.vid_close-modal,
.vid_fullscreen-btn {
    position: relative;
    z-index: 7;
    pointer-events: auto;
    top: auto;
    right: auto !important;
    left: auto !important;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s, transform .2s, border-color .2s;
}
.vid_close-modal:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: scale(1.07);
}
.vid_fullscreen-btn:hover {
    background: var(--brand, #006a0d);
    border-color: var(--brand, #006a0d);
    transform: scale(1.07);
}

/* ----------------------------------------------------------------------------
   لودر — اسپینر برند به‌جای اسپینر خالی
   ---------------------------------------------------------------------------- */
.vid_video-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(8, 18, 34, .82);
    color: #fff;
    font-size: .88rem;
}
.vid_video-loader.show { display: flex; }
.vid_spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    animation: hzSpin .8s linear infinite;
}

/* ============================================================
   FIX E) بخش «جوامع مجازی این کسب‌وکار» (مشکل ۴)
   ============================================================ */
.social-section {
    position: relative;
    margin-top: 64px;
    padding: 34px 28px;
    border-radius: var(--r-lg, 20px);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(45, 108, 223, .09) 0%, transparent 55%),
        radial-gradient(100% 100% at 0% 100%, rgba(245, 158, 11, .09) 0%, transparent 55%),
        #fff;
    border: 1px solid rgba(15, 40, 90, .08);
    box-shadow: 0 18px 50px -30px rgba(15, 40, 90, .35);
}
.social-head { text-align: center; margin-bottom: 26px; }
.social-head .eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--brand, #006a0d);
    background: rgba(45, 108, 223, .09);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.social-head h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    font-weight: 800;
    color: #16283f;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(15, 40, 90, .09);
    text-decoration: none;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    min-width: 0;
}
.social-card:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 108, 223, .35);
    box-shadow: 0 14px 30px -16px rgba(45, 108, 223, .45);
}
.social-ico {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6fc;
    overflow: hidden;
}
/* نسبت تصویر اصلی حفظ شود — بدون دفرمه شدن */
.social-ico img {
    max-width: 30px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.social-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.social-meta strong {
    font-size: .88rem;
    font-weight: 700;
    color: #16283f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.social-meta em {
    font-style: normal;
    font-size: .76rem;
    color: #7a8ca3;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   FIX F) CTA «درخواست مشاوره رایگان» (مشکل ۵)
   ساختار اصلی پروژه حفظ شد: .consultation-box > .consultation-content
   فقط ظاهر آن به یک CTA واقعی و روشن بازگردانده شد
   ============================================================ */
.consultation-box {
    position: relative;
    margin-top: 26px;
    padding: 30px 34px;
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .18) 0%, transparent 60%),
        linear-gradient(135deg, #006a0d 0%, #ee8d1a 100%);
    box-shadow: 0 22px 55px -26px rgba(45, 108, 223, .75);
}
.consultation-box::after {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 158, 11, .30);
    filter: blur(46px);
    pointer-events: none;
}
.consultation-content { position: relative; z-index: 1; }
.consultation-title {
    margin: 0 0 8px;
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.55;
}
.consultation-desc {
    margin: 0 0 20px;
    font-size: .89rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, .9);
}
.consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    background: #fff;
    color: #1E4FA8 !important;
    font-weight: 800;
    font-size: .97rem;
    text-decoration: none;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .48);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.consultation-btn i { font-size: 1rem; }
.consultation-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .55);
}
.consultation-btn:active { transform: translateY(0); }

/* ============================================================
   FIX G) پروژه‌های ۳۶۰ (مشکل ۷) — گرید درست
   ============================================================ */
#projects .hz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 26px;
}
.project-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 40, 90, .08);
    box-shadow: 0 12px 34px -22px rgba(15, 40, 90, .4);
    transition: transform .25s, box-shadow .25s;
    text-align: center;
    padding-bottom: 16px;
}
.project-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -22px rgba(15, 40, 90, .5);
}
.project-box img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.project-box h4 {
    margin: 14px 14px 10px;
    font-size: .95rem;
    font-weight: 700;
    color: #16283f;
}
.project-box .btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: .82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: var(--brand, #006a0d);
    color: #fff;
    transition: filter .2s;
}
.project-box .btn:hover { filter: brightness(1.08); }
.pd-services-title {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    font-weight: 800;
    color: #16283f;
}

/* ============================================================
   FIX H) قفل اسکرول body هنگام باز بودن مودال
   ============================================================ */
body.hz-modal-open {
    overflow: hidden;
    padding-right: var(--hz-sb, 0px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .pd-main-img img { max-height: 420px; object-fit: contain; }
    .social-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .consultation-box { padding: 26px; }
    .consultation-btn { width: 100%; justify-content: center; }
}
@media (max-width: 575px) {
    .pd-main-img { margin-top: 16px; border-radius: 16px; }
    .pd-main-img img { max-height: none; width: 100%; }
    .hz-gallery { border-radius: 16px; margin-top: 26px; }
    .hz-gallery-slide { height: 220px; }
    .social-section { padding: 24px 16px; margin-top: 44px; border-radius: 16px; }
    .social-grid { grid-template-columns: 1fr; gap: 10px; }
    .social-ico { flex-basis: 42px; width: 42px; height: 42px; }
    .social-ico img { max-width: 26px; max-height: 26px; }
    .consultation-box { padding: 22px 18px; border-radius: 16px; }
    .consultation-btn { padding: 13px 22px; font-size: .89rem; }
    .vid_video-container { border-radius: 14px; }
    .vid_video-container video { border-radius: 14px; }
}

/* ============================================================================
   سکشن‌بندی صفحه جزئیات کسب‌وکار (/S/i/)
   ----------------------------------------------------------------------------
   کاربر: «هر سکشن سکشن یعنی عرض کامل، نه اینکه پس‌زمینه همون دیو کنی. میخوام
          همه رو سکشن‌بندی کنی» + «نمیخوام زیاد فاصله رنگی داشته باشه».

   طرح: نوارهای تمام‌عرض (full-bleed) که یکی در میان پس‌زمینهٔ سفید و یکی
   پس‌زمینهٔ خیلی ملایم دارند — اختلاف فقط چند درجه، فقط برای اینکه معلوم شود
   پیوسته نیستند. فاصلهٔ عمودی سخاوتمند + خط جداکنندهٔ مویی بین نوارها.
   ============================================================================ */

.pd-sec {
    width: 100%;
    padding-block: 44px;
    position: relative;
}
.pd-sec > .container { position: relative; }

/* خط جداکنندهٔ مویی — بدون رنگ تند */
.pd-sec + .pd-sec::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: rgba(22, 40, 63, .07);
}

/* نوار ملایم: پس‌زمینهٔ کمی سردتر از سفید (خیلی کم) */
.pd-sec-gallery,
.pd-sec-outro,
.social-section {
    background: #f7f9fc;
}

.pd-sec-video,
.projects-cosmic {
    background: #fff;
}

/* ---------- بلوک اول (تصویر + عنوان) هم عرض کامل با نوار سفید ---------- */
.pd-sec:first-of-type { padding-block: 28px 40px; }

/* ---------- گالری ---------- */
.pd-sec-gallery { padding-block: 36px; }
.pd-sec-gallery .hz-gallery { margin-top: 0; box-shadow: 0 10px 30px rgba(20,33,61,.08); }

/* ---------- ویدئو ---------- */
.pd-sec-video { padding-block: 46px; }
.pd-sec-video .intro-feat { padding: 0; }

/* ---------- پروژه‌ها ---------- */
.projects-cosmic { padding-block: 48px; }

/* ---------- جوامع مجازی ---------- */
.social-section {
    border-radius: 0;
    padding-block: 48px;
    margin-top: 0;
}

/* ---------- متن پایانی ---------- */
.pd-sec-outro { padding-block: 52px 60px; }
.pd-outro-text {
    font-size: .95rem; line-height: 2.05;
    color: var(--ink-soft, #475569);
    margin-bottom: 22px;
}
.pd-outro-text p { margin: 0; }

/* consultation-box داخل کارت خودش می‌ماند ولی بدون حاشیهٔ اضافه */
.pd-sec-outro .consultation-box { margin: 0; }

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    .pd-sec { padding-block: 30px; }
    .pd-sec-gallery { padding-block: 26px; }
    .pd-sec-video { padding-block: 32px; }
    .projects-cosmic { padding-block: 34px; }
    .social-section { padding-block: 34px; }
    .pd-sec-outro { padding-block: 34px 42px; }
    .pd-outro-text { font-size: .9rem; line-height: 1.95; }
}

/* ============================================================================
   ارتقای صفحه جزئیات کسب‌وکار — بخش دوم
   ----------------------------------------------------------------------------
   شامل: عکس اصلی تمام‌قاب · دکمه پخش توپر · خدمات · پروژه‌ها · متن پایانی ·
         مشاوره · و لایهٔ «گیمیفیکیشن» (نشان‌ها/شمارنده/کاری/ریز‌تعامل‌ها)
   ⚠️ همه کلاس‌ها scoped هستند (پیشوند pd-/pj-/serv-/outro-/consult-)
   ============================================================================ */

/* ==========================================================================
   ۱) عکس اصلی / تور ۳۶۰ — پر کردن کامل قاب
   --------------------------------------------------------------------------
   کاربر: «عکسش گوشه تیز داره که خوب نیست، میخوام ۱۰۰ درصد فیکس شه توی
          .pd-main-img» — پس پس‌زمینه و باکس‌شادو حذف و تصویر قاب را پر می‌کند.
   ========================================================================== */
.pd-sec:first-of-type .pd-main-img,
.pd-main-img {
    background: none !important;
    box-shadow: none !important;
    border-radius: 20px;
    overflow: hidden;
    /* کاربر: «تصویر اصلی خوبه فقط یخرده بهش پدینگ بده از بالا چسبیده به کادرش» */
    margin-top: 18px;
    aspect-ratio: 16 / 9;
}
.pd-main-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    max-height: none !important;
    display: block;
    transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.pd-main-img a { display: block; height: 100%; }
.pd-main-img:hover img { transform: scale(1.03); }

/* نشان ۳۶۰ روی عکس اصلی */
.pd-360-hint {
    position: absolute;
    inset-inline-end: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8, 18, 34, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}
.pd-360-hint i { color: #ee8d1a; }

@media (max-width: 575px) {
    .pd-main-img { aspect-ratio: 4 / 3; }
    .pd-main-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
}

/* ==========================================================================
   ۲) دکمه پخش ویدئو — دایرهٔ توپر
   --------------------------------------------------------------------------
   کاربر: «این دکمه میخوام قشنگ دایره اش رو پر کنه».
   ========================================================================== */
.butn-ply {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    box-shadow: 0 14px 34px -12px rgba(0,106,13,.65), 0 0 0 0 rgba(238,141,26,.5);
    animation: pdPulse 2.4s ease-out infinite;
}
.butn-ply svg { display: none; }              /* دایرهٔ خطی قبلی لازم نیست */
.butn-ply i {
    position: relative; color: #fff; font-size: 1.45rem;
    margin-inline-start: 3px;                /* تعادل بصری مثلث پخش */
}
/* کاربر: «این دیگه نداشته باشه پس زمینه ای، همون پلی گذاشتی خوبه» */
.btn.vid { background: none !important; border: 0 !important; padding: 0; box-shadow: none !important; }
.btn.vid:hover { background: none !important; box-shadow: none !important; }
.btn.vid:hover .butn-ply { transform: scale(1.07); }
.butn-ply { transition: transform .22s ease; }

@keyframes pdPulse {
    0%   { box-shadow: 0 14px 34px -12px rgba(0,106,13,.65), 0 0 0 0 rgba(238,141,26,.5); }
    70%  { box-shadow: 0 14px 34px -12px rgba(0,106,13,.65), 0 0 0 18px rgba(238,141,26,0); }
    100% { box-shadow: 0 14px 34px -12px rgba(0,106,13,.65), 0 0 0 0 rgba(238,141,26,0); }
}
@media (prefers-reduced-motion: reduce) { .butn-ply { animation: none; } }

/* ==========================================================================
   ۳) خدمات — سکشن جدا + ظاهر ملایم/بلور
   --------------------------------------------------------------------------
   کاربر: «ظاهرش میخوام کمی بلور تر باشه و سکشنش جدا باشه از id=projects».
   ========================================================================== */
/* کاربر: «یه مارجینگ تاپ بهش بده چسبیده به ویدئو» */
.pd-services-block {
    margin-top: 34px;
    padding: 26px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border: 1px solid rgba(22, 40, 63, .07);
}
.serv_row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.serv_item {
    display: inline-flex; align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(0, 106, 13, .16);
    box-shadow: 0 4px 12px -6px rgba(20, 33, 61, .16);
    transition: border-color .2s, transform .2s, background .2s;
}
.serv_item:hover {
    border-color: rgba(0, 106, 13, .45);
    background: #fff;
    transform: translateY(-2px);
}
.serv_text { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-soft, #475569); }

/* دکمهٔ «مشاهده بیشتر» مشترک */
.pd-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.pd-more-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid rgba(0, 106, 13, .3);
    background: #fff;
    color: var(--brand, #006a0d);
    font-size: .85rem; font-weight: 800;
    cursor: pointer;
    transition: all .22s ease;
}
.pd-more-btn:hover {
    background: var(--brand, #006a0d);
    border-color: var(--brand, #006a0d);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -10px rgba(0,106,13,.55);
}
.pd-more-btn i:last-child { font-size: .7rem; }

/* ==========================================================================
   ۴) پروژه‌ها — کارت با بج ۳۶۰
   ========================================================================== */
.hz-grid { gap: 18px; }
.pj-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #eef2f7; }
.project-box img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .55s cubic-bezier(.2,.8,.3,1);
}
.project-box:hover img { transform: scale(1.06); }
.pj-360-badge {
    position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(8, 18, 34, .66);
    backdrop-filter: blur(8px);
    color: #fff; font-size: .68rem; font-weight: 700;
}
.pj-360-badge i { color: #ee8d1a; }
.project-box h4 { font-size: .9rem; margin: 12px 12px 8px; }
.project-box .btn { margin-bottom: 4px; }
.pj-hidden { display: none !important; }

/* ==========================================================================
   ۵) متن پایانی — عکس راست، متن چپ + هاور بزرگ‌نمایی
   --------------------------------------------------------------------------
   کاربر: «عکس سمت راست بمونه متنش سمت چپ و وقتی روی عکس هاور کرد با ظاهر
          زیبا بزرگ شه».
   ========================================================================== */
.outro-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}
/* در RTL ستون اول سمت راست است → عکس راست می‌ماند */
/* کاربر: «ارتفاعش هر چی بود رو نشون بده، الان نصفِ کله مرده نیست» →
   نسبت تحمیلی برداشته شد؛ تصویر با ارتفاع طبیعی خودش نمایش داده می‌شود. */
.outro-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 44px -22px rgba(20, 33, 61, .4);
    cursor: zoom-in;
}
.outro-img-wrap img {
    width: 100%; height: auto;
    display: block;
    transition: transform .65s cubic-bezier(.2,.8,.3,1), filter .4s ease;
}
.outro-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,18,34,0) 55%, rgba(8,18,34,.45) 100%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.outro-img-wrap:hover img { transform: scale(1.08); filter: saturate(1.08); }
.outro-img-wrap:hover::after { opacity: 1; }

.pd-outro-text {
    font-size: .96rem; line-height: 2.05;
    color: var(--ink-soft, #475569);
    margin-bottom: 22px;
}
.pd-outro-text p { margin: 0; }

@media (max-width: 900px) {
    .outro-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ==========================================================================
   ۶) باکس مشاوره — یک باکس مجزا، تمام‌عرض، سطر کامل
   --------------------------------------------------------------------------
   کاربر: «"عقب نمون!..." این یه باکس مجزا هست و پایین میمونه یه سطر کامل میگیره».
   پس از ستون متن بیرون می‌آید و زیر کل بخش قرار می‌گیرد.
   ========================================================================== */
.pd-sec-outro .consultation-box {
    margin-top: 30px;
    padding: 28px 30px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 60%),
        linear-gradient(135deg, #006a0d 0%, #ee8d1a 100%);
    box-shadow: 0 22px 55px -26px rgba(0, 106, 13, .6);
}
.consult-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff; font-size: .72rem; font-weight: 800;
    margin-bottom: 13px;
}
.consult-eyebrow i { color: #ffe6b8; }

/* چیدمان افقی داخل باکس تمام‌عرض: متن راست، دکمه روبرو (سطر کامل) */
.consultation-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (min-width: 992px) {
    .consultation-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "eyebrow btn"
            "title   btn"
            "desc    btn";
        align-items: center;
        column-gap: 30px;
    }
    .consult-eyebrow      { grid-area: eyebrow; justify-self: start; margin-bottom: 4px; }
    .consultation-title   { grid-area: title; }
    .consultation-desc    { grid-area: desc; margin: 0; }
    .consultation-btn     { grid-area: btn; justify-self: end; white-space: nowrap; }
}
.consultation-title { font-size: clamp(1.05rem, 2.2vw, 1.4rem); margin: 0; color: #fff; }
.consultation-desc  { color: rgba(255,255,255,.9); font-size: .88rem; line-height: 1.9; margin: 0; }
.consultation-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand, #006a0d);
    font-weight: 800; font-size: .88rem;
    text-decoration: none;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
    transition: transform .22s, box-shadow .22s;
}
.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -14px rgba(0,0,0,.5);
    color: var(--brand, #006a0d);
}

/* ==========================================================================
   ۷) لایهٔ گیمیفیکیشن — نشان، شمارنده، کاری، ریز‌تعامل
   --------------------------------------------------------------------------
   کاربر: «کل این صفحه یوایش میخوام حالت گیمیفیکیشن داشته باشه».
   هدف: حس پیشرفت و کشف — بدون شلوغی و بدون رنگ تند.
   ========================================================================== */

/* کاری رنگی از گرادیان برند روی نوار بالای هر سکشن */
.pd-sec { position: relative; }
.pd-sec::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0,106,13,.22), rgba(238,141,26,.22), transparent);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.pd-sec:hover::after { opacity: 1; }

/* عنوان سکشن با یک لهجهٔ برند */
.pd-services-title {
    display: inline-flex; align-items: center; gap: 10px;
    position: relative;
    padding-inline-start: 16px;
}
.pd-services-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 12%;
    height: 76%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand, #006a0d), #ee8d1a);
}
.pd-services-title::after { content: none; }

/* سطح‌های شیشه‌ای برای کارت‌های پروژه در حالت گیمیفای */
.project-box {
    transform: translateZ(0);
}
.project-box:hover {
    border-color: rgba(0, 106, 13, .3);
    box-shadow: 0 22px 48px -24px rgba(0, 106, 13, .5);
}

/* ==========================================================================
   ۸) مدال «مشاهده بیشتر»
   ========================================================================== */
.pd-sheet-backdrop {
    position: fixed; inset: 0; z-index: 9150;
    background: rgba(16, 26, 40, .48);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 18px;
    opacity: 0;
    transition: opacity .22s ease;
}
.pd-sheet-backdrop[hidden] { display: none; }
.pd-sheet-backdrop.is-open { opacity: 1; }

.pd-sheet {
    width: 100%; max-width: 880px; max-height: 86vh;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 22px;
    box-shadow: 0 28px 70px rgba(16, 26, 40, .3);
    transform: translateY(16px) scale(.98);
    transition: transform .26s cubic-bezier(.2,.8,.3,1);
    overflow: hidden;
}
.pd-sheet-backdrop.is-open .pd-sheet { transform: translateY(0) scale(1); }

.pd-sheet-head {
    display: flex; align-items: center; gap: 13px;
    padding: 18px 20px; border-bottom: 1px solid #eef1f6;
}
.pd-sheet-ico {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    color: #fff; font-size: 1rem;
}
.pd-sheet-head h3 { margin: 0 0 3px; font-size: 1.02rem; font-weight: 800; color: var(--ink, #16283f); }
.pd-sheet-head p { margin: 0; font-size: .78rem; color: #98a2b3; }
.pd-sheet-x {
    margin-inline-start: auto; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid #e6eaf1; background: #fff; color: #94a3b8; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .18s, border-color .18s;
}
.pd-sheet-x:hover { color: #c0392b; border-color: rgba(192,57,43,.35); }

.pd-sheet-body { padding: 18px 20px 22px; overflow-y: auto; flex: 1 1 auto; }
.pd-sheet-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-sheet-grid-pj {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* صفحه‌بندی مدال */
.pd-pager {
    display: flex; flex-wrap: wrap; gap: 7px;
    justify-content: center; margin-top: 20px;
}
.pd-pg {
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 11px;
    border: 1px solid rgba(22,40,63,.09);
    background: #fff; color: var(--ink, #16283f);
    font-size: .84rem; font-weight: 700; cursor: pointer;
    transition: all .18s ease;
}
.pd-pg:hover { border-color: rgba(0,106,13,.4); color: var(--brand, #006a0d); }
.pd-pg.is-active {
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    border-color: transparent; color: #fff;
}

@media (max-width: 900px) {
    .pd-sheet-grid-pj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .pd-sheet { max-height: 90vh; border-radius: 18px; }
    .pd-sheet-head { padding: 14px 15px; }
    .pd-sheet-body { padding: 14px 15px 18px; }
    .pd-services-block { padding: 18px 16px; }
    .consultation-box { padding: 22px 18px; }
    .pd-sec-outro .consultation-btn { width: 100%; justify-content: center; }
}
@media (max-width: 460px) {
    .pd-sheet-grid-pj { grid-template-columns: 1fr; }
    .butn-ply { width: 68px; height: 68px; }
    .butn-ply i { font-size: 1.15rem; }
}

/* ============================================================================
   لایه گیمیفیکیشن صفحه کسب‌وکار (/S/i/)
   ----------------------------------------------------------------------------
   کاربر: «کل این صفحه یوایش میخوام حالت گیمیفیکیشن داشته باشه».
   همه اجزا از داده واقعی رکورد ساخته می‌شوند (کنترلر SController):
     gm-progress  → نوار پیشرفت مطالعه
     gm-panel     → حلقه امتیاز تکمیل پروفایل + نشان سطح فعالیت
   هیچ امتیاز لیدربوردی وجود ندارد (رقابت عمومی بین کسب‌وکارها حذف شد).
   ============================================================================ */

/* ---------- ۱) نوار پیشرفت مطالعه ---------- */
.gm-progress {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 3px;
    z-index: 9998;
    background: transparent;
    pointer-events: none;
}
.gm-progress > i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand, #006a0d), #ee8d1a);
    box-shadow: 0 0 12px rgba(0, 106, 13, .45);
    transition: width .12s linear;
    border-start-end-radius: 999px;
    border-end-end-radius: 999px;
}

/* ---------- ۲) پنل امتیاز + سطح ---------- */
.gm-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border: 1px solid rgba(22, 40, 63, .07);
    box-shadow: 0 8px 26px -18px rgba(20, 33, 61, .3);
}
.gm-panel-main { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* حلقه امتیاز */
.gm-score-ring {
    position: relative;
    width: 62px; height: 62px;
    flex: 0 0 62px;
}
.gm-score-ring svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg) scaleX(-1);   /* شروع از بالا، در جهت RTL */
}
.gm-ring-bg, .gm-ring-fg {
    fill: none;
    stroke-width: 4.5;
    stroke-linecap: round;
}
.gm-ring-bg { stroke: rgba(22, 40, 63, .09); }
.gm-ring-fg {
    stroke: var(--brand, #006a0d);
    stroke-dasharray: 119.4;                              /* 2*pi*19 */
    stroke-dashoffset: calc(119.4 - (119.4 * var(--pct, 0) / 100));
    transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.3,1);
}
.gm-score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    font-weight: 800;
    color: var(--brand, #006a0d);
}
.gm-score-num small { font-size: .58rem; margin-inline-start: 1px; }

.gm-score-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gm-score-txt strong { font-size: .9rem; font-weight: 800; color: var(--ink, #16283f); }
.gm-score-txt small { font-size: .74rem; color: #7b8794; line-height: 1.7; }

/* نشان سطح فعالیت */
.gm-level {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .2s;
}
.gm-level:hover { transform: translateY(-2px); }
.gm-level i { font-size: .85rem; }

/* سطح ۰ — تازه */
.gm-level-0 {
    background: rgba(148, 163, 184, .14);
    border-color: rgba(148, 163, 184, .3);
    color: #64748b;
}
/* سطح ۱ — فعال */
.gm-level-1 {
    background: rgba(0, 106, 13, .09);
    border-color: rgba(0, 106, 13, .28);
    color: var(--brand, #006a0d);
}
/* سطح ۲ — پرطرفدار */
.gm-level-2 {
    background: linear-gradient(135deg, rgba(238, 141, 26, .16), rgba(238, 141, 26, .1));
    border-color: rgba(238, 141, 26, .4);
    color: #b45309;
}
/* سطح ۳ — برگزیده */
.gm-level-3 {
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 106, 13, .6);
}

.gm-level-hint {
    margin: 10px 0 0;
    font-size: .76rem;
    color: #98a2b3;
    display: flex;
    align-items: center;
    gap: 7px;
}
.gm-level-hint i { color: var(--brand, #006a0d); font-size: .76rem; }

/* ---------- ۳) شمارنده انیمیشنی خدمات ---------- */
.pd-services-title .serv-count-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px; height: 26px;
    padding: 0 9px;
    margin-inline-start: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    vertical-align: middle;
}

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    .gm-panel { padding: 14px; gap: 12px; }
    .gm-score-ring { width: 54px; height: 54px; flex-basis: 54px; }
    .gm-score-num { font-size: .82rem; }
    .gm-score-txt strong { font-size: .84rem; }
    .gm-score-txt small { font-size: .7rem; }
    .gm-level { padding: 8px 13px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-progress > i,
    .gm-ring-fg { transition: none; }
}

/* ============================================================================
   مدال درخواست مشاوره رایگان (صفحه کسب‌وکار + قابل استفاده در تماس با ما)
   ----------------------------------------------------------------------------
   کاربر: «وقتی زدش یه مدال کوچیک درخواست مشاوره رایگان باز شه و اسم و شماره
          تماس و توضیح بگیره با ادرس».
   ============================================================================ */
.consult-modal-backdrop {
    position: fixed; inset: 0; z-index: 9300;
    background: rgba(16, 26, 40, .5);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    opacity: 0; transition: opacity .22s ease;
}
.consult-modal-backdrop[hidden] { display: none; }
.consult-modal-backdrop.is-open { opacity: 1; }

.consult-modal {
    width: 100%; max-width: 480px; max-height: 90vh;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 20px;
    box-shadow: 0 26px 70px rgba(16, 26, 40, .3);
    transform: translateY(14px) scale(.98);
    transition: transform .26s cubic-bezier(.2,.8,.3,1);
    overflow: hidden;
}
.consult-modal-backdrop.is-open .consult-modal { transform: translateY(0) scale(1); }

.consult-modal-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid #eef1f6;
}
.consult-modal-ico {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    color: #fff; font-size: .95rem;
}
.consult-modal-head h3 { margin: 0 0 3px; font-size: .98rem; font-weight: 800; color: var(--ink, #16283f); }
.consult-modal-head p { margin: 0; font-size: .75rem; color: #98a2b3; line-height: 1.7; }
.consult-modal-x {
    margin-inline-start: auto; flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #e6eaf1; background: #fff; color: #94a3b8; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .18s, border-color .18s;
}
.consult-modal-x:hover { color: #c0392b; border-color: rgba(192,57,43,.35); }

.consult-modal-body { padding: 16px 18px 4px; overflow-y: auto; flex: 1 1 auto; }

.consult-field { margin-bottom: 14px; }
.consult-field label {
    display: block; margin-bottom: 7px;
    font-size: .8rem; font-weight: 700; color: var(--ink-soft, #475569);
}
.consult-field label span { color: #c0392b; }
.consult-field label small { color: #98a2b3; font-weight: 500; }
.consult-field input,
.consult-field textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid rgba(22, 40, 63, .12);
    border-radius: 12px; background: #fff;
    font-size: .87rem; color: var(--ink, #16283f);
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.consult-field input:focus,
.consult-field textarea:focus {
    outline: none;
    border-color: var(--brand, #006a0d);
    box-shadow: 0 0 0 3px rgba(0, 106, 13, .1);
}
.consult-field textarea { resize: vertical; min-height: 74px; }

.consult-form-msg {
    min-height: 20px; font-size: .78rem; font-weight: 600;
    padding: 2px 0 8px; line-height: 1.7;
}
.consult-form-msg.is-ok { color: #17803d; }
.consult-form-msg.is-err { color: #c0392b; }

.consult-modal-foot {
    display: flex; align-items: center; gap: 9px;
    padding: 14px 18px 18px; border-top: 1px solid #eef1f6;
}
.consult-submit {
    flex: 1 1 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 20px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand, #006a0d), #ee8d1a);
    color: #fff; font-size: .87rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(0, 106, 13, .5);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.consult-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0,106,13,.6); }
.consult-submit:disabled { opacity: .6; cursor: not-allowed; }
.consult-cancel {
    padding: 12px 18px; border-radius: 12px;
    border: 1px solid #e6eaf1; background: #fff;
    color: var(--ink-soft, #475569); font-size: .84rem; font-weight: 700;
    cursor: pointer; transition: border-color .18s, color .18s;
}
.consult-cancel:hover { border-color: rgba(192,57,43,.35); color: #c0392b; }

@media (max-width: 560px) {
    .consult-modal { max-height: 94vh; border-radius: 16px; }
    .consult-modal-head { padding: 13px 14px; }
    .consult-modal-body { padding: 13px 14px 2px; }
    .consult-modal-foot { padding: 12px 14px 14px; }
}
