:root {
    --navy: #EF4A2D;
    --ink: #201C20;
    --deep: #B72F16;
    --blue: #0E7C86;
    --teal: #26B1BD;
    --gold: #EF4A2D;
    --bg: #F4FAFB;
    --tx: #2B2A30;
    --tx2: #62666E;
    --ln: #DDE3EA;
    font-family: Manrope, Inter, system-ui, sans-serif;
    color: var(--tx)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    line-height: 1.65;
    overflow-x: hidden
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--blue)
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.15;
    margin: 0
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.01em
}

h3 {
    font-size: 1.05rem;
    font-weight: 700
}

.w {
    max-width: 1200px !important;
    margin: auto;
    padding: 0 24px
}

.sec {
    padding: 88px 0
}

.alt {
    background: var(--bg)
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--navy);
    background: var(--navy);
    color: var(--ln);
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700
}

.btn.g {
    background: none;
    color: var(--navy)
}

.btn.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ln)
}

header.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--ln)
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.bar img {
    height: 40px;
    width: auto
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center
}

nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem
}

.dd {
    position: relative
}

.dd>div {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    border: 1px solid var(--ln);
    box-shadow: 0 12px 30px rgba(32, 28, 32, .12);
    padding: 12px;
    min-width: 250px
}

.dd:hover>div,
.dd:focus-within>div {
    display: grid
}

.dd>div a {
    padding: 8px 12px;
    font-weight: 500
}

.dd>div a:hover {
    background: var(--bg)
}

.tg {
    display: none;
    background: none;
    border: 1px solid var(--ln);
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    color: var(--ink)
}

.strip {
    background: var(--navy);
    color: var(--ink);
    font-size: .85rem
}

.strip .w {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 24px
}

.strip a {
    color: #fff;
    text-decoration: none
}

.hero {
    padding: 72px 0 96px;
    background: linear-gradient(#fff, var(--bg))
}

.hero-phones {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 9px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    border: 1px solid var(--ln);
    margin-bottom: 24px;
    font-size: .88rem;
    max-width: 100%;
}

.hero-phones .hp-lbl {
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    white-space: nowrap;
}

.hero-phones .hp-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-phones .hp-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tx);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s, transform .2s;
}

.hero-phones .hp-wa-link:hover {
    color: #128C7E;
    text-decoration: none;
}

.hero-phones .hp-wa-icon {
    width: 20px;
    height: 20px;
    fill: #25D366;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform .2s;
}

.hero-phones .hp-wa-link:hover .hp-wa-icon {
    transform: scale(1.15);
}

.hero-phones a {
    color: var(--tx);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s;
}

.hero-phones a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.hero-phones .sep {
    color: #ccc;
}

@media (max-width: 640px) {
    .hero-phones {
        border-radius: 12px;
        padding: 12px 16px;
        width: 100%;
    }

    .hero-phones .hp-list {
        gap: 8px;
    }
}

.hg {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center
}

.ey {
    color: var(--blue);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .12em;
    margin: 0 0 16px
}

.lead {
    color: var(--tx2);
    font-size: 1.1rem;
    /* max-width: 52ch; */
    margin: 20px 0 28px
}

.ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.pts {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: .92rem;
    font-weight: 600
}

.pts li:before {
    content: "✔ ";
    color: var(--teal)
}

.stage {
    position: relative;
    padding: 0 0 40px 40px
}

.stage .m {
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(32, 28, 32, .22)
}

.stage .s {
    position: absolute;
    width: 42%;
    left: 0;
    bottom: 0;
    border: 6px solid #fff;
    border-radius: 8px
}

.stage .t {
    position: absolute;
    width: 30%;
    right: -8px;
    bottom: 12px;
    border: 6px solid #fff;
    border-radius: 8px
}

.prod {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--ln)
}

.prod.r {
    grid-template-columns: 1fr 1.2fr
}

.prod.r .pi {
    order: 2
}

.prod.pm {
    background: var(--navy);
    color: var(--ink);
    padding: 56px 40px;
    border: 0;
    border-radius: 6px;
    margin-bottom: 24px
}

.prod.pm h3,
.prod.pm .tag {
    color: #fff
}

.prod.pm p {
    color: #fff
}

.prod h3 {
    font-size: 1.7rem
}

.tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    background: var(--gold);
    color: var(--ink);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px
}

.tech {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap
}

.tech img {
    height: 30px;
    width: auto;
    background: #fff;
    padding: 4px;
    border-radius: 4px
}

.intro {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px
}

.intro p {
    color: var(--tx2)
}

.fx {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--ln);
    background: #fff;
    margin-top: 40px
}

.fx div {
    padding: 28px;
    border-right: 1px solid var(--ln)
}

.fx div:last-child {
    border: 0
}

.fx img {
    height: 56px;
    margin-bottom: 16px
}

.fx p {
    font-size: .9rem;
    color: var(--tx2);
    margin: 8px 0 0
}

.six {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 40px;
    text-align: center
}

.six img {
    height: 64px;
    margin: 0 auto 10px
}

.six h3 {
    font-size: .9rem
}

.tw {
    overflow-x: auto;
    border: 1px solid var(--ln);
    background: #fff;
    margin-top: 32px
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px
}

caption {
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--ink)
}

th,
td {
    padding: 11px 18px;
    text-align: center;
    border-top: 1px solid var(--ln);
    font-size: .93rem
}

th[scope=row],
thead th:first-child {
    text-align: left;
    font-weight: 600
}

thead th {
    background: var(--navy);
    color: var(--ln);
    position: sticky;
    top: 0
}

thead th.pmx {
    background: var(--deep);
    color: #fff
}

td.y {
    color: #0E7C86;
    font-weight: 800
}

td.n {
    color: #C8341B
}

tr.d th[scope=row] {
    box-shadow: inset 4px 0 var(--gold)
}

tr.d {
    background: #FDEEEA
}

.ben {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 48px
}

.ben li {
    padding: 22px 0;
    border-top: 2px solid var(--navy)
}

.ben p {
    color: var(--tx2);
    margin: 8px 0 0;
    font-size: .93rem
}

.ben li:nth-child(3n+2) {
    margin-top: 36px
}

.ben li:nth-child(3n) {
    margin-top: 72px
}

.q {
    margin: 0 0 40px;
    padding-left: 24px;
    border-left: 4px solid var(--gold)
}

.q p {
    font-size: 1.15rem;
    margin: 0 0 14px
}

.q cite {
    font-weight: 700;
    color: var(--ink);
    font-style: normal
}

.qs {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-top: 40px
}

details {
    border-bottom: 1px solid var(--ln);
    padding: 6px 0
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0
}

summary::-webkit-details-marker {
    display: none
}

summary h3 {
    display: inline;
    font-size: 1.02rem
}

summary:after {
    content: "+";
    float: right;
    font-size: 1.4rem;
    color: var(--gold)
}

details[open] summary:after {
    content: "−"
}

details p {
    margin: 0 0 16px;
    color: var(--tx2);
    max-width: 78ch
}

.seo {
    max-width: 78ch
}

.seo p {
    color: var(--tx2)
}

.ct {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    background: #201C20;
    color: #C9D3E0;
    padding: 88px 0
}

.ct h2,
.ct h3 {
    color: #fff
}

.ct a {
    color: #EF4A2D;
    text-decoration: underline
}

.ct address {
    font-style: normal
}

form {
    background: #fff;
    color: var(--tx);
    padding: 32px;
    border-radius: 6px;
    display: grid;
    gap: 16px
}

label {
    font-weight: 600;
    font-size: .9rem;
    display: grid;
    gap: 6px
}

.phone-input-grp {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    align-items: start;
}

@media (max-width: 480px) {
    .phone-input-grp {
        grid-template-columns: 1fr;
    }
}

input,
select,
textarea {
    font: inherit;
    padding: 12px;
    border: 1px solid #B9C3CF;
    border-radius: 4px;
    width: 100%
}

input[aria-invalid=true],
select[aria-invalid=true] {
    border-color: #C8341B
}

.er {
    color: #C8341B;
    font-size: .82rem;
    min-height: 1em
}

#st {
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 14px;
    border-radius: 4px;
    margin: 0;
    display: none;
    line-height: 1.4;
}

#st.st-info {
    display: block;
    background: #E8F4FD;
    color: #0c5460;
    border: 1px solid #BEE5EB;
}

#st.st-success {
    display: block;
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

#st.st-error {
    display: block;
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

footer {
    background: #161316;
    color: #C9D3E0;
    padding: 64px 0 24px;
    font-size: .92rem
}

.footer-logo {
    max-height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

footer a {
    color: #C9D3E0;
    text-decoration: none
}

footer a:hover {}

footer h2 {
    color: #fff;
    font-size: 1rem
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 8px
}

.fg {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px
}

.fb {
    border-top: 1px solid #3A3639;
    margin-top: 40px;
    padding-top: 20px
}

.wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s
}

.wa:hover {
    transform: scale(1.08)
}

.wa svg {
    width: 32px;
    fill: #fff
}

@media(max-width:960px) {

    .hg,
    .intro,
    .prod,
    .prod.r,
    .ct,
    .qs {
        grid-template-columns: 1fr
    }

    .prod.r .pi {
        order: 0
    }

    .fx,
    .fg {
        grid-template-columns: 1fr 1fr
    }

    .six {
        grid-template-columns: repeat(3, 1fr)
    }

    .ben {
        grid-template-columns: 1fr 1fr
    }

    .ben li:nth-child(n) {
        margin-top: 0
    }

    .tg {
        display: block
    }

    nav ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        border-bottom: 1px solid var(--ln)
    }

    nav.o ul {
        display: flex
    }

    .dd>div {
        display: grid;
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 12px
    }

    .sec {
        padding: 64px 0
    }

    .prod.pm {
        padding: 32px 20px
    }
}

@media(max-width:560px) {

    .fx,
    .fg,
    .ben,
    .pts {
        grid-template-columns: 1fr
    }

    .six {
        grid-template-columns: 1fr 1fr
    }

    .stage {
        padding-left: 0
    }

    .stage .s,
    .stage .t {
        display: none
    }

    .strip .w {
        justify-content: center
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

.prod.pm .tag {
    background: #fff;
    color: var(--ink)
}

.prod.pm .btn.gold {
    background: #fff;
    border-color: #fff
}

/* ===== MOBILE RESPONSIVE + NAVBAR PATCH ===== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px
}

body {
    overflow-wrap: break-word
}

input,
select,
textarea {
    font-size: 16px
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.stage .t {
    right: 0
}

.ct {
    display: block
}

.ct .w {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start
}

.tw th[scope=row],
.tw thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1
}

.tw th[scope=row] {
    background: #fff
}

.tw tr.d th[scope=row] {
    background: #FDEEEA
}

.tw thead th:first-child {
    background: var(--navy);
    z-index: 2
}

/* navbar */
.tg {
    align-items: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer
}

.tg:before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px currentColor, 0 -6px currentColor
}

.dd>a:after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s
}

.dd.open>a:after {
    transform: rotate(225deg) translateY(-2px)
}

.dd.open>div {
    display: grid
}

.dd>div {
    max-height: 70vh;
    overflow-y: auto
}

@media(max-width:1100px) {
    nav ul {
        gap: 18px
    }

    nav a {
        font-size: .9rem
    }
}

@media(max-width:960px) {
    .tg {
        display: inline-flex
    }

    nav ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        gap: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 4px 20px 20px;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        border-bottom: 1px solid var(--ln);
        box-shadow: 0 14px 28px rgba(0, 0, 0, .12)
    }

    nav.o ul {
        display: flex
    }

    nav ul li {
        border-bottom: 1px solid var(--ln)
    }

    nav ul li:last-child {
        border: 0;
        padding-top: 16px
    }

    nav ul a {
        display: block;
        padding: 14px 4px;
        font-size: 1rem
    }

    nav ul a.btn {
        display: flex;
        padding: 14px 26px
    }

    .dd:hover>div,
    .dd:focus-within>div {
        display: none
    }

    .dd>div {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 8px 12px;
        min-width: 0;
        max-height: none
    }

    .dd.open>div {
        display: grid
    }

    .dd>div a {
        padding: 11px 8px;
        font-size: .95rem
    }

    .hero {
        padding: 48px 0 64px
    }

    .hg {
        gap: 40px
    }

    .hg,
    .intro,
    .prod,
    .prod.r,
    .ct .w,
    .qs {
        grid-template-columns: 1fr
    }

    .prod.r .pi {
        order: 0
    }

    .prod {
        gap: 28px;
        padding: 40px 0
    }

    .prod.pm {
        padding: 32px 20px
    }

    .stage {
        padding-left: 0;
        max-width: 640px;
        margin: 0 auto
    }

    .ct {
        padding: 56px 0
    }

    .ct .w {
        gap: 32px
    }

    .sec {
        padding: 56px 0
    }

    .fx {
        grid-template-columns: 1fr 1fr
    }

    .fx div {
        border-bottom: 1px solid var(--ln)
    }

    .fx div:nth-child(2n) {
        border-right: 0
    }

    .fx div:nth-last-child(-n+2) {
        border-bottom: 0
    }

    .six {
        grid-template-columns: repeat(3, 1fr)
    }

    .ben {
        grid-template-columns: 1fr 1fr;
        gap: 0 24px
    }

    .ben li:nth-child(n) {
        margin-top: 0
    }

    .fg {
        grid-template-columns: 1fr 1fr
    }

    .fg>div:first-child {
        grid-column: 1/-1
    }

    footer {
        padding-bottom: 96px
    }

    .wa {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px
    }
}

@media(max-width:560px) {
    .w {
        padding: 0 16px
    }

    .sec,
    .ct {
        padding: 44px 0
    }

    h1 {
        font-size: clamp(1.85rem, 8vw, 2.3rem)
    }

    .strip .w {
        justify-content: center;
        text-align: center;
        gap: 8px
    }

    .strip span {
        display: block;
        width: 100%
    }

    .ctas {
        flex-direction: column
    }

    .ctas .btn {
        width: 100%
    }

    .pts,
    .fx,
    .ben,
    .fg {
        grid-template-columns: 1fr
    }

    .fx div {
        border-right: 0
    }

    .fx div:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--ln)
    }

    .fx div:last-child {
        border-bottom: 0
    }

    .six {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px
    }

    .stage .s,
    .stage .t {
        display: none
    }

    form {
        padding: 20px 16px
    }

    summary {
        padding: 16px 32px 16px 0
    }

    .fb {
        text-align: center;
        font-size: .85rem
    }
}

/* =====================================================================
   MOBILE RESPONSIVE + STICKY WHATSAPP FIX
   Paste this block as the LAST thing inside your existing
   (after the "MOBILE RESPONSIVE + NAVBAR PATCH" block). No content changes.
   ===================================================================== */

/* ---------- 1. Base: stop sideways scroll without breaking fixed/sticky ---------- */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: clip;
    max-width: 100%;
    position: relative;
}

/* 'clip' keeps position:fixed/sticky working on iOS */
img,
svg,
video,
iframe {
    max-width: 100%;
}

section,
header,
footer,
main {
    max-width: 100%;
}

/* ---------- 2. STICKY WHATSAPP BUTTON (always visible, never clipped) ---------- */
.wa {
    position: fixed !important;
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483000 !important;
    /* above header, menu, reCAPTCHA, everything */
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    /* own GPU layer: no flicker/jump while scrolling on mobile */
    will-change: transform;
    touch-action: manipulation;
    animation: waPulse 2.4s ease-out infinite;
}

.wa svg {
    width: 32px !important;
    height: 32px !important;
    fill: #fff;
    flex-shrink: 0;
    pointer-events: none;
}

.wa:hover {
    transform: translateZ(0) scale(1.08);
}

.wa:active {
    transform: translateZ(0) scale(.95);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, .55);
    }

    70% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .28), 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa {
        animation: none;
    }
}

@media (max-width: 960px) {
    .wa {
        width: 54px;
        height: 54px;
        right: calc(14px + env(safe-area-inset-right, 0px)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .wa svg {
        width: 30px !important;
        height: 30px !important;
    }

    footer {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    /* last footer line never hides under the icon */
}

/* ---------- 3. Top strip ---------- */
@media (max-width: 960px) {
    .strip .w {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        padding: 8px 16px;
    }

    .strip span {
        display: block;
        width: 100%;
        line-height: 1.5;
    }

    .strip a {
        display: inline-block;
        padding: 2px 0;
    }
}

@media (max-width: 560px) {
    .strip {
        font-size: .78rem;
    }
}

/* ---------- 4. Header / menu ---------- */
@media (max-width: 960px) {
    header.top {
        position: sticky;
        top: 0;
    }

    .bar {
        height: 64px;
        gap: 12px;
        justify-content: space-between;
    }

    .bar img {
        height: 34px;
        max-width: 150px;
        object-fit: contain;
    }

    nav ul {
        top: 64px;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
    }

    html {
        scroll-padding-top: 76px;
    }

    .tg {
        padding: 8px 14px;
        border-radius: 6px;
        background: #fff;
        margin-left: auto;
    }
}

/* ---------- 5. Hero ---------- */
@media (max-width: 960px) {
    .hg {
        gap: 32px;
    }

    .hero-phones {
        display: flex;
        width: 100%;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .hero-phones .hp-list {
        width: 100%;
        gap: 8px 14px;
        justify-content: flex-start;
    }

    .hero-phones .sep {
        display: none;
    }

    .hero-phones .hp-wa-link {
        font-size: .92rem;
        min-height: 36px;
    }

    .lead {
        max-width: none;
        font-size: 1rem;
    }

    .stage {
        max-width: 100%;
        padding: 0 0 28px 0;
    }

    .stage .s {
        width: 38%;
        left: 8px;
        bottom: 0;
        border-width: 4px;
    }

    .stage .t {
        width: 26%;
        right: 8px;
        bottom: 8px;
        border-width: 4px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 32px 0 48px;
    }

    .hero-phones {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-phones .hp-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    h1 {
        font-size: clamp(1.65rem, 7.2vw, 2.1rem);
        line-height: 1.2;
    }

    .ey {
        font-size: .72rem;
    }

    .stage .s,
    .stage .t {
        display: none;
    }

    .stage .m {
        box-shadow: 0 16px 32px rgba(32, 28, 32, .2);
    }
}

/* ---------- 6. Headings & section spacing ---------- */
@media (max-width: 960px) {
    h2 {
        font-size: clamp(1.4rem, 5.4vw, 1.9rem);
    }

    .w h2 {
        text-align: left;
    }

    #who h2 {
        max-width: none !important;
    }
}

/* ---------- 7. Product cards ---------- */
@media (max-width: 960px) {
    .prod h3 {
        font-size: 1.35rem;
    }

    .prod .pi {
        display: block;
    }

    .prod .pi img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .prod.pm {
        border-radius: 10px;
    }

    .tech {
        gap: 8px;
    }

    .tech img {
        height: 28px;
    }
}

@media (max-width: 560px) {
    .prod {
        padding: 28px 0;
        gap: 20px;
    }

    .prod.pm {
        padding: 24px 16px;
    }

    .prod .ctas {
        flex-direction: column;
    }

    .prod .ctas .btn {
        width: 100%;
    }
}

/* ---------- 8. Feature grids ---------- */
@media (max-width: 560px) {
    .fx {
        margin-top: 28px;
    }

    .fx div {
        padding: 20px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--ln);
    }

    .fx div:last-child {
        border-bottom: 0;
    }

    .six {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .six img {
        height: 52px;
    }

    .six h3 {
        font-size: .85rem;
    }

    .ben li {
        padding: 18px 0;
    }
}

/* ---------- 9. Tables (100% width on mobile, no sideways scroll) ---------- */
.tw {
    max-width: 100%;
    width: 100%;
    overflow-x: visible;
    border-radius: 8px;
}

.tw table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.tw th,
.tw td {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Column widths: 44% for Feature name, 18% for Advanced, 18% for Pro, 20% for Pro Max */
.tw th:first-child,
.tw td:first-child {
    width: 44% !important;
}

.tw th:nth-child(2),
.tw td:nth-child(2) {
    width: 18% !important;
}

.tw th:nth-child(3),
.tw td:nth-child(3) {
    width: 18% !important;
}

.tw th:nth-child(4),
.tw td:nth-child(4) {
    width: 20% !important;
}

@media (max-width: 640px) {
    caption {
        padding: 10px 12px;
        font-size: .9rem;
    }

    .tw th,
    .tw td {
        padding: 7px 4px !important;
        font-size: .78rem !important;
        letter-spacing: -.01em;
    }

    .tw th[scope=row] {
        min-width: 0 !important;
        max-width: none !important;
        font-size: .78rem !important;
        padding-left: 8px !important;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {

    .tw th,
    .tw td {
        padding: 6px 2px !important;
        font-size: .72rem !important;
    }

    .tw th[scope=row] {
        font-size: .72rem !important;
        padding-left: 6px !important;
    }
}

/* ---------- 10. Testimonials / FAQ ---------- */
@media (max-width: 560px) {
    .q {
        padding-left: 16px;
        margin-bottom: 28px;
    }

    .q p {
        font-size: 1rem;
    }

    summary {
        padding: 14px 30px 14px 0;
        position: relative;
    }

    summary:after {
        position: absolute;
        right: 0;
        top: 10px;
    }

    summary h3 {
        font-size: .95rem;
        line-height: 1.4;
    }

    details p {
        font-size: .93rem;
    }
}

/* ---------- 11. Contact form ---------- */
@media (max-width: 960px) {
    .ct .w {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ct address a {
        word-break: break-word;
    }
}

@media (max-width: 560px) {
    form {
        padding: 20px 14px;
        border-radius: 8px;
    }

    form .btn {
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* prevents iOS auto-zoom on focus */
    /* reCAPTCHA is 304px wide: scale it down on very narrow phones so it never overflows */
    .g-recaptcha {
        transform-origin: 0 0;
    }
}

@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(.88);
        height: 70px;
    }
}

@media (max-width: 330px) {
    .g-recaptcha {
        transform: scale(.77);
        height: 62px;
    }
}

/* ---------- 12. Footer ---------- */
@media (max-width: 960px) {
    .fg {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .fg>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .fg {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fb {
        text-align: center;
        font-size: .82rem;
    }

    .fb a {
        display: inline-block;
        padding: 2px 0;
    }

    footer {
        padding-top: 44px;
    }
}

/* ---------- 13. Touch targets ---------- */
@media (hover: none) and (pointer: coarse) {

    nav a,
    footer li a,
    .btn,
    summary {
        min-height: 44px;
    }

    footer li a {
        display: inline-flex;
        align-items: center;
    }

    .dd:hover>div {
        display: none;
    }

    /* no sticky hover menus on touch */
    .dd.open>div {
        display: grid;
    }
}

/* =====================================================================
   ADDITIONAL LANDING PAGE COMPONENTS (Feature Grid, Service Box, etc.)
   ===================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.feature-item {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--ln);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item svg {
    width: 22px;
    height: 22px;
    fill: var(--navy);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.service-box {
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    border-top: 3px solid var(--navy);
    border-left: 1px solid var(--ln);
    border-right: 1px solid var(--ln);
    border-bottom: 1px solid var(--ln);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.service-box h3 {
    margin-bottom: 8px;
    color: var(--ink);
}

/* =====================================================================
   GLOBAL / REGIONAL MATRIMONIAL SOFTWARE CARDS (5 IN A ROW)
   ===================================================================== */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.geo-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.geo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.geo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    border-color: #CBD5E1;
}

.geo-card:hover::before {
    background: var(--navy);
}

.geo-card-header {
    margin-bottom: 12px;
}

.geo-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
    background: #E6F6F8;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.geo-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
}

.geo-card p {
    font-size: 0.86rem;
    color: var(--tx2);
    line-height: 1.55;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.geo-card-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.geo-card:hover .geo-card-link {
    gap: 9px;
}

/* Tablet view: 2-3 columns */
@media (max-width: 1100px) {
    .geo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .geo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Mobile view: single column */
@media (max-width: 520px) {
    .geo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .geo-card {
        padding: 20px 16px;
    }
}
