/* ========================
   MALI AGENCY - STYLESHEET
   Modern, bold, dynamic design
   ======================== */

/* ========================
   CSS VARIABLES
   ======================== */
:root {
    /* Brand Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-lilac: #D5B9FB;
    --color-lime: #DFF53E;
    
    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --fs-xs: 0.875rem;      /* 14px */
    --fs-sm: 1rem;          /* 16px */
    --fs-base: 1.125rem;    /* 18px */
    --fs-md: 1.25rem;       /* 20px */
    --fs-lg: 1.5rem;        /* 24px */
    --fs-xl: 2rem;          /* 32px */
    --fs-2xl: 2.5rem;       /* 40px */
    --fs-3xl: 3rem;         /* 48px */
    --fs-4xl: 4rem;         /* 64px */
    --fs-5xl: 5rem;         /* 80px */
    
    /* Spacing */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 1.5rem;     /* 24px */
    --space-lg: 2rem;       /* 32px */
    --space-xl: 3rem;       /* 48px */
    --space-2xl: 4rem;      /* 64px */
    --space-3xl: 6rem;      /* 96px */
    --space-4xl: 8rem;      /* 128px */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ========================
   RESET & BASE STYLES
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================
   UTILITY CLASSES
   ======================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Spacing */
section {
    padding: var(--space-4xl) 0;
}

/* Dark Section */
.section-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Accent Sections */
.section-accent {
    background-color: var(--color-lilac);
    color: var(--color-black);
}

.section-lime {
    background-color: var(--color-lime);
    color: var(--color-black);
}

/* Fade In Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-4xl);
}

h2 {
    font-size: var(--fs-3xl);
}

h3 {
    font-size: var(--fs-xl);
}

em {
    font-style: italic;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-base);
}

.btn-primary {
    background-color: var(--color-lime);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: var(--color-black);
    color: var(--color-lime);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-lilac);
    color: var(--color-black);
}

.btn-accent:hover {
    background-color: var(--color-black);
    color: var(--color-lilac);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-lilac);
    color: var(--color-black);
    transform: translateY(-2px);
}

/* ========================
   NAVIGATION
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
}

/* Logo Styles */
.logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    line-height: 1;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-mali {
    font-size: var(--fs-lg);
    text-transform: lowercase;
}

.logo-mali em {
    font-style: italic;
}

.logo-agency {
    font-size: var(--fs-sm);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    margin-top: -0.2em;
}

/* Logo color variations */
.section-dark .logo,
.footer .logo {
    color: var(--color-white);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-lang { display: inline-flex; align-items: center; gap: 2px; }

.lang-link {
    display: inline-block;
    padding: var(--space-xs) calc(var(--space-xs) + 2px);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1;
    color: var(--color-black);
    text-decoration: none;
    border-radius: var(--radius-sm);
    opacity: 0.4;                       /* the other language is dimmed */
    transition: var(--transition-base);
}
.lang-link:hover { opacity: 1; }

/* current language — BabelLinks added .active via [[+active]] */
.lang-link.active {
    opacity: 1;
    background: var(--color-lilac);     /* lavender pill on the active language */
    pointer-events: none;               /* it's the page you're already on */
    cursor: default;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(80px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}
.hero-grid {                       /* text 2/3, empty right column 1/3 */
    display: grid;
    grid-template-columns: 1fr;   /* було 2fr 1fr */
    align-items: center;
    width: 100%;
}
.hero-content { min-width: 0; }
.hero > .container { position: relative; z-index: 1; }   /* text above the mark */

.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.1; margin-bottom: var(--space-lg); }
.highlight-text {
    background: linear-gradient(135deg, var(--color-lilac) 0%, var(--color-lime) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block;
}
.hero-subtitle { font-size: var(--fs-lg); color: rgba(0,0,0,.7); margin-bottom: var(--space-xl); max-width: 480px; }
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }
/* static SVG mark = hero background, right side, behind the text.
   The SVG is cropped tight to the glyph, so the box below controls placement:
   full hero height, right-aligned, `contain` keeps it undistorted. */
.hero-mark {
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333%;          /* right third of the viewport */
    height: 100%;
    object-fit: contain;     /* swap to `cover` to fill the hero height (crops the sides) */
    object-position: right center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    /* faint full-width backdrop so the stacked text stays readable */
    .hero-mark { width: 100%; object-position: center; opacity: 0.18; }

    .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-black) 0%, transparent 100%);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* ========================
   MARQUEE SECTION
   ======================== */
.marquee-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-lg) 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: var(--space-xl);
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: var(--fs-xl);
    font-weight: 700;
}

.marquee-dot {
    color: var(--color-lime);
}

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

/* ========================
   STATS SECTION
   ======================== */
.stats-section {
    background-color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--color-lilac);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--fs-base);
    color: rgba(0, 0, 0, 0.7);
}

/* ========================
   SECTION HEADERS
   ======================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-lilac);
    margin-bottom: var(--space-sm);
}

.section-dark .section-label {
    color: var(--color-lime);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: var(--fs-lg);
    color: rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================
   PROBLEM SECTION
   ======================== */
/* --- Base (also the no-JS / mobile fallback): a readable stacked layout --- */
.problem-section {
    position: relative;
}

.problem-pin-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: var(--space-3xl);
    align-items: center;
}

.problem-intro .section-title {
    margin-bottom: var(--space-xl);
}

.problem-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.problem-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-xs) 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: 500;
    transition: color var(--transition-base);
}

.problem-nav-rail {
    flex-shrink: 0;
    width: 28px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.25);
    transition: var(--transition-base);
}

.problem-nav-item:hover {
    color: rgba(255, 255, 255, 0.75);
}

.problem-nav-item.is-active {
    color: var(--color-white);
}

.problem-nav-item.is-active .problem-nav-rail {
    width: 56px;
    background-color: var(--color-lime);
}

.problem-nav-item:focus-visible {
    outline: 2px solid var(--color-lime);
    outline-offset: 4px;
}

.problem-stage {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.problem-card {
    padding: var(--space-2xl);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.problem-card:hover {
    border-color: var(--color-lime);
}

.problem-icon {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-lg);
}

.problem-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    font-size: var(--fs-xl);
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-md);
    max-width: 46ch;
}

/* --- Tab stage (added by JS): cards share one cell, only the active shows ---
   No sticky / tall-section scroll-jacking, so it works even when an ancestor
   sets overflow that would disable position: sticky. --steps and the
   .problem-scroll / .problem-pin wrappers are left harmless if present. */
.problem-section.is-tabs .problem-pin {
    height: auto;
    position: static;
    overflow: visible;
}

.problem-section.is-tabs .problem-stage {
    display: grid;
    min-height: 280px;
    align-items: start;
}

.problem-section.is-tabs .problem-card {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

.problem-section.is-tabs .problem-card.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .problem-section.is-tabs .problem-card {
        transition: opacity var(--transition-base);
        transform: none;
    }
}

/* ========================
   SERVICES SECTION — expanding strip
   ======================== */
.services-grid {
    --strip-h: 500px;
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    height: var(--strip-h);
}

.service-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: flex-grow 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s ease,
                color 0.4s ease;
}

.service-card.is-active {
    flex-grow: 7;
    background-color: var(--color-black);
    color: var(--color-white);
}

.service-number {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* Collapsed rail: number on top, vertical title below */
.service-rail {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.service-card.is-active .service-rail {
    opacity: 0;
    pointer-events: none;
}

.service-rail-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: var(--fs-md);
    font-weight: 600;
}

/* Expanded body: fills the card, but capped so the text keeps a readable measure.
   At 100% alone the open card is ~900px wide → ~90 characters per line. */
.service-body {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    max-width: 600px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.35s ease 0.12s;
}

.service-card.is-active .service-body {
    opacity: 1;
    pointer-events: auto;
}

.service-body .service-number {
    margin-bottom: var(--space-md);
}

.service-title {
    margin-bottom: var(--space-md);
}

.service-description {
    margin-bottom: var(--space-lg);
    opacity: 0.85;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.service-features li {
    position: relative;
    padding-left: var(--space-md);
    font-size: var(--fs-sm);
    opacity: 0.85;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-lime);
}

/* Stacked, fully-open cards below the strip breakpoint */
@media (max-width: 992px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        height: auto;
    }

    .service-card {
        position: static;
        flex: none;
        overflow: visible;
        cursor: default;
    }

    .service-card.is-active {
        background-color: var(--color-white);
        color: inherit;
    }

    .service-rail {
        display: none;
    }

    .service-body {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
        padding: var(--space-lg);
    }

    .service-features {
        margin-top: var(--space-md);
    }

    .service-features li::before {
        color: var(--color-lilac);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   WORK / PORTFOLIO SECTION
   ======================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.work-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-view {
    color: var(--color-white);
    font-size: var(--fs-lg);
    font-weight: 600;
}

.work-info {
    padding: var(--space-lg);
}

.work-category {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    opacity: 0.6;
    display: block;
    margin-bottom: var(--space-sm);
}

.work-title {
    margin-bottom: var(--space-sm);
}

.work-description {
    color: rgba(0, 0, 0, 0.7);
    font-size: var(--fs-sm);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ========================
   PROCESS SECTION
   ======================== */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.step-number {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-lilac);
    flex-shrink: 0;
    width: 100px;
}

.step-content {
    flex: 1;
}

.step-title {
    margin-bottom: var(--space-sm);
}

.step-description {
    color: rgba(0, 0, 0, 0.7);
}

/* ========================
   TESTIMONIALS SECTION
   ======================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-black);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-size: var(--fs-base);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: var(--fs-sm);
    opacity: 0.7;
}

.testimonial-stat {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-md);
    border-top: 2px solid var(--color-black);
}

.stat-value {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-black);
}

.stat-label {
    font-size: var(--fs-sm);
    opacity: 0.7;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-3xl);
    align-items: center;
}

.about-content .section-label {
    display: block;
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-text {
    margin-bottom: var(--space-lg);
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.8;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================
   CTA SECTION
   ======================== */
.cta-section {
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 400px;
}

.logo-footer {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
    color: var(--color-black);
    transform: translateY(-4px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-xl);
}

.footer-heading {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    transition: var(--transition-base);
}

.footer-list a:hover {
    color: var(--color-lime);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-base);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: var(--space-xl);
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    /* Hero */
    .hero {
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    /* optional: show the video above the text on phones */
    /* .hero-media { order: -1; } */
    
    /* Sections */
    section {
        padding: var(--space-3xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    /* Grids */
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .step-number {
        width: auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Calculator */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .calculator-summary {
        position: static;
    }
    
    .service-tiers {
        flex-wrap: wrap;
    }
    
    /* Contact Form */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-info {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-subtitle {
        font-size: var(--fs-base);
    }
    
    .section-title {
        font-size: var(--fs-2xl);
    }
    
    .marquee-content span {
        font-size: var(--fs-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-pin-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        align-items: start;
    }
    
    .problem-intro .section-title {
        margin-bottom: var(--space-lg);
    }
    
    .problem-card,
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .service-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .service-tiers {
        padding-left: 0;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .radio-label {
        width: 100%;
        padding: var(--space-sm);
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .contact-details {
        gap: var(--space-md);
    }
}

/* Large Desktop (1600px and above) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

/* ========================
   ANIMATIONS & EFFECTS
   ======================== */

/* Smooth hover effects */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-lilac);
    outline-offset: 4px;
}

/* Selection color */
::selection {
    background-color: var(--color-lime);
    color: var(--color-black);
}

::-moz-selection {
    background-color: var(--color-lime);
    color: var(--color-black);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-lilac);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-lime);
}

/* ========================
   SERVICES CALCULATOR
   ======================== */
.calculator-section {
    position: relative;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.calculator-services {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calculator-heading {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-lime);
}

.service-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    transition: var(--transition-base);
}

.service-option:hover {
    border-color: var(--color-lilac);
    background: rgba(255, 255, 255, 0.08);
}

.service-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    color: var(--color-black);
    font-weight: 700;
    font-size: 14px;
}

.service-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
}

.service-price {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-lime);
}

.service-tiers {
    display: flex;
    gap: var(--space-sm);
    padding-left: 28px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    user-select: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--color-lime);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-lime);
    border-radius: 50%;
}

.radio-label span:last-child {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
}

.calculator-summary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-items {
    min-height: 100px;
    margin-bottom: var(--space-md);
}

.summary-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--space-md) 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    font-size: var(--fs-sm);
    color: var(--color-white);
    flex: 1;
}

.summary-item-tier {
    display: block;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.summary-item-price {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-lime);
    margin-left: var(--space-md);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: var(--space-lg) 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.total-label {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-white);
}

.total-amount {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-lime);
}

.summary-note {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ========================
   CONTACT FORM SECTION
   ======================== */
.contact-section {
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-description {
    font-size: var(--fs-base);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    color: var(--color-black);
    opacity: 0.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-detail-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    font-size: var(--fs-2xl);
    line-height: 1;
}

.contact-detail-item h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-item a {
    color: var(--color-black);
    font-size: var(--fs-base);
    font-weight: 500;
    transition: var(--transition-base);
}

.contact-detail-item a:hover {
    color: var(--color-black);
    text-decoration: underline;
}

.contact-detail-item p {
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-black);
    opacity: 0.8;
}

.contact-social {
    margin-top: var(--space-2xl);
}

.contact-social h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link-contact {
    color: var(--color-black);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.social-link-contact:hover {
    background-color: var(--color-black);
    color: var(--color-lilac);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-black);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--fs-base);
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: #F5F5F5;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-black);
    background-color: var(--color-white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-2xl);
}

.form-error {
    font-size: var(--fs-xs);
    color: #DC2626;
    display: none;
    margin-top: var(--space-xs);
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: #DC2626;
}

.form-group.error .form-error {
    display: block;
}

.form-checkbox-group {
    margin-top: var(--space-sm);
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom-form {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    margin-top: 2px;
}

.form-checkbox:checked ~ .checkbox-custom-form {
    background-color: var(--color-black);
    border-color: var(--color-black);
}

.form-checkbox:checked ~ .checkbox-custom-form::after {
    content: '✓';
    color: var(--color-white);
    font-weight: 700;
    font-size: 12px;
}

.form-checkbox-label span:last-child {
    font-size: var(--fs-sm);
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

.btn-loading {
    display: none;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form button[type="submit"]:disabled:hover {
    transform: none;
}

.form-success {
    background: #10B981;
    color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-md);
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: #10B981;
    border-radius: 50%;
    font-size: var(--fs-xl);
    line-height: 40px;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.form-success p {
    margin: 0;
    line-height: 1.6;
}
/* ===== Contact form popup ===== */
.form-popup{
    position:fixed; inset:0; z-index:1000;
    display:flex; align-items:center; justify-content:center;
    padding:24px;
    background:rgba(10,10,10,.55);
    backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
    opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.form-popup.is-visible{ opacity:1; visibility:visible; }

.form-popup-card{
    position:relative;
    width:100%; max-width:440px;
    background:var(--color-bg, #ffffff);
    color:var(--color-text, #0a0a0a);
    border-radius:var(--radius-lg, 20px);
    padding:48px 32px 32px;
    text-align:center;
    box-shadow:0 30px 80px rgba(0,0,0,.35);
    transform:translateY(16px) scale(.96);
    transition:transform .25s ease;
    font-family:var(--font-primary, "Space Grotesk", system-ui, sans-serif);
}
.form-popup.is-visible .form-popup-card{ transform:translateY(0) scale(1); }

.form-popup-close{
    position:absolute; top:14px; right:16px;
    width:36px; height:36px; line-height:1;
    border:none; background:transparent; cursor:pointer;
    font-size:28px; color:var(--color-muted, #888);
    transition:color .2s ease;
}
.form-popup-close:hover{ color:var(--color-text, #0a0a0a); }

/* Toggle success / error body */
.form-popup-body{ display:none; }
.form-popup.is-success .form-popup-success{ display:block; }
.form-popup.is-error   .form-popup-error{ display:block; }

.form-popup-icon{
    width:64px; height:64px; margin:0 auto 20px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%; font-size:30px; font-weight:700; color:#fff;
}
.form-popup-success .form-popup-icon{ background:var(--color-accent, #6bd968); }
.form-popup-error   .form-popup-icon{ background:#e5484d; }

.form-popup-title{ margin:0 0 10px; font-size:1.4rem; font-weight:700; }
.form-popup-message{ margin:0 0 28px; color:var(--color-muted, #555); line-height:1.5; }
.form-popup-dismiss{ width:100%; }

/* ---- intl-tel-input: match the mali form styling ---- */
.iti { width: 100%; }                      /* fill the .form-group like other inputs */

/* the flag + dial-code button on the left of the field */
.iti__selected-country { background: transparent; border: 0; border-radius: 0; }
.iti__selected-country-primary { padding: 0 8px 0 16px; }
.iti--separate-dial-code .iti__selected-dial-code {
    color: var(--color-text, #0a0a0a);
    font-family: var(--font-primary, "Space Grotesk", sans-serif);
}

/* the dropdown panel */
.iti__dropdown-content {
    background: var(--color-bg, #ffffff);
    color: var(--color-text, #0a0a0a);
    border: 1px solid var(--color-border, rgba(10,10,10,0.14));
    border-radius: var(--radius, 12px);
    font-family: var(--font-primary, "Space Grotesk", sans-serif);
    box-shadow: 0 20px 50px rgba(10,10,10,0.18);
    overflow: hidden;
}
.iti__search-input {
    font-family: inherit;
    border: 0;
    border-bottom: 1px solid var(--color-border, rgba(10,10,10,0.12));
    padding: 12px 14px;
    width: 100%;
}
.iti__country { padding: 9px 14px; }
.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--color-accent-soft, rgba(213,185,251,0.20));   /* #D5B9FB lavender */
}
.iti__dial-code { color: var(--color-text-muted, #777777); }

@media (max-width:480px){
    .form-popup-card{ padding:40px 20px 24px; }
}

/* Loading animation (optional) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================
   PRICING CALCULATOR (.calc-app)
   New project calculator — scoped so it can't touch anything above.
   Fonts (Space Grotesk) are already loaded by the page head.
   ======================== */
.calc-app{
  --bg:#0d0d0f; --panel:#161619; --panel-2:#1d1d21; --line:#2c2c31;
  --text:#f4f4f2; --muted:#9a9aa2; --purple:#d5b9fb; --lime:#dff53e; --radius:14px;
  background:var(--bg); color:var(--text);
  font-family:"Space Grotesk",system-ui,sans-serif; -webkit-font-smoothing:antialiased; line-height:1.45;
}
.calc-app *{box-sizing:border-box}
.calc-app .wrap{max-width:1180px;margin:0 auto;padding:32px 20px 64px}

.calc-app .head{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--panel);border:1px solid var(--line);padding:34px 30px;margin-bottom:28px}
.calc-app .stripes{position:absolute;inset:0 0 auto 0;height:14px;background:repeating-linear-gradient(115deg,var(--lime) 0 18px,transparent 18px 30px,var(--purple) 30px 48px,transparent 48px 60px)}
.calc-app .eyebrow{display:inline-block;margin-top:8px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--purple);font-weight:600}
.calc-app .head h1{margin:.35em 0 .25em;font-size:clamp(26px,4vw,40px);font-weight:700;line-height:1.05;letter-spacing:-.02em}
.calc-app .head p{margin:0;max-width:62ch;color:var(--muted);font-size:15px}
.calc-app .logo{position:absolute;top:26px;right:30px;font-size:20px;font-weight:700;letter-spacing:-.02em}
.calc-app .logo em{color:var(--lime);font-style:italic}

.calc-app .grid{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start}
@media(max-width:880px){.calc-app .grid{grid-template-columns:1fr}.calc-app .logo{display:none}}

.calc-app .group{margin-bottom:26px}
.calc-app .group-title{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 2px 12px;display:flex;align-items:center;gap:10px}
.calc-app .group-title::after{content:"";flex:1;height:1px;background:var(--line)}

.calc-app .svc{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:12px;transition:border-color .18s,background .18s}
.calc-app .svc.on{border-color:var(--purple);background:var(--panel-2)}
.calc-app .svc-head{display:flex;align-items:center;gap:13px;cursor:pointer;user-select:none}
.calc-app .check{width:22px;height:22px;border-radius:7px;border:2px solid var(--line);flex:none;display:grid;place-items:center;transition:.18s;background:transparent}
.calc-app .svc.on .check{background:var(--lime);border-color:var(--lime)}
.calc-app .check svg{width:13px;height:13px;opacity:0;transform:scale(.6);transition:.18s}
.calc-app .svc.on .check svg{opacity:1;transform:scale(1)}
.calc-app .svc-name{font-weight:600;font-size:16px;flex:1}
.calc-app .badge{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:#0d0d0f;background:var(--purple);border-radius:20px;padding:3px 9px;white-space:nowrap}
.calc-app .svc-from{font-size:13px;color:var(--muted);white-space:nowrap}
.calc-app .svc-from b{color:var(--text);font-weight:600}

.calc-app .tiers{display:none;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.calc-app .svc.on .tiers{display:grid}
@media(max-width:520px){.calc-app .tiers{grid-template-columns:1fr}}
.calc-app .tier{border:1px solid var(--line);border-radius:10px;padding:10px 11px;cursor:pointer;transition:.15s;background:var(--panel)}
.calc-app .tier:hover{border-color:#46464d}
.calc-app .tier.sel{border-color:var(--lime);background:rgba(223,245,62,.06)}
.calc-app .tier-top{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.calc-app .tier-label{font-weight:600;font-size:13px}
.calc-app .tier-price{font-size:12.5px;color:var(--lime);font-weight:600;white-space:nowrap}
.calc-app .tier-desc{margin-top:5px;font-size:11.5px;color:var(--muted);line-height:1.35}

.calc-app .sum{position:sticky;top:18px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px 20px}
.calc-app .sum h3{margin:0 0 4px;font-size:18px;font-weight:700}
.calc-app .sum-sub{margin:0 0 16px;font-size:12.5px;color:var(--muted)}
.calc-app .items{display:flex;flex-direction:column;gap:9px;min-height:40px;margin-bottom:6px}
.calc-app .empty{color:var(--muted);font-size:13.5px;padding:8px 0}
.calc-app .item{display:flex;justify-content:space-between;gap:10px;font-size:13px;align-items:baseline}
.calc-app .item .nm{color:var(--text)}
.calc-app .item .nm small{display:block;color:var(--muted);font-size:11px;font-weight:500}
.calc-app .item .pr{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}

.calc-app .totrow{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.calc-app .tot{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.calc-app .tot + .tot{margin-top:10px}
.calc-app .tot .lab{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:600}
.calc-app .tot .lab span{display:block;font-size:10px;letter-spacing:.02em;text-transform:none;color:#6f6f77;font-weight:500}
.calc-app .tot .val{font-size:21px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.calc-app .tot.month .val{color:var(--purple)}
.calc-app .tot.once .val{color:var(--lime)}
.calc-app .tot.zero .val{color:#55555c}

.calc-app .cta{display:block;width:100%;text-align:center;margin-top:20px;padding:14px;background:var(--lime);color:#0d0d0f;border:none;border-radius:10px;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;transition:.15s}
.calc-app .cta:hover{filter:brightness(1.06)}
.calc-app .note{margin:14px 0 0;font-size:11.5px;color:var(--muted);line-height:1.4}
.calc-app .reset{display:block;margin:10px auto 0;background:none;border:none;color:var(--muted);font-family:inherit;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.calc-app .reset:hover{color:var(--text)}

/* ========================
   SERVICE PAGES
   Link on the Home strip card + the service detail page.
   Additive: nothing above is modified.
   ======================== */

/* --- "Детальніше →" link inside the expanding Home card ---
   .service-features is margin-top:auto, so this sits pinned to the card bottom.
   Non-active cards have .service-body { pointer-events:none }, so it's
   unclickable until the card is open — the click-to-expand still works. */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-lime);
    transition: var(--transition-base);
}

.service-link:hover {
    gap: var(--space-sm);
    color: var(--color-white);
}

/* --- Service detail page --- */
.service-hero {
    padding-top: calc(80px + var(--space-3xl));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a:hover {
    color: var(--color-lime);
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-white);
}

.service-hero-number {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-lime);
    margin-bottom: var(--space-sm);
}

.service-hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    margin-bottom: var(--space-md);
}

.service-hero-lead {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 60ch;
    margin-bottom: var(--space-xl);
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-3xl);
    align-items: start;
}

.service-content {
    font-size: var(--fs-base);
    line-height: 1.8;
}

.service-content h2 {
    font-size: var(--fs-xl);
    margin: var(--space-xl) 0 var(--space-sm);
}

.service-content h3 {
    font-size: var(--fs-lg);
    margin: var(--space-lg) 0 var(--space-xs);
}

.service-content p {
    margin-bottom: var(--space-md);
    color: rgba(0, 0, 0, 0.75);
}

.service-content ul {
    margin: 0 0 var(--space-md) var(--space-md);
    list-style: disc;
}

.service-content li {
    margin-bottom: var(--space-xs);
    color: rgba(0, 0, 0, 0.75);
}

.service-aside {
    position: sticky;
    top: 120px;
    padding: var(--space-xl);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-md);
}

.service-aside-title {
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.service-deliverables {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.service-deliverables li {
    position: relative;
    padding-left: var(--space-md);
    font-size: var(--fs-sm);
}

.service-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-lilac);
}

/* --- "Інші послуги" --- */
.service-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.service-mini {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

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

.service-mini-number {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

.service-mini-title {
    font-size: var(--fs-lg);
    font-weight: 700;
}

.service-mini-desc {
    font-size: var(--fs-sm);
    color: rgba(0, 0, 0, 0.7);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    /* cards render white and fully open below this width, so lime would wash out */
    .service-link {
        color: var(--color-black);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .service-link:hover {
        color: var(--color-black);
    }

    .service-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .service-aside {
        position: static;
    }
}

@media (max-width: 480px) {
    .service-aside {
        padding: var(--space-lg);
    }
}

/* ========================
   SERVICES INDEX PAGE (/services)
   Template `servicesList` — hero + editorial row list.
   Additive; no existing rule is modified.
   ======================== */

/* --- shared page hero (reusable by other inner pages) --- */
.page-hero {
    padding-top: calc(80px + var(--space-3xl));
}

.page-hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    margin-bottom: var(--space-md);
}

.page-hero-lead {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 60ch;
}

.services-index-intro {
    max-width: 70ch;
    margin-bottom: var(--space-2xl);
    font-size: var(--fs-base);
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.75);
}

/* --- the list --- */
.services-index-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.service-index-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-xl);
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* background only — changing padding here would reflow the row on every hover */
.service-index-card:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.service-index-number {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.45;
    padding-top: 0.4em;
}

.service-index-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.service-index-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.15;
}

.service-index-desc {
    font-size: var(--fs-base);
    opacity: 0.7;
    max-width: 65ch;
}

.service-index-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.tagpill {
    display: inline-block;
    padding: 4px var(--space-sm);
    font-size: var(--fs-xs);
    font-weight: 500;
    border: 1px solid currentColor;
    border-radius: 100px;
    opacity: 0.6;
}

.service-index-arrow {
    font-size: var(--fs-xl);
    line-height: 1;
    padding-top: 0.15em;
    transition: transform var(--transition-base);
}

.service-index-card:hover .service-index-arrow {
    transform: translateX(8px);
    color: var(--color-lime);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .service-index-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg) var(--space-sm);
    }

    .service-index-title {
        font-size: var(--fs-xl);
    }

    /* the arrow would squeeze the text on a phone */
    .service-index-arrow {
        display: none;
    }
}