/* ==========================================================================
   LOTODA site redesign (2026-11): hero banner + all sections restyled.
   Loaded LAST in index.html (after leadmark.css) so it wins the cascade over the template CSS.
   Parts: 0. header & menu  1. hero banner  2. #intro "How it works"  3. #software products  4. remaining sections.
   Behaviour lives in js/site.js; Vietnamese text in js/language.js.
   ========================================================================== */

/* ======================= 0. HEADER & MENU ======================= */
/* Current menu item = .is-current (scroll-spy in js/site.js). Desktop: a rounded pill (.nav-ink, added by
   site.js) slides to the current item and follows the mouse. Phones/tablets (<= 1024px): full-screen menu. */

/* A mouse click no longer leaves Bootstrap's black focus box; keyboard users still get a clear ring */
#header a:focus { outline: none !important; }
#header a:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px #00aeda;
    border-radius: 6px;
}

#header .logo { transition: color .3s; }
#header.fixed .logo { color: #0b3a5b; }

/* "Sign up" as a red button */
#header .primary-nav > li > a.nav-cta,
#header.fixed .primary-nav > li > a.nav-cta {
    background: #e84545;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(232, 69, 69, .32);
    transition: background-color .25s, box-shadow .25s, transform .2s;
}
#header .primary-nav > li > a.nav-cta:hover,
#header.fixed .primary-nav > li > a.nav-cta:hover {
    background: #d23636;
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 69, 69, .42);
    transform: translateY(-1px);
}

.nav-ink { display: none; }

/* ---------- Desktop (> 1024px) ---------- */
@media (min-width: 1025px) {
    #header { transition: background-color .35s, box-shadow .35s; }
    #header.fixed {
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
        box-shadow: 0 1px 0 rgba(11, 58, 91, .06), 0 8px 24px rgba(11, 58, 91, .08);
    }
    #header.fixed .header-content { padding: 18px 0; }
    #header .logo { line-height: 40px; }
    .navigation.open { opacity: 1; }

    #header .primary-nav {
        position: relative;
        display: flex;
        align-items: center;
        height: 40px;
        margin: 0;
        padding: 0;
    }
    #header .primary-nav > li:not(.nav-ink) { display: flex; align-items: center; }
    #header .primary-nav > li > a {
        position: relative;
        z-index: 1;
        display: inline-block;
        margin-left: 6px;
        padding: 9px 16px;
        line-height: 20px;
        font-family: 'Be Vietnam Pro', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .05em;
        text-decoration: none;
        color: rgba(255, 255, 255, .78);
        transition: color .25s, background-color .25s, transform .15s;
    }
    #header .primary-nav > li > a:hover,
    #header .primary-nav > li > a.is-current { color: #fff; }
    #header.fixed .primary-nav > li > a { color: #4a6178; }
    #header.fixed .primary-nav > li > a:hover { color: #0b3a5b; }
    #header.fixed .primary-nav > li > a.is-current { color: #00739a; }
    #header .primary-nav > li > a:active { transform: scale(.95); }   /* small "press" feedback */

    #header .primary-nav > li > a.nav-cta { margin-left: 28px; padding: 9px 20px; }
    #header .primary-nav > li > a.dropdown-toggle { margin-left: 18px; padding: 6px; border-radius: 6px; }
    #header .primary-nav > li > a.dropdown-toggle img {
        display: block;
        border-radius: 3px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    }
    #header .dropdown-menu {
        border: 0;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(11, 58, 91, .18);
    }

    /* Sliding pill behind the current / hovered item (position set by js/site.js) */
    .nav-ink {
        display: block;
        position: absolute;
        left: 0;
        z-index: 0;
        margin: 0;
        box-sizing: border-box;
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .22);
        pointer-events: none;
        opacity: 0;
        transition: transform .45s cubic-bezier(.34, 1.3, .64, 1),
                    width .45s cubic-bezier(.34, 1.3, .64, 1),
                    opacity .25s, background-color .35s, border-color .35s;
    }
    #header.fixed .nav-ink {
        background: #e3f4fa;
        border-color: rgba(0, 174, 218, .25);
    }
    .nav-ink.no-anim { transition: none !important; }
}

/* ---------- Phones / tablets (<= 1024px): full-screen menu ---------- */
@media (max-width: 1024px) {
    .navigation { background: linear-gradient(160deg, #051a33 0%, #0b3a5b 60%, #0d4f78 100%); }
    .navigation.open { opacity: 1; }

    /* Items slide up one after another when the menu opens (--i set by js/site.js) */
    .navigation .primary-nav > li {
        margin-bottom: 10px;
        text-align: center;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
    }
    .navigation.open .primary-nav > li {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--i, 0) * 45ms + 80ms);
    }

    #header .primary-nav > li > a,
    #header.fixed .primary-nav > li > a {
        position: relative;
        display: inline-block;
        padding: 6px 4px 12px;
        font-family: 'Be Vietnam Pro', sans-serif;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: .03em;
        text-decoration: none;
        color: rgba(255, 255, 255, .7);
        transition: color .25s;
    }
    #header .primary-nav > li > a.is-current,
    #header.fixed .primary-nav > li > a.is-current,
    #header .primary-nav > li > a:hover,
    #header.fixed .primary-nav > li > a:hover { color: #fff; }

    /* Current section: short accent bar under the text */
    #header .primary-nav > li > a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 28px;
        height: 3px;
        margin-left: -14px;
        border-radius: 3px;
        background: #00aeda;
        transform: scaleX(0);
        transition: transform .3s;
    }
    #header .primary-nav > li > a.is-current::after { transform: scaleX(1); }
    #header .primary-nav > li > a.dropdown-toggle::after,
    #header .primary-nav > li > a.nav-cta::after { display: none; }

    #header .primary-nav > li > a.nav-cta,
    #header.fixed .primary-nav > li > a.nav-cta {
        margin-top: 6px;
        padding: 12px 30px;
        font-size: 18px;
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-ink,
    #header .primary-nav > li,
    #header .primary-nav > li > a,
    #header .primary-nav > li > a::after { transition: none !important; }
}

/* ======================= 1. HERO BANNER ======================= */

/* ---------- Background: auto-rotating photos + navy/blue overlay (fallback: solid navy) ----------
   Layers: .hero-slides (z 0) -> overlay ::before (z 1) -> .hero content + controls (z 2). */
.banner.hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: max(640px, 100vh);
    overflow: hidden;
    background: #0a2540;
}
.banner.hero-banner::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 20, 40, 0.86) 0%, rgba(6, 34, 66, 0.66) 45%, rgba(0, 74, 112, 0.82) 100%);
    pointer-events: none;
}
.hero-slides {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.is-active {
    opacity: 1;
}
/* Slide 1 loads immediately; slides 2-3 only after the page has loaded (.is-loaded, set by js/site.js) */
.hero-slide--1 { background-image: url(../images/hero/hero-1.jpg); }
.hero-slides.is-loaded .hero-slide--2 { background-image: url(../images/hero/hero-2.jpg); }
.hero-slides.is-loaded .hero-slide--3 { background-image: url(../images/hero/hero-3.jpg); }
@media (max-width: 767px) {
    .banner.hero-banner::before {
        background: linear-gradient(180deg, rgba(5, 20, 40, 0.86) 0%, rgba(6, 34, 66, 0.70) 45%, rgba(0, 74, 112, 0.84) 100%);
    }
    .hero-slide--1 { background-image: url(../images/hero/hero-1-sm.jpg); }
    .hero-slides.is-loaded .hero-slide--2 { background-image: url(../images/hero/hero-2-sm.jpg); }
    .hero-slides.is-loaded .hero-slide--3 { background-image: url(../images/hero/hero-3-sm.jpg); }
}
/* Slow zoom on the visible photo (off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    .hero-slide {
        transform: scale(1.06);
        transition: opacity 1.5s ease-in-out, transform 8s linear;
    }
    .hero-slide.is-active {
        transform: scale(1);
    }
}
.hero {
    position: relative;
    z-index: 2;
}

/* Slide controls: dots + pause/play, bottom centre of the banner */
.hero-slides-nav {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}
.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s;
}
.hero-dot[aria-pressed="true"] {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}
.hero-pause {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
}
.hero-pause:hover,
.hero-dot:hover {
    border-color: #fff;
}
.hero-dot:focus-visible,
.hero-pause:focus-visible {
    outline: 2px solid #7fd6f5;
    outline-offset: 3px;
}

/* ---------- Content ---------- */
.hero {
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 150px 20px 80px;
    text-align: center;
    color: #fff;
}
.hero__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 16px;
    border: 1px solid rgba(127, 214, 245, 0.55);
    border-radius: 999px;
    background: rgba(127, 214, 245, 0.10);
    color: #9fe3fb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.hero .hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 32px;
    font-size: clamp(32px, 5.2vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-transform: none;
    text-wrap: balance;
}
.hero .hero__sub {
    max-width: 720px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
}
.hero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.hero__pills li {
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.hero__pills li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #3fd0ff;
    vertical-align: middle;
}

/* ---------- Buttons ---------- */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}
.hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero .hero-btn--primary {
    background: #e84545;
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 69, 69, 0.35);
}
.hero .hero-btn--primary:hover {
    background: #d23535;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(232, 69, 69, 0.45);
}
.hero .hero-btn--ghost {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}
.hero .hero-btn--ghost:hover {
    background: #fff;
    color: #0a2540;
}
.hero .hero-btn:focus-visible,
.hero__apps a:focus-visible,
.hero__social a:focus-visible {
    outline: 3px solid #7fd6f5;
    outline-offset: 3px;
}

/* ---------- App downloads + social ---------- */
.hero__apps-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
.hero__apps-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hero__apps-links a {
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}
.hero__apps-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.hero__apps-links img {
    display: block;
    width: auto;
    height: 40px;
}
.hero__apps-links img.hero__os {
    height: 32px;
}
.hero__social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.hero__social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
}
.hero__social a:hover {
    color: #fff;
}
.hero__social .fa {
    margin-right: 6px;
}

/* ---------- Entrance animation (off for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hero > * {
        animation: heroIn 0.7s ease-out both;
    }
    .hero > *:nth-child(2) { animation-delay: 0.08s; }
    .hero > *:nth-child(3) { animation-delay: 0.16s; }
    .hero > *:nth-child(4) { animation-delay: 0.24s; }
    .hero > *:nth-child(5) { animation-delay: 0.32s; }
    .hero > *:nth-child(n+6) { animation-delay: 0.40s; }
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    .hero {
        padding: 115px 18px 70px;
    }
    .hero__eyebrow {
        font-size: 12px;
        letter-spacing: 0;
    }
    .hero__pills li {
        font-size: 13px;
        padding: 6px 13px;
    }
    .hero .hero-btn {
        flex: 1 1 220px;
    }
    .hero__apps-links img {
        height: 36px;
    }
}

/* (the "About"/#intro section, incl. the description moved out of the banner, is styled in part 2) */

/* ======================= 2. HOW IT WORKS (#intro) ======================= */

/* ---------- Section + text ---------- */
#intro {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #f4f9fc 0%, #e6f3f9 100%);
    font-family: "Be Vietnam Pro", "Open Sans", Arial, sans-serif;
}
#intro h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 18px;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 30px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-transform: none;
    text-wrap: balance;
}
#intro h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    margin-left: -28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00aeda, #3fd0ff);
}
/* overrides the shared ".testimonials p" rule (uppercase, 13px, letter-spacing 2px, white) */
#intro .intro-lead {
    max-width: 780px;
    margin: 0 auto 36px;
    padding: 0 16px;
    color: #4a5d70;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: pretty;
}

/* ---------- Carousel: raised centre card, tilted neighbours peeking in ---------- */
#intro .slider {
    max-width: 1240px;
    margin: 0 auto;
}
@media (min-width: 1600px) {
    #intro .slider { max-width: 1440px; }
}
#intro .owl-stage-outer {
    padding: 24px 0 76px;            /* room for the card shadows (Owl clips overflow) ... */
    margin-bottom: -44px;            /* ... without pushing the controls down */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
#intro .slider__item {
    height: auto;
    padding-top: 70%;                /* fallback for aspect-ratio (diagrams are ~1.43:1) */
    border-radius: 16px;
    background-color: #fff;
    background-origin: content-box;  /* keeps a white margin around the diagram */
    box-shadow: 0 6px 14px rgba(11, 58, 91, 0.10);
    opacity: 0.45;
    transform: perspective(1400px) scale(0.86);
    transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
}
@supports (aspect-ratio: 1) {
    #intro .slider__item {
        aspect-ratio: 10 / 7;
        padding: 12px;
    }
}
#intro .owl-item.is-prev .slider__item {
    opacity: 0.6;
    transform: perspective(1400px) rotateY(16deg) scale(0.86);
    transform-origin: right center;
    cursor: pointer;
}
#intro .owl-item.is-next .slider__item {
    opacity: 0.6;
    transform: perspective(1400px) rotateY(-16deg) scale(0.86);
    transform-origin: left center;
    cursor: pointer;
}
#intro .owl-item.is-prev:hover .slider__item,
#intro .owl-item.is-next:hover .slider__item {
    opacity: 0.85;
}
#intro .owl-item.is-current .slider__item {
    opacity: 1;
    transform: perspective(1400px) translateY(-4px);
    box-shadow:
        0 2px 4px rgba(11, 58, 91, 0.06),
        0 14px 28px rgba(11, 58, 91, 0.14),
        0 32px 60px -12px rgba(11, 58, 91, 0.28);
}

/* ---------- Controls: prev | progress to next photo | counter | pause | next ---------- */
.intro-controls {
    position: relative;              /* above .owl-stage-outer's shadow padding, so buttons stay clickable */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
}
.intro-btn {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0b3a5b;
    font-size: 15px;
    line-height: 44px;
    box-shadow: 0 4px 12px rgba(11, 58, 91, 0.16);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.intro-btn:hover {
    background: #0b3a5b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(11, 58, 91, 0.24);
}
.intro-btn:focus-visible {
    outline: 3px solid #00aeda;
    outline-offset: 3px;
}
.intro-btn--pause {
    width: 36px;
    height: 36px;
    font-size: 12px;
    line-height: 36px;
}
.intro-progress {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(11, 58, 91, 0.12);
}
.intro-progress__bar {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #00aeda, #3fd0ff);
    transform: scaleX(0);
    transform-origin: left center;
}
.intro-progress__bar.is-running {
    animation: introProgress linear forwards;  /* duration set from js/site.js */
}
.intro-controls.is-held .intro-progress__bar {
    animation-play-state: paused;
}
@keyframes introProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.intro-counter {
    flex: none;
    min-width: 58px;
    color: #4a5d70;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.intro-counter b {
    color: #0b3a5b;
    font-size: 17px;
    font-weight: 700;
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    #intro {
        padding: 52px 0 40px;
    }
    #intro .intro-lead {
        margin-bottom: 24px;
        font-size: 15.5px;
        line-height: 1.7;
        text-align: left;            /* long centred paragraphs are hard to read on narrow screens */
    }
    #intro .owl-item.is-current .slider__item {
        box-shadow: 0 2px 4px rgba(11, 58, 91, 0.06), 0 12px 24px -6px rgba(11, 58, 91, 0.24);
    }
    #intro .owl-stage-outer {
        padding: 14px 0 44px;
        margin-bottom: -22px;
        -webkit-mask-image: none;
                mask-image: none;
    }
    #intro .slider__item {
        border-radius: 12px;
    }
    @supports (aspect-ratio: 1) {
        #intro .slider__item { padding: 6px; }
    }
    #intro .owl-item.is-prev .slider__item,
    #intro .owl-item.is-next .slider__item {
        transform: perspective(900px) scale(0.9);
    }
    .intro-controls {
        gap: 10px;
    }
}

/* ======================= 3. PRODUCTS (#software) ======================= */

#software {
    padding: 80px 0 72px;
    background: #fff;
    font-family: "Be Vietnam Pro", "Open Sans", Arial, sans-serif;
}

/* ---------- Heading (same style as #intro) ---------- */
#software h3.title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 18px;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 30px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-transform: none;
}
#software h3.title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    margin-left: -28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00aeda, #3fd0ff);
}
#software p.title {
    margin: 0 0 40px;
    color: #5b6c7d;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- Grid ---------- */
.sw-grid {
    --sw-gap: 24px;
    --sw-cols: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;          /* an incomplete last row sits in the middle */
    gap: var(--sw-gap);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8px;
}
.sw-grid > .row {
    display: contents;                /* rows don't matter any more, only the cards */
}
.sw-grid > .row::before,
.sw-grid > .row::after {
    display: none;                    /* Bootstrap's clearfix would otherwise become invisible flex items */
}
.sw-grid .col-md-3 {
    display: flex;
    flex: 0 0 calc((100% - (var(--sw-cols) - 1) * var(--sw-gap)) / var(--sw-cols));
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    float: none;
}
@media (max-width: 1199px) { .sw-grid { --sw-cols: 3; } }
@media (max-width: 991px)  { .sw-grid { --sw-cols: 2; --sw-gap: 20px; } }

/* ---------- Card: raised, lifts on hover, whole card is clickable ---------- */
#software .card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3ecf3 !important;   /* beats the template's .border-0 */
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(11, 58, 91, 0.05), 0 10px 24px -8px rgba(11, 58, 91, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
#software .card:hover {
    border-color: #cfe3ef !important;
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(11, 58, 91, 0.06), 0 24px 44px -12px rgba(11, 58, 91, 0.30);
}
#software .card-img-top {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 452;
    object-fit: cover;
    border-bottom: 1px solid #edf2f6;
    background: #f1f6fa;
    transition: transform 0.5s ease;
}
#software .card:hover .card-img-top {
    transform: scale(1.04);
}
#software .card-body {
    position: relative;                /* sits above the zoomed image */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 22px 22px;
    background: #fff;
    text-align: left;
}
#software .card-title {
    margin: 0 0 10px;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}
#software .card-body p {
    margin: 0 0 18px;
    color: #4a5d70;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.65;
}
#software .card-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;                  /* links line up at the bottom of every card */
    color: #0089b8 !important;         /* beats .text-muted */
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}
#software .card-body a::after {
    content: "\2192";                  /* arrow */
    transition: transform 0.25s ease;
}
#software .card:hover .card-body a::after {
    transform: translateX(4px);
}
#software .card-body a::before {      /* stretched link: the whole card opens the product page */
    content: "";
    position: absolute;
    top: -9999px; right: 0; bottom: 0; left: 0;  /* reaches up over the image (card clips it) */
    z-index: 1;
    border-radius: 16px;
}
#software .card-body a:focus { outline: none; }
#software .card:focus-within {
    outline: 3px solid #00aeda;
    outline-offset: 3px;
}
#software .card:focus-within:not(:has(:focus-visible)) {
    outline: none;                     /* no ring after a mouse click, where :has() is supported */
}

/* ---------- Phones: one swipeable row, next card peeks in, dots show the position ---------- */
.sw-dots { display: none; }
@media (max-width: 599px) {
    #software {
        padding: 56px 0 48px;
    }
    #software p.title {
        margin-bottom: 22px;
        font-size: 15px;
    }
    .sw-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        margin: 0 -15px;               /* bleed to the screen edges (.container-fluid padding) */
        padding: 8px 20px 26px;        /* room for shadows inside the scroller */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sw-grid::-webkit-scrollbar { display: none; }
    .sw-grid .col-md-3 {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }
    #software .card:hover {
        transform: none;               /* no lift while swiping */
    }
    #software .card-body {
        padding: 16px 18px 18px;
    }
    #software .card-title { font-size: 16px; }
    #software .card-body p { font-size: 14px; }
    .sw-dots {
        display: flex;
        justify-content: center;
        gap: 0;
        margin-top: -8px;
    }
    .sw-dot {                          /* the button is the tap area; ::before is the visible dot */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 28px;
        padding: 0;
        border: 0;
        background: none;
        transition: width 0.2s;
    }
    .sw-dot::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #c7d6e2;
        transition: width 0.2s, background-color 0.2s;
    }
    .sw-dot.is-active { width: 30px; }
    .sw-dot.is-active::before {
        width: 22px;
        background: #00aeda;
    }
    .sw-dot:focus-visible {
        outline: 2px solid #00aeda;
        outline-offset: 0;
        border-radius: 6px;
    }
}

/* ======================= 4. REMAINING SECTIONS ======================= */

#services, #works, #testimonials, #statistics, #pricing-plans, #partner, #contact, footer.footer {
    font-family: "Be Vietnam Pro", "Open Sans", Arial, sans-serif;
}
#services input, #contact input, #contact textarea, #contact button { font-family: inherit; }

/* ---------- Shared section title (same as #intro / #software) ---------- */
#services h3.title,
#works h3.title,
#testimonials h2.title,
#pricing-plans h2.title,
#partner h2.title,
#contact .conForm h5 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 18px;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 30px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-align: center;
    text-transform: none;
}
#services h3.title::after,
#works h3.title::after,
#testimonials h2.title::after,
#pricing-plans h2.title::after,
#partner h2.title::after,
#contact .conForm h5::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    margin-left: -28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00aeda, #3fd0ff);
}
/* subtitle under a title */
#works p.title,
#pricing-plans h2.title + p,
#contact .conForm > p {
    max-width: 680px;
    margin: 0 auto 40px;
    color: #5b6c7d;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

/* Bootstrap rows flattened into a flex/grid parent: drop the clearfix pseudo-elements */
.feat-grid > .row::before, .feat-grid > .row::after,
#works .row.no-gutter::before, #works .row.no-gutter::after,
.price-grid::before, .price-grid::after {
    display: none;
}

/* ======================= Functions & features (#services) ======================= */
#services {
    padding: 80px 0 76px;
    background: #f4f9fc;
}
#services h3.title { margin-bottom: 40px; }
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.feat-grid > .row { display: contents; }
#services .feat-grid .services {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
    padding: 28px 26px 26px;
    float: none;
    border: 1px solid #e3ecf3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(11, 58, 91, 0.04), 0 10px 24px -10px rgba(11, 58, 91, 0.16);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#services .feat-grid .services:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(11, 58, 91, 0.06), 0 22px 40px -14px rgba(11, 58, 91, 0.28);
}
#services .feat-grid .icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #e4f7fd, #c9edf9);
    color: #0089b8;
    font-size: 28px;
}
#services .services-content {
    margin-top: 18px;
    padding: 0;
}
#services .services-content h5 {
    margin: 0 0 8px;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}
#services .services-content p {
    margin: 0;
    color: #4a5d70;
    font-size: 14.5px;
    line-height: 1.65;
}

/* ======================= Projects (#works) ======================= */
#works {
    padding: 80px 0 76px;
    background: #fff;
}
#works .row.no-gutter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 8px;
}
#works .work {
    width: auto;
    padding: 0;
    float: none;
    border-radius: 16px;
    box-shadow: 0 10px 24px -10px rgba(11, 58, 91, 0.30);
}
#works .work-box {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
}
#works .work img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
#works .work-box:hover img { transform: scale(1.06); }
/* caption always visible on a bottom gradient (was hidden until hover) */
#works .work .overlay {
    top: auto;
    bottom: 0;
    height: auto;
    padding: 48px 20px 18px;
    background: linear-gradient(180deg, rgba(5, 20, 40, 0) 0%, rgba(5, 20, 40, 0.82) 100%);
    opacity: 1;
}
#works .work .overlay-caption {
    position: static;
    text-align: left;
    transform: none;
}
#works .work h5,
#works .work p {
    opacity: 1;
    transform: none;
    transition: none;
}
#works .work h5 {
    margin: 0 0 4px;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
#works .work p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13.5px;
}
#works .work p::after {
    content: "\2192";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.25s ease;
}
#works .work-box:hover p::after { transform: translateX(4px); }
#works .work-box:focus-visible {
    outline: 3px solid #00aeda;
    outline-offset: 3px;
}

/* ======================= Video demo (#testimonials) ======================= */
#testimonials {
    padding: 80px 0 84px;
    background: #f4f9fc;
}
#testimonials h2.title { margin-bottom: 36px; }
#testimonials .embed-responsive {
    max-width: 960px;
    height: auto;
    margin: 0 auto;
    padding-bottom: 0;                /* Bootstrap's 56.25% is of the parent width, too tall once max-width applies */
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #0a2540;
    box-shadow: 0 2px 4px rgba(11, 58, 91, 0.06), 0 30px 60px -20px rgba(11, 58, 91, 0.40);
}

/* ======================= Numbers (#statistics) ======================= */
#statistics {
    padding: 84px 0 64px;
    background-image: url(../images/hero/hero-3.jpg);  /* factory/warehouse photo instead of the mountain */
    background-attachment: scroll;
}
@media (max-width: 767px) {
    #statistics { background-image: url(../images/hero/hero-3-sm.jpg); }
}
#statistics::before {
    background: linear-gradient(135deg, rgba(5, 20, 40, 0.90) 0%, rgba(0, 74, 112, 0.84) 100%);
}
#statistics .container { position: relative; }
#statistics .statistics-counter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#statistics .statistics-counter > [class*="col-"] {
    width: auto;
    float: none;
}
#statistics .statistics-counter > [class*="col-"] + [class*="col-"] .single-ststistics-box {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}
#statistics .single-ststistics-box { margin-bottom: 20px; padding: 0 10px; }
#statistics .statistics-content {
    align-items: baseline;
    font-size: 30px;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
/* the number's class "counter" collides with a decorative block in softy-pinko.css (padding + a ::before that
   loads the missing images/fun-facts-bg.png -> 404); neutralise it here */
#statistics .statistics-content .counter {
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
}
#statistics .statistics-content .counter::before,
#statistics .statistics-content .counter::after {
    content: none;
    display: none;
}
#statistics .statistics-content span {
    margin-left: 2px;
    color: #3fd0ff;
}
#statistics .single-ststistics-box h3 {
    margin: 10px 0 0;
    color: #9fe3fb;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ======================= Pricing (#pricing-plans) ======================= */
#pricing-plans {
    padding: 80px 0 84px;
    background: linear-gradient(180deg, #f4f9fc 0%, #e6f3f9 100%);
}
.price-grid {
    --pg-gap: 28px;
    --pg-cols: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;          /* 3 + 2 (centred) on desktop */
    gap: var(--pg-gap);
    margin: 0;
}
.price-grid > [class*="col-"] {
    display: flex;
    flex: 0 0 calc((100% - (var(--pg-cols) - 1) * var(--pg-gap)) / var(--pg-cols));
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    float: none;
}
#pricing-plans .pricing-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 0;
    padding: 28px 24px 26px;
    border: 1px solid #e3ecf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(11, 58, 91, 0.04), 0 12px 28px -12px rgba(11, 58, 91, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#pricing-plans .pricing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(11, 58, 91, 0.06), 0 26px 44px -16px rgba(11, 58, 91, 0.32);
}
#pricing-plans .pricing-header { padding: 0; }
#pricing-plans .pricing-item .pricing-header .pricing-title {
    width: auto;
    height: auto;
    margin: 0;
    color: #0b3a5b;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}
#pricing-plans .pricing-item .pricing-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 0;
}
#pricing-plans .pricing-item .pricing-body .price-wrapper {
    width: auto;
    margin: 16px 0 22px;
    padding: 18px 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0089b8 0%, #00aeda 100%);
}
#pricing-plans .pricing-item.active .pricing-body .price-wrapper {
    background: linear-gradient(135deg, #0b3a5b 0%, #165f8f 100%);  /* business plans: navy instead of pink */
}
#pricing-plans .pricing-item .pricing-body .price-wrapper .price {
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
#pricing-plans .pricing-item .pricing-body .price-wrapper .currency {
    height: auto;
    margin-left: 4px;
    font-size: 17px;
    font-weight: 600;
    top: 0;
}
#pricing-plans .pricing-item .pricing-body .price-wrapper .period {
    margin-top: 4px;
    font-size: 13.5px;
    letter-spacing: 0;
    opacity: 0.92;
}
#pricing-plans .pricing-item .pricing-body .list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
/* feature list: check mark = included, cross = not included (instead of strike-through text) */
#pricing-plans .pricing-item .pricing-body .list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 28px;
    color: #9aa8b5;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
}
#pricing-plans .pricing-item .pricing-body .list li.active { color: #33485c; }
#pricing-plans .pricing-item .pricing-body .list li::before {
    content: "\f00d";                 /* fa-times */
    position: absolute;
    top: 2px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef2f5;
    color: #b3bfca;
    font-family: FontAwesome;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}
#pricing-plans .pricing-item .pricing-body .list li.active::before {
    content: "\f00c";                 /* fa-check */
    background: #dff5fb;
    color: #0089b8;
}
#pricing-plans .pricing-item .pricing-footer { margin-top: auto; }
#pricing-plans .pricing-footer .main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid #0b3a5b;
    border-radius: 999px;
    background: transparent;
    color: #0b3a5b;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
#pricing-plans .pricing-footer .main-button:hover {
    background: #0b3a5b;
    color: #fff;
}
/* the free plan's button is the main call to action, same red as "Start free trial" in the banner */
#pricing-plans .price-grid > [class*="col-"]:first-child .main-button {
    border-color: #e84545;
    background: #e84545;
    color: #fff;
}
#pricing-plans .price-grid > [class*="col-"]:first-child .main-button:hover {
    border-color: #d23535;
    background: #d23535;
}
#pricing-plans .main-button:focus-visible {
    outline: 3px solid #00aeda;
    outline-offset: 3px;
}

/* ======================= Customers (#partner) ======================= */
#partner {
    padding: 80px 0 72px;
    background: #fff;
}
#partner .title-01 { margin-bottom: 26px; }
@media (min-width: 768px) {
    #partner .customer-logos__zoom img {
        border: 1px solid #e3ecf3;
        border-radius: 16px;
        box-shadow: 0 12px 30px -14px rgba(11, 58, 91, 0.22);
    }
}
#partner .customer-logos__hint {
    color: #5b6c7d;
    font-family: inherit;
}

/* ======================= Contact (#contact) ======================= */
#contact {
    padding: 80px 0 84px;
    background: #f4f9fc;
    scroll-margin-top: 80px;          /* "Talk to our team" / project / pricing links land below the fixed header */
}
#contact .conForm { text-align: center; }
#contact #cform {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #e3ecf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(11, 58, 91, 0.04), 0 18px 40px -18px rgba(11, 58, 91, 0.26);
    text-align: left;
}
#contact #cform .field--comments,
#contact #cform .field--antispam,
#contact #cform .submitBnt,
#contact #cform #simple-msg { grid-column: 1 / -1; }
#contact #cform label {
    display: block;
    margin: 0 0 6px;
    color: #0b3a5b;
    font-size: 14px;
    font-weight: 600;
}
#contact #cform input[type="text"],
#contact #cform input[type="email"],
#contact #cform input[name="antispam"],
#contact #cform textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    float: none;
    border: 1px solid #d5e2ec;
    border-radius: 10px;
    background: #fbfdfe;
    color: #1f3347;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#contact #cform textarea { height: 140px; resize: vertical; }
#contact #cform input::placeholder,
#contact #cform textarea::placeholder { color: #8b9aa8; }
#contact #cform input:focus,
#contact #cform textarea:focus {
    border-color: #00aeda;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 218, 0.18);
}
#contact #cform .submitBnt {
    justify-self: center;
    min-height: 50px;
    margin: 6px 0 0;
    padding: 0 36px;
    border: 0;
    border-radius: 999px;
    background: #e84545;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 8px 24px rgba(232, 69, 69, 0.30);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
#contact #cform .submitBnt:hover {
    background: #d23535;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(232, 69, 69, 0.40);
}
#contact #cform .submitBnt:focus-visible {
    outline: 3px solid #00aeda;
    outline-offset: 3px;
}

/* ======================= Footer ======================= */
footer.footer {
    display: block;                   /* leadmark.css makes it a flex row */
    min-height: 0;
    border-top: 0;
    background: #0a2540;
    text-align: left;
}
footer.footer .footer-top {
    padding: 64px 0 16px;
    background: transparent;
}
footer.footer .footer-col { margin-bottom: 36px; }
footer.footer h5 {
    margin: 0 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
footer.footer p {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.7;
}
footer.footer a {
    display: inline;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s;
}
footer.footer a:hover,
footer.footer a:focus-visible { color: #3fd0ff; }
footer.footer .footer-col ul:not(.footer-share) {
    margin: 0;
    padding: 0;
    list-style: none;
}
footer.footer .footer-col ul:not(.footer-share) li {
    padding: 4px 0;
    font-size: 14.5px;
    line-height: 1.5;
}
footer.footer .footer-share {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
footer.footer .footer-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    transition: background-color 0.2s, transform 0.2s;
}
footer.footer .footer-share a:hover {
    background: #00aeda;
    color: #fff;
    transform: translateY(-2px);
}
footer.footer .footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: #071b30;
    text-align: center;
}
footer.footer .footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
}

/* ======================= Tablets ======================= */
@media (max-width: 991px) {
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    #works .row.no-gutter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid { --pg-cols: 2; --pg-gap: 22px; }
    #statistics .statistics-counter { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    #statistics .statistics-counter > [class*="col-"]:nth-child(3) .single-ststistics-box { border-left: 0; }
}

/* ======================= Phones ======================= */
@media (max-width: 599px) {
    #services, #works, #testimonials, #pricing-plans, #partner, #contact { padding: 56px 0 52px; }
    #services h3.title, #works p.title { margin-bottom: 26px; }
    #pricing-plans h2.title + p, #contact .conForm > p { margin-bottom: 24px; font-size: 15px; }

    /* features: compact rows, icon on the left */
    .feat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #services .feat-grid .services { flex-direction: row; gap: 16px; padding: 18px; }
    #services .feat-grid .services:hover { transform: none; }
    #services .feat-grid .icon { width: 46px; height: 46px; border-radius: 12px; font-size: 22px; }
    #services .services-content { margin-top: 0; }
    #services .services-content h5 { font-size: 16px; }
    #services .services-content p { font-size: 14px; }

    /* projects: 2 x 3 square tiles */
    #works .row.no-gutter { gap: 10px; padding: 0 4px; }
    #works .work-box { aspect-ratio: 1 / 1; }
    #works .work .overlay { padding: 36px 12px 12px; }
    #works .work h5 { font-size: 14px; line-height: 1.3; }
    #works .work p { display: none; }

    #testimonials .embed-responsive { border-radius: 12px; }

    #statistics { padding: 56px 0 36px; }
    #statistics .single-ststistics-box h3 { font-size: 14px; }

    /* pricing: one swipeable row (same as the product cards), dots added by js/site.js */
    .price-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        margin: 0 -15px;
        padding: 8px 20px 26px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .price-grid::-webkit-scrollbar { display: none; }
    .price-grid > [class*="col-"] { flex: 0 0 84%; scroll-snap-align: start; }
    #pricing-plans .pricing-item:hover { transform: none; }
    #pricing-plans .pricing-item { padding: 22px 18px 20px; }

    #contact #cform { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; gap: 14px; }
    #contact #cform .submitBnt { justify-self: stretch; }

    footer.footer .footer-top { padding-top: 48px; }
}
