/* =========================================================
   MS Technologies — design system
   Bootstrap 5 supplies the grid and utilities; everything visual lives here.
   ========================================================= */

:root {
    --brand: #1363C6;
    --brand-600: #0E4FA3;
    --brand-50: #EEF4FD;
    --cyan: #15ACE1;
    --accent: #F57C00;
    --navy: #0A1633;
    --navy-2: #12224A;
    --ink: #0F172A;
    --body: #475569;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #F6F8FC;
    --white: #FFFFFF;

    --grad: linear-gradient(135deg, #1363C6 0%, #15ACE1 100%);
    --grad-dark: radial-gradient(1200px 600px at 85% -10%, rgba(21, 172, 225, .35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(19, 99, 198, .45), transparent 60%),
        linear-gradient(160deg, #0A1633 0%, #0D1E45 55%, #0A1633 100%);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, .15);
    --shadow-lg: 0 30px 60px -20px rgba(19, 99, 198, .30);
    --ring: 0 0 0 4px rgba(19, 99, 198, .18);

    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --nav-h: 76px;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--brand-600);
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(19, 99, 198, .18);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Layout helpers ---------- */
.section {
    padding: 104px 0;
}

.section-sm {
    padding: 72px 0;
}

.bg-soft {
    background: var(--bg);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    margin-bottom: 28px;
    text-align: left;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    margin-bottom: 16px;
}

.section-head p {
    font-size: 1.075rem;
    color: var(--muted);
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand);
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.eyebrow.on-dark {
    background: rgba(255, 255, 255, .08);
    color: #9fd8ff;
    border: 1px solid rgba(255, 255, 255, .12);
}

.text-grad {
    background: linear-gradient(90deg, #4FB3FF 0%, #15ACE1 50%, #7DD3FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .975rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.btn-x i {
    transition: transform .2s;
}

.btn-x:hover i.bi-arrow-right {
    transform: translateX(4px);
}

.btn-primary-x {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(19, 99, 198, .6);
}

.btn-primary-x:hover {
    background: var(--brand-600);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white-x {
    background: #fff;
    color: var(--ink);
}

.btn-white-x:hover {
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4);
}

.btn-ghost-x {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
}

.btn-ghost-x:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.btn-outline-x {
    background: transparent;
    color: var(--brand);
    border-color: rgba(19, 99, 198, .3);
}

.btn-outline-x:hover {
    background: var(--brand-50);
    border-color: var(--brand);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
}

.link-arrow i {
    transition: transform .2s;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}

.site-nav.scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 30px -12px rgba(15, 23, 42, .15);
}

.site-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav .brand img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
}

.nav-links a:hover {
    color: var(--brand);
    background: var(--brand-50);
}

.nav-links a.active {
    color: var(--brand);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad);
    transform: translateX(-50%);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
}

.nav-panel {
    display: contents;
}

@media (max-width: 1199.98px) {
    .nav-phone {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        display: block;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        padding: 12px 16px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -20px rgba(15, 23, 42, .25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .nav-panel.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-links a {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .nav-links a.active {
        background: var(--brand-50);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-panel .btn-x {
        width: 100%;
        margin-top: 12px;
    }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 150px;
    background: var(--grad-dark);
    color: #cbd5e1;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 560px;
    color: #b8c4d9;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
    color: #b8c4d9;
}

.hero-points i {
    color: #4ade80;
    margin-right: 6px;
}

.hero-visual {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.hero-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hero-tile {
    padding: 26px 22px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    transition: transform .3s, border-color .3s;
}

.hero-tile:nth-child(2),
.hero-tile:nth-child(4) {
    transform: translateY(28px);
}

.hero-tile:hover {
    border-color: rgba(125, 211, 252, .5);
}

.hero-tile .ico {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 10px 24px -8px rgba(21, 172, 225, .7);
}

.hero-tile h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.hero-tile p {
    margin: 0;
    font-size: .9rem;
    color: #9fb0cc;
    line-height: 1.5;
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--r);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25;
    animation: floaty 6s ease-in-out infinite;
}

.float-badge small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-family: var(--font-body);
}

.float-badge .dot {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.1rem;
}

.float-badge.b1 {
    left: -24px;
    bottom: -84px;
}

.float-badge.b2 {
    right: -20px;
    top: -26px;
    animation-delay: -3s;
}

.float-badge.b2 .dot {
    background: var(--brand-50);
    color: var(--brand);
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Stats strip ---------- */
.stats-wrap {
    position: relative;
    z-index: 2;
    margin-top: -78px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, .25);
    border: 1px solid var(--line);
    overflow: hidden;
}

.stat {
    padding: 32px 28px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    font-size: .925rem;
    color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background: var(--grad-dark);
    text-align: center;
}

.page-hero.has-image {
    background-size: cover;
    background-position: center;
}

.page-hero.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 22, 51, .92), rgba(13, 30, 69, .78));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 880px;
    margin: 0 auto 18px;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #b8c4d9;
}

.crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 0;
    padding: 8px 18px;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
    color: #fff;
}

.crumbs a {
    color: #9fb0cc;
}

.crumbs a:hover {
    color: #fff;
}

.crumbs i {
    font-size: .7rem;
    color: #64748b;
}

/* ---------- Cards ---------- */
.card-x {
    position: relative;
    height: 100%;
    padding: 34px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card-x:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.card-x .ico {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 1.5rem;
    transition: background .3s, color .3s, transform .3s;
}

.card-x:hover .ico {
    background: var(--grad);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.card-x h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-x p {
    color: var(--muted);
    margin-bottom: 20px;
}

.card-x .link-arrow {
    margin-top: auto;
}

.card-flex {
    display: flex;
    flex-direction: column;
}

.check-list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: .95rem;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

/* ---------- Why us (home) ---------- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-item {
    padding: 28px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    transition: box-shadow .3s, transform .3s;
}

.why-item:nth-child(even) {
    transform: translateY(32px);
}

.why-item:hover {
    box-shadow: var(--shadow);
}

.why-item .ico {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 1.25rem;
}

.why-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.why-item p {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
}

/* ---------- Projects ---------- */
.project {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--brand);
    border-radius: var(--r-lg);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.project:hover {
    transform: translateY(-6px);
    border-color: var(--brand-600);
    box-shadow: var(--shadow-lg);
}

.project-media {
    border-bottom: 1.5px solid var(--brand);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s;
}

.project:hover .project-media img {
    transform: scale(1.06);
}

.project-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-body p {
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.project-body .link-arrow {
    margin-top: auto;
}

/* ---------- Tech marquee ---------- */
.marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: marquee 32s linear infinite;
}

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

.marquee-track img {
    height: 52px;
    width: auto;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .3s, opacity .3s;
}

.marquee-track img:hover {
    filter: none;
    opacity: 1;
}

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

/* ---------- CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    padding: 72px 56px;
    border-radius: 32px;
    background: var(--grad-dark);
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 172, 225, .45), transparent 70%);
}

.cta > * {
    position: relative;
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    max-width: 760px;
    margin: 0 auto 16px;
}

.cta p {
    color: #b8c4d9;
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 32px;
}

.cta .hero-actions {
    justify-content: center;
}

/* ---------- About ---------- */
.mv-card {
    height: 100%;
    padding: 40px;
    border-radius: var(--r-lg);
    background: var(--bg);
    border: 1px solid var(--line);
}

.mv-card.dark {
    background: var(--grad-dark);
    border: 0;
}

.mv-card.dark h3 {
    color: #fff;
}

.mv-card.dark p {
    color: #b8c4d9;
}

.mv-card .ico {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--grad);
    color: #fff;
    font-size: 1.4rem;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 1.05rem;
    margin: 0;
}

.approach-list {
    display: grid;
    gap: 14px;
}

.approach-item {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .3s, box-shadow .3s;
}

.approach-item:hover {
    border-color: rgba(19, 99, 198, .35);
    box-shadow: var(--shadow);
}

.approach-item .ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 1.25rem;
}

.approach-item h3 {
    font-size: 1.075rem;
    margin-bottom: 4px;
}

.approach-item p {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
}

.approach-panel {
    position: relative;
    height: 100%;
    min-height: 380px;
    padding: 44px;
    border-radius: var(--r-lg);
    background: var(--grad-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.approach-panel .orbs {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 14px;
}

.approach-panel .orbs span {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #7dd3fc;
    font-size: 1.7rem;
}

.approach-panel .orbs span:nth-child(2) {
    transform: translateY(24px);
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 120px 0 36px;
}

.panel-stats div {
    padding: 18px 16px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.panel-stats strong {
    display: block;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.panel-stats span {
    color: #9fb0cc;
    font-size: .85rem;
}

.approach-panel h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.approach-panel p {
    color: #b8c4d9;
    margin: 0;
}

.reason {
    height: 100%;
    padding: 32px 30px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
}

.reason:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.reason .num {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .9;
}

.reason h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.reason p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- Services: process ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(19, 99, 198, .35) 0 8px, transparent 8px 16px);
}

.step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.step .n {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 0 0 8px var(--bg);
    transition: background .3s, color .3s;
}

.step:hover .n {
    background: var(--brand);
    color: #fff;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

/* ---------- Contact ---------- */
.form-card {
    padding: 44px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .25);
}

.form-card h2 {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.form-card > p {
    color: var(--muted);
    margin-bottom: 28px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 600;
}

.field label .req {
    color: #dc2626;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fbfcfe;
    color: var(--ink);
    font: inherit;
    font-size: .975rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.form-status {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: .95rem;
}

.form-status.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.btn-x:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
}

.info-panel {
    height: 100%;
    padding: 44px;
    border-radius: var(--r-lg);
    background: var(--grad-dark);
    color: #b8c4d9;
}

.info-panel h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .2s, border-color .2s;
}

a.info-row:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(125, 211, 252, .4);
}

.info-row .ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--grad);
    font-size: 1.15rem;
}

.info-row small {
    display: block;
    color: #9fb0cc;
    font-size: .8rem;
}

.info-row strong {
    font-family: var(--font-head);
    font-weight: 700;
    word-break: break-word;
}

.offices {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.offices li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .925rem;
}

.offices i {
    color: #7dd3fc;
    margin-top: 2px;
}

.offices strong {
    display: block;
    color: #fff;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.map-card {
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 14px;
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .2s, box-shadow .2s;
}

.faq-item.open {
    border-color: rgba(19, 99, 198, .35);
    box-shadow: var(--shadow);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 26px;
    border: 0;
    background: none;
    text-align: left;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.075rem;
    font-weight: 700;
}

.faq-q i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    transition: transform .3s, background .3s, color .3s;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
    background: var(--brand);
    color: #fff;
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a > div {
    overflow: hidden;
}

.faq-a p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    padding: 88px 0 0;
    background: var(--navy);
    color: #94a3b8;
    font-size: .95rem;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 22px;
}

.footer-logo {
    display: inline-block;
    padding: 10px 14px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #fff;
}

.footer-logo img {
    height: 44px;
    width: auto;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.footer-contact a:hover {
    color: #7dd3fc;
}

.footer-contact i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #7dd3fc;
}

.footer-offices {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-offices li {
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer-offices strong {
    display: block;
    color: #e2e8f0;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 64px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .875rem;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1020;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 12px 28px -8px rgba(19, 99, 198, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--brand-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 72px 0 140px;
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-points {
        justify-content: center;
    }

    .hero-visual {
        margin: 64px auto 0;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 48px;
    }

    .steps::before {
        display: none;
    }

    .why-item:nth-child(even) {
        transform: none;
    }

    .section-head.left {
        text-align: center;
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Wide Bootstrap gutters overflow the viewport on phones */
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .hero-tile {
        padding: 20px 16px;
    }

    .hero-tile:nth-child(2),
    .hero-tile:nth-child(4) {
        transform: translateY(18px);
    }

    .float-badge {
        display: none;
    }

    .stat {
        padding: 24px 12px;
    }

    .stat strong {
        font-size: 1.9rem;
    }

    .why-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 56px 24px;
        border-radius: 24px;
    }

    .form-card,
    .info-panel {
        padding: 28px 22px;
    }

    .approach-panel {
        padding: 30px;
    }

    .faq-q {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .faq-a p {
        padding: 0 20px 20px;
    }

    .hero-actions .btn-x {
        width: 100%;
    }
}
