/* ============================================================
   MIstudio.cz — V3 stylesheet (sand-frame layout, Mai Home ref)
   Mobile-first | WCAG AA | 8px spacing | warm sand palette
   ============================================================ */

/* ---- 1. DESIGN TOKENS ---- */
:root {
    /* Brand palette — warm cream + sand */
    --c-bg:              #F4F0E6;
    --c-bg-alt:          #EFE9DA;
    --c-surface:         #FFFFFF;
    --c-text:            #1A1A18;
    --c-muted:           #5C5A52;
    --c-border:          rgba(26, 26, 24, 0.08);

    /* Dark context */
    --c-dark:            #131311;
    --c-dark-alt:        #1F1F1C;
    --c-text-on-dark:    #F0EBE0;
    --c-muted-on-dark:   #9C9A92;
    --c-border-on-dark:  rgba(240, 235, 224, 0.12);

    /* Accent — warm sand */
    --c-accent:          #C28A4A;
    --c-accent-soft:     #E5C9A0;   /* light sand pro frame & overlay */
    --c-accent-softer:   #F2E4CC;   /* extra soft pro hovers */
    --c-accent-deep:     #A07238;

    /* State */
    --c-success:         #3F7F5C;
    --c-error:           #B23A48;

    /* Spacing (8px scale) */
    --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
    --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

    /* Layout */
    --container-max: 1280px;
    --container-pad: 20px;

    /* Type scale */
    --fs-caption: 12px;
    --fs-body:    16px;
    --fs-h4:      20px;
    --fs-h3:      24px;
    --fs-h2:      32px;
    --fs-display: clamp(34px, 5.2vw, 60px);
    --fs-hero:    clamp(38px, 6vw, 72px);

    /* Fonts */
    --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
    --ff-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Radii */
    --r-pill:  999px;
    --r-frame: 32px;
    --r-card:  24px;
    --r-md:    16px;
    --r-sm:    10px;

    /* Shadows */
    --shadow-card:  0 1px 2px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    --shadow-frame: 0 12px 48px rgba(160, 114, 56, 0.18);

    /* Motion */
    --ease:    cubic-bezier(0.2, 0.7, 0.2, 1);
    --t-fast:  160ms;
    --t-base:  240ms;
}

/* ---- 2. RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ff-ui);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select, button { font-family: inherit; }
em { font-style: italic; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 16px; background: var(--c-accent); color: white; border-radius: var(--r-sm); z-index: 100; }

/* ---- 3. LAYOUT ---- */
.container {
    max-width: var(--container-max);
    padding-inline: var(--container-pad);
    margin: 0 auto;
    width: 100%;
}
.section { padding-block: var(--s-7); }
@media (min-width: 768px) { .section { padding-block: var(--s-8); } }

/* ---- 4. TYPOGRAPHY ---- */
.h-display {
    font-family: var(--ff-display);
    font-size: var(--fs-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin: 0;
    text-wrap: balance;
}
.h-display em {
    font-style: italic;
    font-weight: 500;
    color: var(--c-accent-deep);
}
.h-display strong { font-weight: 600; }

.eyebrow {
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent-deep);
    display: inline-block;
    margin-bottom: var(--s-3);
}

.section-lede {
    color: var(--c-muted);
    max-width: 56ch;
    font-size: 16px;
    line-height: 1.6;
    margin: var(--s-3) 0 0;
}

.section-head { margin-bottom: var(--s-6); }
.section-head--center {
    text-align: center;
    margin-inline: auto;
    max-width: 760px;
}
.section-head--center .section-lede { margin-inline: auto; }
.section-head--row {
    display: grid;
    gap: var(--s-4);
}
@media (min-width: 768px) {
    .section-head--row {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: end;
        gap: var(--s-6);
    }
    .section-head--row .section-lede { margin-top: 0; }
}

.muted-small { color: var(--c-muted); font-size: 13px; }

/* ---- 5. BUTTONS / LINKS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 14px 22px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    border-radius: var(--r-pill);
    transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}
.btn-arrow { width: 16px; height: 16px; display: inline-flex; }
.btn-arrow svg { width: 100%; height: 100%; }
.btn--dark {
    background: var(--c-dark);
    color: var(--c-text-on-dark);
}
.btn--dark:hover { background: #2a2a26; transform: translateY(-1px); }
.btn--accent {
    background: var(--c-accent);
    color: white;
}
.btn--accent:hover { background: var(--c-accent-deep); }
.btn--ghost-dark {
    background: transparent;
    color: var(--c-dark);
    border: 1.5px solid var(--c-dark);
}
.btn--ghost-dark:hover { background: var(--c-dark); color: var(--c-text-on-dark); }
.btn--full { width: 100%; }
.btn--header { display: none; }
@media (min-width: 900px) { .btn--header { display: inline-flex; } }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--c-accent-deep);
    transition: color var(--t-fast);
}
.link-arrow svg { width: 14px; height: 14px; }
.link-arrow:hover { color: var(--c-accent); }
.link-inline {
    color: var(--c-accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-inline:hover { color: var(--c-accent); }

/* ---- 6. HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 240, 230, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--c-border);
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-block: 14px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-weight: 600;
}
.brand-mark { width: 28px; height: 28px; color: var(--c-accent-deep); display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--ff-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.nav-pill { display: none; }
@media (min-width: 900px) {
    .nav-pill { display: flex; }
    .nav-pill ul {
        display: flex;
        align-items: center;
        gap: var(--s-5);
    }
    .nav-pill a {
        display: inline-flex;
        padding: 8px 0;
        font-size: 14px;
        font-weight: 500;
        color: var(--c-text);
        position: relative;
        transition: color var(--t-fast);
    }
    .nav-pill a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 1.5px;
        background: var(--c-accent-deep);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--t-fast) var(--ease);
    }
    .nav-pill a:hover { color: var(--c-accent-deep); }
    .nav-pill a:hover::after { transform: scaleX(1); }
    .nav-pill a.is-active { color: var(--c-accent-deep); }
    .nav-pill a.is-active::after { transform: scaleX(1); }
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.5);
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
    padding: var(--s-4) var(--container-pad) var(--s-5);
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
}
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--s-4);
}
.mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--r-md);
}
.mobile-menu a:hover { background: var(--c-bg-alt); }
.mobile-menu .btn { width: 100%; }

/* ---- 7. HERO FRAME ---- */
.hero-frame { padding-top: var(--s-4); padding-bottom: var(--s-6); }
/* Hero a CTA banner přebíjejí klasický container — chceme širší frame */
.hero-frame > .container,
.cta-banner-section > .container {
    max-width: 1600px;
}
.frame {
    background: var(--c-accent-soft);
    border-radius: var(--r-frame);
    padding: 14px;
    box-shadow: var(--shadow-frame);
}
@media (min-width: 700px) { .frame { padding: 20px; } }

.hero-photo {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--c-dark);
}
@media (min-width: 600px)  { .hero-photo { aspect-ratio: 16/10; } }
@media (min-width: 1000px) { .hero-photo { aspect-ratio: 16/8; } }
@media (min-width: 1280px) { .hero-photo { aspect-ratio: 21/9; } }
.hero-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--s-4);
    background: linear-gradient(180deg, rgba(19,19,17,0.35) 0%, rgba(19,19,17,0.45) 50%, rgba(19,19,17,0.6) 100%);
    color: white;
}
.hero-title {
    font-family: var(--ff-display);
    font-size: var(--fs-hero);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-3);
    max-width: 18ch;
    text-wrap: balance;
    color: white;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
    opacity: 0.92;
}
.hero-sub {
    max-width: 56ch;
    margin: 0 auto var(--s-5);
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}
@media (min-width: 700px) { .hero-sub { font-size: 17px; } }
.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: white;
    color: var(--c-dark);
    transition: transform var(--t-fast), background var(--t-fast);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.play-btn:hover { transform: scale(1.06); background: var(--c-accent-soft); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }

.hero-kpi {
    display: flex;
    justify-content: space-around;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-3) var(--s-2);
    flex-wrap: wrap;
}
.hero-kpi li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.kpi-num {
    font-family: var(--ff-display);
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}
.kpi-label {
    font-size: 13px;
    color: rgba(19, 19, 17, 0.6);
    margin-top: 4px;
    font-weight: 500;
}

/* ---- 8. ABOUT ---- */
.about-grid {
    display: grid;
    gap: var(--s-6);
}
@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: var(--s-7);
        align-items: center;
    }
}
.about-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-text);
    margin: var(--s-3) 0 0;
}
.about-lead strong { font-weight: 600; color: var(--c-text); }

.about-media {
    display: grid;
    gap: var(--s-3);
}
@media (min-width: 640px) {
    .about-media {
        grid-template-columns: 1.3fr 1fr;
        align-items: stretch;
    }
}

.about-photo {
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--c-bg-alt);
}
.about-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.testimonial-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-4);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-border);
}
.testimonial-card blockquote {
    margin: 0;
    font-family: var(--ff-display);
    font-size: 16px;
    line-height: 1.45;
    color: var(--c-text);
    font-style: italic;
    font-weight: 400;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text);
}
.testimonial-author small {
    color: var(--c-muted);
    font-size: 12px;
}

/* ---- 9. SERVICES ---- */
.service-grid {
    display: grid;
    gap: var(--s-4);
}
@media (min-width: 700px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-5);
    }
}
.service-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: var(--s-6) var(--s-4);
    text-align: center;
    border: 1px solid var(--c-border);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.service-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-4);
}
.service-icon svg { width: 40px; height: 40px; }
.service-title {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 var(--s-3);
    letter-spacing: -0.01em;
    color: var(--c-text);
}
.service-desc {
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ---- 10. REALIZACE ---- */
.realizace-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: var(--s-4);
}
.filter-pills {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
}
.pill {
    display: inline-flex;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    transition: all var(--t-fast);
}
.pill:hover {
    background: var(--c-bg-alt);
    color: var(--c-text);
}
.pill.is-active {
    background: var(--c-dark);
    color: var(--c-text-on-dark);
    border-color: var(--c-dark);
}

.works-grid {
    display: grid;
    gap: var(--s-4);
}
@media (min-width: 600px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
}
.work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.work-card.is-hidden { display: none; }
.work-card__img {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--c-bg-alt);
}
.work-card__img--placeholder { background-color: var(--c-bg-alt); }
.work-card__img--moderni    { background-image: linear-gradient(135deg, #c8c4b5 0%, #a8a59a 100%); }
.work-card__img--luxus      { background-image: linear-gradient(135deg, #d4af7b 0%, #a07238 100%); }
.work-card__img--rekonstrukce { background-image: linear-gradient(135deg, #b8a78a 0%, #8a7960 100%); }
.work-card__img--maly       { background-image: linear-gradient(135deg, #e8dec5 0%, #c9b994 100%); }

.work-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-dark);
    backdrop-filter: blur(8px);
}

.work-card__body {
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    flex: 1;
}
.work-card__body h3 {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--c-text);
}
.work-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-muted);
    margin: 0;
}
.work-loc svg { width: 14px; height: 14px; flex-shrink: 0; }
.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--s-2);
}
.work-meta small { color: var(--c-muted); font-size: 12px; }
.stars { display: inline-flex; gap: 2px; }
.stars span {
    width: 12px; height: 12px;
    background: var(--c-accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    display: inline-block;
}

/* ---- 11. FEATURES (2x2 grid) ---- */
.features-grid {
    display: grid;
    gap: var(--s-4);
}
@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-4);
    }
}
.feature-block {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: var(--s-5);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
    overflow: hidden;
}
@media (min-width: 900px) {
    .feature-block--wide {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
        gap: var(--s-5);
    }
    .feature-block--wide .feature-content { flex: 1 1 50%; }
    .feature-block--wide .feature-viz { flex: 1 1 50%; align-self: stretch; }
}
.feature-block--dark {
    background: var(--c-dark);
    color: var(--c-text-on-dark);
    border-color: transparent;
}
.feature-block--dark .feature-text { color: var(--c-muted-on-dark); }
.feature-block--dark .feature-eyebrow { color: var(--c-accent-soft); }
.feature-block--dark .feature-title { color: var(--c-text-on-dark); }
.feature-block--dark .feature-title strong { color: var(--c-accent-soft); }

.feature-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
.feature-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent-deep);
}
.feature-title {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--c-text);
}
.feature-title strong { color: var(--c-accent-deep); font-weight: 600; }
.feature-text {
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.feature-text--light { color: var(--c-muted-on-dark); }
.feature-text strong { color: var(--c-text); }
.feature-block--dark .feature-text strong { color: var(--c-text-on-dark); }

.feature-viz {
    background: var(--c-bg-alt);
    border-radius: var(--r-md);
    padding: var(--s-5);
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Process viz */
.feature-viz--process { gap: var(--s-3); }
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.process-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    display: block;
    position: relative;
}
.process-dot::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--c-muted);
    opacity: 0.4;
}
.process-dot--active {
    border-color: var(--c-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(194, 138, 74, 0.15);
}
.process-dot--active::after {
    background: var(--c-accent);
    opacity: 1;
}
.process-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
}
.process-line {
    flex: 0 0 56px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-muted) 0 3px, transparent 3px 7px);
    opacity: 0.4;
    align-self: start;
    margin-top: 16px;
}

/* Photo viz — fills feature-viz frame with a single image */
.feature-viz--photo {
    padding: 0;
    overflow: hidden;
    min-height: 280px;
    background: var(--c-bg-alt);
}
.feature-viz__img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Stat viz (dark block) */
.feature-stat {
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
    margin-block: var(--s-2);
}
.feature-stat__num {
    font-family: var(--ff-display);
    font-size: 56px;
    font-weight: 600;
    color: var(--c-accent-soft);
    line-height: 1;
    letter-spacing: -0.02em;
}
.feature-stat__sub {
    font-size: 14px;
    color: var(--c-muted-on-dark);
    font-weight: 500;
}
.feature-block--dark .btn { margin-top: auto; }

/* Search viz */
.feature-viz--search {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding: var(--s-3);
}
.search-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-surface);
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: 13px;
}
.search-mock svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    color: var(--c-muted);
}
.search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--c-surface);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-text);
}
.search-result .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    flex-shrink: 0;
}

/* Brand connection viz */
.feature-viz--brands {
    position: relative;
    min-height: 240px;
    padding: 0;
    background: var(--c-bg-alt);
    color: var(--c-muted);
    overflow: hidden;
}
.brand-lines {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    color: var(--c-accent-deep);
    opacity: 0.35;
}
.brand-node {
    position: absolute;
    padding: 6px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.brand-node--center {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: var(--c-dark);
    color: var(--c-text-on-dark);
    font-weight: 600;
    padding: 10px 18px;
    font-size: 13px;
    z-index: 2;
}
.brand-node--n1 { left: 5%;  top: 8%; }
.brand-node--n2 { right: 5%; top: 8%; }
.brand-node--n3 { left: 2%;  top: 48%; }
.brand-node--n4 { right: 2%; top: 48%; }
.brand-node--n5 { left: 5%;  bottom: 12%; }
.brand-node--n6 { right: 5%; bottom: 12%; }
.brand-node--n7 { left: 50%; bottom: 4%; transform: translateX(-50%); }

/* ---- 12. FAQ ---- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    max-width: 880px;
    margin: 0 auto;
}
.faq-item {
    background: var(--c-surface);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: box-shadow var(--t-fast);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { box-shadow: var(--shadow-card); }
.faq-q {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.4;
}
.faq-q:hover { background: var(--c-bg-alt); }
.faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--c-bg-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background var(--t-fast);
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--c-text);
    border-radius: 2px;
    transition: opacity var(--t-base), background var(--t-fast);
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after  { width: 2px;  height: 12px; }
.faq-q[aria-expanded="true"] .faq-toggle { background: var(--c-dark); }
.faq-q[aria-expanded="true"] .faq-toggle::before { background: var(--c-text-on-dark); }
.faq-q[aria-expanded="true"] .faq-toggle::after  { opacity: 0; }
.faq-a { padding: 0 20px 20px; }
.faq-a p {
    margin: 0;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 70ch;
}

/* ---- 13. CTA BANNER ---- */
.cta-banner-section { padding-block: var(--s-6); }
.cta-banner {
    background: var(--c-accent-soft);
    border-radius: var(--r-frame);
    padding: var(--s-4);
    display: grid;
    gap: var(--s-4);
    align-items: center;
    box-shadow: var(--shadow-frame);
}
@media (min-width: 800px) {
    .cta-banner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: var(--s-6);
        padding: var(--s-6);
    }
}
.cta-photo {
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.cta-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cta-copy h2 {
    margin: 0 0 var(--s-3);
    color: var(--c-dark);
}
.cta-copy h2 em { color: var(--c-accent-deep); }
.cta-copy p {
    margin: 0 0 var(--s-4);
    color: var(--c-dark);
    opacity: 0.82;
    font-size: 16px;
    line-height: 1.6;
    max-width: 50ch;
}
.cta-actions {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

/* ---- 14. CONTACT ---- */
.contact-people {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .contact-people { grid-template-columns: repeat(3, 1fr); } }
.person-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: var(--s-4);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.avatar--lg {
    width: 52px; height: 52px;
    font-size: 16px;
    margin-bottom: var(--s-2);
}
.person-card h3 {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--c-text);
}
.person-role {
    color: var(--c-muted);
    font-size: 13px;
    margin: 0 0 var(--s-2);
}
.person-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.person-lines a {
    font-size: 14px;
    color: var(--c-text);
    word-break: break-all;
}
.person-lines a:hover { color: var(--c-accent-deep); }

.address-card {
    background: var(--c-dark);
    color: var(--c-text-on-dark);
    border-radius: var(--r-card);
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    grid-column: 1 / -1;
}
@media (min-width: 700px) {
    .address-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--s-5);
        padding: var(--s-5) var(--s-6);
    }
}
.address-card__info { display: flex; flex-direction: column; gap: var(--s-2); }
.address-card .eyebrow { color: var(--c-accent-soft); margin-bottom: 0; }
.address-card address {
    color: var(--c-text-on-dark);
    font-size: 18px;
    line-height: 1.5;
}
.address-card .muted-small { color: var(--c-muted-on-dark); }
.address-card__cta {
    background: transparent;
    color: var(--c-text-on-dark);
    border: 1.5px solid var(--c-border-on-dark);
    flex-shrink: 0;
    align-self: flex-start;
}
.address-card__cta:hover {
    background: var(--c-accent-soft);
    color: var(--c-dark);
    border-color: var(--c-accent-soft);
}
@media (min-width: 700px) { .address-card__cta { align-self: auto; } }

/* Form */
.contact-form {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: var(--s-5);
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
.contact-form h3 {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--c-text);
}
.contact-form .muted-small {
    color: var(--c-muted);
    font-size: 13px;
    margin: -8px 0 4px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-row {
    display: grid;
    gap: var(--s-3);
}
@media (min-width: 500px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    font-size: 15px;
    color: var(--c-text);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: 1px;
    background: var(--c-surface);
    border-color: var(--c-accent);
}
.field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}
.field-error {
    color: var(--c-error);
    font-size: 12px;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
    border-color: var(--c-error);
}
.field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.field--check input {
    width: auto;
    margin-top: 3px;
}
.field--check label {
    font-size: 13px;
    color: var(--c-muted);
    font-weight: 400;
}
.field--check label a {
    color: var(--c-accent-deep);
    text-decoration: underline;
}
.form-status {
    font-size: 13px;
    margin: 0;
    min-height: 1.2em;
}
.form-status.is-success { color: var(--c-success); }
.form-status.is-error   { color: var(--c-error); }

/* ---- 15. FOOTER ---- */
.site-footer {
    background: var(--c-bg-alt);
    padding-top: var(--s-7);
    margin-top: var(--s-5);
    border-top: 1px solid var(--c-border);
}
.footer-grid {
    display: grid;
    gap: var(--s-5);
    padding-bottom: var(--s-5);
}
@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
        gap: var(--s-5);
    }
}
.footer-brand .brand { margin-bottom: var(--s-3); }
.footer-tagline {
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}
.footer-h {
    font-family: var(--ff-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-muted);
    margin: 0 0 var(--s-3);
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col a {
    font-size: 14px;
    color: var(--c-text);
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--c-accent-deep); }
.footer-col address {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.7;
}
.footer-small {
    display: block;
    margin-top: 12px;
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.5;
}
.footer-contact { margin-bottom: var(--s-3); }
.footer-legal { margin-top: var(--s-2); }
.footer-legal a {
    color: var(--c-muted);
    font-size: 13px;
}

.footer-bar {
    border-top: 1px solid var(--c-border);
    padding-block: var(--s-3);
}
.footer-bar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
}
.footer-bar small {
    color: var(--c-muted);
    font-size: 12px;
}
.plegi-credit a {
    color: var(--c-accent-deep);
    text-decoration: underline;
}

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