/* =====================================================================
   MiniSite_v27 — آژانس دیجیتال‌مارکتینگ / رشد (HORIZONTAL SCROLL-SNAP SLIDES)
   Architecture: a horizontal sequence of full-viewport PANELS navigated
   sideways (scroll-snap-type:x mandatory). Fixed brand corner + dot/step
   progress rail + prev/next controls. Vertical fallback on mobile.
   All classes prefixed ms27-. Electric blue -> magenta gradient identity.
   ===================================================================== */

:root {
    --ms27-blue: #2f6bff;
    --ms27-violet: #7b3cff;
    --ms27-magenta: #ff2d9b;
    --ms27-ink: #0a0a18;
    --ms27-ink-2: #14122b;
    --ms27-panel: #0e0d22;
    --ms27-text: #eef0ff;
    --ms27-muted: #9aa0c8;
    --ms27-line: rgba(255,255,255,.10);
    --ms27-grad: linear-gradient(120deg, #2f6bff 0%, #7b3cff 45%, #ff2d9b 100%);
    --ms27-grad-soft: linear-gradient(120deg, rgba(47,107,255,.18), rgba(255,45,155,.18));
    --ms27-radius: 22px;
    --ms27-shadow: 0 24px 70px rgba(3,4,20,.55);
    /* bridge vars so the appointment widget / shared bits inherit our palette */
    --dp-brand: #2f6bff;
    --dp-brand-2: #ff2d9b;
    --dp-accent: #7b3cff;
    --primary: #2f6bff;
    --brand: #2f6bff;
}

/* The page shell hosts a horizontal scroller; kill default centering/padding */
body .page-card-shell {
    background: var(--ms27-ink);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.ms27-root {
    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    color: var(--ms27-text);
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(47,107,255,.22), transparent 60%),
        radial-gradient(1000px 700px at 110% 120%, rgba(255,45,155,.18), transparent 55%),
        var(--ms27-ink);
    direction: rtl;
    position: relative;
}

/* ============ THE HORIZONTAL TRACK ============ */
.ms27-track {
    display: flex;
    flex-direction: row;
    /* RTL: first panel sits on the right; we still snap on x */
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ms27-track::-webkit-scrollbar { display: none; }

.ms27-panel {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
.ms27-panel::-webkit-scrollbar { width: 8px; }
.ms27-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 8px; }

.ms27-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 56px 90px;
    box-sizing: border-box;
}
.ms27-inner--wide { max-width: 1320px; }

/* panel decorative blobs */
.ms27-panel::before {
    content: "";
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: var(--ms27-grad);
    filter: blur(120px);
    opacity: .16;
    top: -120px; left: -120px;
    pointer-events: none;
    z-index: 0;
}
.ms27-panel > .ms27-inner { position: relative; z-index: 1; }

/* ============ FIXED CHROME (brand + nav + progress + controls) ============ */
.ms27-chrome {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 34px;
    pointer-events: none;
}
.ms27-chrome > * { pointer-events: auto; }

.ms27-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -.01em;
}
.ms27-brand-mark {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: var(--ms27-grad);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 10px 26px rgba(123,60,255,.45);
}

.ms27-topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14,13,34,.55);
    backdrop-filter: blur(14px);
    border: 1px solid var(--ms27-line);
    border-radius: 50px;
    padding: 7px 10px;
}
.ms27-topnav a {
    color: var(--ms27-muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: .2s;
    background: transparent;
    border: 0;
    font-family: inherit;
}
.ms27-topnav a:hover, .ms27-topnav a.is-active {
    color: #fff;
    background: rgba(255,255,255,.10);
}

/* services dropdown inside the fixed nav */
.ms27-dd { position: relative; }
.ms27-dd-toggle { display: inline-flex; align-items: center; gap: 6px; }
.ms27-dd-toggle i.ms27-caret { font-size: .65rem; transition: transform .2s; }
.ms27-dd.is-open .ms27-dd-toggle i.ms27-caret { transform: rotate(180deg); }
.ms27-dd-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 250px;
    background: #16142f;
    border: 1px solid var(--ms27-line);
    border-radius: 16px;
    padding: 9px;
    box-shadow: var(--ms27-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s;
    max-height: 60vh;
    overflow: auto;
}
.ms27-dd.is-open .ms27-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ms27-dd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--ms27-muted) !important;
    font-size: .88rem;
    text-decoration: none;
    background: transparent !important;
}
.ms27-dd-item:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.ms27-dd-item i { color: var(--ms27-magenta); width: 18px; text-align: center; }
.ms27-dd-divider { height: 1px; background: var(--ms27-line); margin: 6px 4px; }

.ms27-chrome-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ms27-grad);
    color: #fff;
    border: 0;
    font-family: inherit;
    font-weight: 800;
    font-size: .9rem;
    padding: 11px 22px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(255,45,155,.32);
    transition: transform .2s, box-shadow .2s;
}
.ms27-chrome-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255,45,155,.42); color: #fff; }

.ms27-burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 13px;
    border: 1px solid var(--ms27-line);
    background: rgba(14,13,34,.6);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}

/* ============ PROGRESS RAIL (dots) + PREV/NEXT ============ */
.ms27-rail {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(14,13,34,.6);
    backdrop-filter: blur(14px);
    border: 1px solid var(--ms27-line);
    border-radius: 50px;
    padding: 10px 16px;
}
.ms27-rail-dots { display: flex; align-items: center; gap: 9px; }
.ms27-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: .25s;
}
.ms27-dot.is-active { width: 26px; border-radius: 50px; background: var(--ms27-grad); }
.ms27-rail-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ms27-line);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: .85rem;
    transition: .2s;
}
.ms27-rail-arrow:hover { background: var(--ms27-grad); border-color: transparent; }
.ms27-rail-count { font-size: .8rem; color: var(--ms27-muted); font-weight: 700; min-width: 54px; text-align: center; }

/* top progress bar */
.ms27-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 61;
    background: rgba(255,255,255,.06);
}
.ms27-progress-fill {
    height: 100%;
    width: 0;
    background: var(--ms27-grad);
    transition: width .35s ease;
}

/* ============ SHARED TYPE ============ */
.ms27-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    background: var(--ms27-grad-soft);
    border: 1px solid var(--ms27-line);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.ms27-eyebrow i { color: var(--ms27-magenta); }
.ms27-h {
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    font-weight: 900;
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -.02em;
}
.ms27-grad-text {
    background: var(--ms27-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ms27-lead { color: var(--ms27-muted); font-size: 1.06rem; line-height: 1.9; max-width: 640px; margin: 0 0 6px; }
.ms27-panel-no { position: absolute; top: 96px; right: 56px; font-size: .82rem; font-weight: 800; color: var(--ms27-muted); letter-spacing: .1em; z-index: 1; }

/* ============ PANEL 1 — INTRO / HERO ============ */
.ms27-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.ms27-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.06; margin: 0 0 20px; letter-spacing: -.03em; }
.ms27-hero-sub { color: var(--ms27-muted); font-size: 1.15rem; line-height: 1.95; max-width: 560px; margin: 0 0 30px; }
.ms27-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ms27-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800; font-size: .98rem;
    text-decoration: none; cursor: pointer;
    border: 0; font-family: inherit;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.ms27-btn-primary { background: var(--ms27-grad); color: #fff; box-shadow: 0 14px 34px rgba(123,60,255,.4); }
.ms27-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(255,45,155,.45); color: #fff; }
.ms27-btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--ms27-line); }
.ms27-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.ms27-hero-trust { color: var(--ms27-muted); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.ms27-hero-trust i { color: #2fe6a8; }

.ms27-hero-visual { position: relative; }
.ms27-hero-frame {
    border-radius: var(--ms27-radius);
    overflow: hidden;
    border: 1px solid var(--ms27-line);
    box-shadow: var(--ms27-shadow);
    position: relative;
}
.ms27-hero-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,10,24,.55));
}
.ms27-hero-frame img { width: 100%; height: 460px; object-fit: cover; display: block; }
.ms27-float {
    position: absolute;
    display: flex; align-items: center; gap: 11px;
    background: rgba(20,18,43,.86);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ms27-line);
    border-radius: 16px;
    padding: 13px 17px;
    box-shadow: var(--ms27-shadow);
}
.ms27-float i { font-size: 1.3rem; color: var(--ms27-magenta); }
.ms27-float strong { display: block; font-size: 1.05rem; }
.ms27-float span { font-size: .76rem; color: var(--ms27-muted); }
.ms27-float-1 { top: 24px; left: -18px; }
.ms27-float-2 { bottom: 30px; right: -16px; }

/* hero inline stats band */
.ms27-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--ms27-line); }
.ms27-hero-stat .n { font-size: 1.9rem; font-weight: 900; }
.ms27-hero-stat .l { font-size: .82rem; color: var(--ms27-muted); }

/* clients strip (inside intro) */
.ms27-clients { margin-top: 34px; }
.ms27-clients-title { font-size: .8rem; color: var(--ms27-muted); margin: 0 0 12px; letter-spacing: .05em; }
.ms27-clients-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.ms27-client img { height: 30px; filter: grayscale(1) brightness(2); opacity: .7; }
.ms27-client span { color: var(--ms27-muted); font-weight: 700; }

/* ============ GENERIC GRIDS ============ */
.ms27-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.ms27-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }

.ms27-card {
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--ms27-line);
    border-radius: var(--ms27-radius);
    padding: 28px 24px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ms27-card:hover { transform: translateY(-6px); border-color: rgba(255,45,155,.4); box-shadow: var(--ms27-shadow); }
.ms27-card-icon {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 1.3rem; color: #fff;
    background: var(--ms27-grad);
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(123,60,255,.35);
}
.ms27-card h4 { font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; }
.ms27-card p { color: var(--ms27-muted); font-size: .92rem; line-height: 1.85; margin: 0; }

/* services panel: split — service cards + dropdown hint */
.ms27-svc-card .ms27-card-num { font-size: .78rem; color: var(--ms27-magenta); font-weight: 800; }

/* ============ WORK / GALLERY (mosaic of campaign case-studies) ============ */
.ms27-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    gap: 16px;
    margin-top: 36px;
}
.ms27-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--ms27-line);
}
.ms27-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ms27-tile:hover img { transform: scale(1.08); }
.ms27-tile-cap {
    position: absolute; inset: auto 0 0 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(7,8,22,.92));
    font-weight: 700; font-size: .92rem;
}
.ms27-tile--big { grid-column: span 2; grid-row: span 2; }
.ms27-tile--wide { grid-column: span 2; }

/* services/blog post tiles reuse */
.ms27-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.ms27-post {
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--ms27-line);
    border-radius: 18px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .25s, border-color .25s;
}
.ms27-post:hover { transform: translateY(-6px); border-color: rgba(47,107,255,.45); }
.ms27-post-media { height: 160px; overflow: hidden; background: #16142f; }
.ms27-post-media img { width: 100%; height: 100%; object-fit: cover; }
.ms27-post-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ms27-magenta); font-size: 1.8rem; }
.ms27-post-body { padding: 18px 18px 20px; }
.ms27-post-body h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 8px; }
.ms27-post-body p { color: var(--ms27-muted); font-size: .86rem; line-height: 1.7; margin: 0 0 12px; }
.ms27-post-more { color: var(--ms27-magenta); font-weight: 800; font-size: .85rem; }

/* ============ PROCESS (horizontal numbered chain) ============ */
.ms27-process { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.ms27-step {
    flex: 1 1 200px;
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--ms27-line);
    border-radius: 18px;
    padding: 26px 22px;
    position: relative;
}
.ms27-step-num {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.2rem; font-weight: 900; color: #fff;
    background: var(--ms27-grad);
    margin-bottom: 14px;
}
.ms27-step h4 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.ms27-step p { color: var(--ms27-muted); font-size: .88rem; line-height: 1.8; margin: 0; }

/* about split */
.ms27-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
.ms27-about-img { position: relative; border-radius: var(--ms27-radius); overflow: hidden; border: 1px solid var(--ms27-line); box-shadow: var(--ms27-shadow); }
.ms27-about-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.ms27-exp-badge {
    position: absolute; bottom: 18px; right: 18px;
    background: var(--ms27-grad);
    border-radius: 16px; padding: 14px 20px; text-align: center;
    box-shadow: 0 14px 30px rgba(255,45,155,.4);
}
.ms27-exp-badge .years { display: block; font-size: 1.9rem; font-weight: 900; }
.ms27-exp-badge .text { font-size: .78rem; opacity: .9; }
.ms27-about-text p { color: var(--ms27-muted); font-size: 1.02rem; line-height: 2; }
.ms27-about-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms27-about-list li { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.ms27-about-list i { color: #2fe6a8; }

/* benefits */
.ms27-ben-card { display: flex; gap: 16px; }
.ms27-ben-card .ms27-card-icon { flex-shrink: 0; }

/* ============ PRICING ============ */
.ms27-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; align-items: stretch; }
.ms27-plan {
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--ms27-line);
    border-radius: var(--ms27-radius);
    padding: 30px 26px;
    position: relative;
    display: flex; flex-direction: column;
}
.ms27-plan--featured { border-color: transparent; background: var(--ms27-grad-soft); box-shadow: var(--ms27-shadow); transform: scale(1.03); }
.ms27-plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--ms27-grad); color: #fff;
    padding: 6px 18px; border-radius: 50px; font-size: .76rem; font-weight: 800;
}
.ms27-plan h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; }
.ms27-plan-price { margin-bottom: 18px; }
.ms27-plan-amount { font-size: 1.8rem; font-weight: 900; }
.ms27-plan-period { color: var(--ms27-muted); font-size: .85rem; margin-right: 4px; }
.ms27-plan-features { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.ms27-plan-features li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .9rem; color: var(--ms27-muted); }
.ms27-plan-features i { color: #2fe6a8; }
.ms27-plan-note { font-size: .82rem; color: var(--ms27-magenta); margin: 0 0 14px; }

/* ============ TESTIMONIALS ============ */
.ms27-test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.ms27-test {
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--ms27-line);
    border-radius: 18px; padding: 26px 22px;
}
.ms27-test-stars { color: #ffd23f; margin-bottom: 12px; font-size: .9rem; }
.ms27-test-text { font-size: .96rem; line-height: 1.9; margin: 0 0 18px; }
.ms27-test-foot { display: flex; align-items: center; gap: 12px; }
.ms27-test-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.ms27-test-av--ph { display: grid; place-items: center; background: var(--ms27-grad); color: #fff; }
.ms27-test-name { font-weight: 800; font-size: .95rem; }
.ms27-test-role { font-size: .8rem; color: var(--ms27-muted); }

/* team */
.ms27-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.ms27-member { text-align: center; }
.ms27-member-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; border: 1px solid var(--ms27-line); margin-bottom: 12px; }
.ms27-member h4 { font-size: 1.02rem; font-weight: 800; margin: 0 0 4px; }
.ms27-member p { color: var(--ms27-magenta); font-size: .84rem; margin: 0; }

/* faq */
.ms27-faq { margin-top: 32px; max-width: 760px; }
.ms27-faq-item { border: 1px solid var(--ms27-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.ms27-faq-q {
    width: 100%; text-align: right; background: transparent; border: 0;
    color: #fff; font-family: inherit; font-weight: 700; font-size: .98rem;
    padding: 18px 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ms27-faq-q i { color: var(--ms27-magenta); transition: transform .25s; }
.ms27-faq-item.is-open .ms27-faq-q i { transform: rotate(180deg); }
.ms27-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; color: var(--ms27-muted); font-size: .9rem; line-height: 1.85; padding: 0 20px; }
.ms27-faq-item.is-open .ms27-faq-a { max-height: 320px; padding: 0 20px 18px; }

/* hours */
.ms27-hours { margin-top: 28px; max-width: 520px; }
.ms27-h-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--ms27-line); }
.ms27-h-row .d { font-weight: 700; }
.ms27-h-row .t { color: var(--ms27-muted); }

/* ============ BOOKING PANEL (light shell for the widget) ============ */
.ms27-booking-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.ms27-booking-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; margin: 0 0 14px; }
.ms27-booking-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.ms27-booking-perks span { display: inline-flex; align-items: center; gap: 10px; color: var(--ms27-text); font-size: .95rem; }
.ms27-booking-perks i { color: #2fe6a8; }
.ms27-widget-shell {
    background: #fff;
    color: #1a1a2e;
    border-radius: var(--ms27-radius);
    padding: 22px;
    box-shadow: var(--ms27-shadow);
    --primary: #2f6bff;
    --dp-brand: #2f6bff;
}

/* ============ CONTACT PANEL ============ */
.ms27-ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.ms27-ct-card { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--ms27-line); border-radius: var(--ms27-radius); padding: 28px; }
.ms27-ct-row { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--ms27-line); }
.ms27-ct-row:last-child { border-bottom: 0; }
.ms27-ct-row i { color: var(--ms27-magenta); font-size: 1.1rem; width: 22px; text-align: center; }
.ms27-ct-lbl { font-size: .78rem; color: var(--ms27-muted); }
.ms27-ct-val { font-weight: 700; font-size: .94rem; }
.ms27-ct-val a { color: inherit; text-decoration: none; }
.ms27-socials { display: flex; gap: 10px; margin-top: 16px; }
.ms27-soc { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--ms27-line); text-decoration: none; transition: .2s; }
.ms27-soc:hover { background: var(--ms27-grad); color: #fff; }
.ms27-map { border-radius: var(--ms27-radius); overflow: hidden; border: 1px solid var(--ms27-line); min-height: 320px; }
.ms27-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* CTA inside contact panel footer area */
.ms27-cta-box { margin-top: 30px; background: var(--ms27-grad); border-radius: var(--ms27-radius); padding: 34px; text-align: center; }
.ms27-cta-box h2 { font-size: 1.7rem; font-weight: 900; margin: 0 0 10px; }
.ms27-cta-box p { opacity: .92; margin: 0 0 18px; }
.ms27-btn-light { background: #fff; color: #14122b; }
.ms27-btn-light:hover { background: #f0f0ff; color: #14122b; }

/* footer inside last panel */
.ms27-foot { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--ms27-line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--ms27-muted); font-size: .85rem; }

/* ============ MOBILE MENU OVERLAY ============ */
.ms27-mobile { position: fixed; inset: 0; z-index: 80; background: rgba(8,8,20,.97); backdrop-filter: blur(8px); transform: translateY(-100%); transition: transform .35s; display: flex; flex-direction: column; padding: 80px 30px 30px; overflow: auto; }
.ms27-mobile.is-open { transform: translateY(0); }
.ms27-mobile a, .ms27-mobile button.ms27-m-link { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700; padding: 16px 8px; border-bottom: 1px solid var(--ms27-line); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: right; font-family: inherit; cursor: pointer; }
.ms27-mobile a i, .ms27-mobile button.ms27-m-link i { color: var(--ms27-magenta); width: 24px; }
.ms27-m-close { position: absolute; top: 22px; left: 26px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--ms27-line); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* z-index overrides for the booking modal */
#bookingModal { z-index: 10050 !important; }
.modal-backdrop { z-index: 10040; }
body .popover { z-index: 10060; }

/* hint to scroll sideways */
.ms27-scroll-hint { position: fixed; bottom: 26px; right: 30px; z-index: 55; color: var(--ms27-muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 8px; background: rgba(14,13,34,.6); border: 1px solid var(--ms27-line); padding: 9px 15px; border-radius: 50px; animation: ms27-nudge 1.8s ease-in-out infinite; }
@keyframes ms27-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }

/* =====================================================================
   RESPONSIVE — graceful fallback to VERTICAL stacking on mobile/tablet
   ===================================================================== */
@media (max-width: 1024px) {
    .ms27-topnav { display: none; }
    .ms27-burger { display: grid; place-items: center; }

    /* turn the horizontal track into a vertical stack */
    .ms27-track {
        display: block;
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }
    .ms27-panel {
        flex: none;
        width: 100%;
        height: auto;
        min-height: auto;
        overflow: visible;
        scroll-snap-align: none;
        display: block;
        border-bottom: 1px solid var(--ms27-line);
    }
    .ms27-inner { padding: 70px 22px 56px; }
    .ms27-panel-no { display: none; }

    .ms27-rail, .ms27-scroll-hint { display: none; }
    .ms27-progress { display: none; }

    .ms27-hero-grid, .ms27-about-grid, .ms27-booking-grid, .ms27-ct-grid { grid-template-columns: 1fr; gap: 30px; }
    .ms27-grid-3, .ms27-grid-2, .ms27-pricing, .ms27-test-grid, .ms27-posts { grid-template-columns: 1fr; }
    .ms27-team-grid { grid-template-columns: repeat(2, 1fr); }
    .ms27-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .ms27-tile--big { grid-column: span 2; grid-row: span 1; }
    .ms27-float { display: none; }
    .ms27-plan--featured { transform: none; }
}

@media (max-width: 560px) {
    .ms27-chrome { padding: 14px 18px; }
    .ms27-team-grid, .ms27-mosaic { grid-template-columns: 1fr; }
    .ms27-tile--big, .ms27-tile--wide { grid-column: span 1; }
    .ms27-hero h1 { font-size: 2.2rem; }
    .ms27-about-list { grid-template-columns: 1fr; }
}
