/* ---------- Tokens ---------- */
:root {
    --paper: #f3f1ec;
    --paper-2: #e9e6df;
    --card: #fbfaf7;
    --ink: #151513;
    --ink-2: #3b3a36;
    --muted: #6b6860;
    --line: #d8d4ca;
    --accent: #e0461f;
    --accent-ink: #b8340f;

    --dingo: #1c9b50;
    --kablowka: #0f2a4a;
    --kablowka-amber: #f5a524;

    --night: #121211;
    --night-2: #1d1c1a;
    --night-line: #34322e;
    --night-muted: #a19d93;

    --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
    --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(20, 18, 12, .28);
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.mono {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    z-index: 100;
}

.skip:focus { left: 8px; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1.5px solid var(--ink);
    transition: background .2s, color .2s, transform .2s;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; transition: transform .2s; }

.btn:hover svg { transform: translateX(3px); }

.btn-solid { background: var(--ink); color: var(--paper); }

.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}

.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}

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

.nav a {
    text-decoration: none;
    font-size: 15px;
    color: var(--ink-2);
}

.nav a:hover { color: var(--accent); }

.nav .btn { padding: 9px 16px; font-size: 14px; color: var(--paper); }

.nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-2);
    margin-bottom: 28px;
}

.status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dingo);
    box-shadow: 0 0 0 4px rgba(28, 155, 80, .16);
}

.hero h1 {
    font-size: clamp(40px, 6.2vw, 80px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
    max-width: 12ch;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-lead {
    margin-top: 28px;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.hero-visual {
    position: relative;
    padding-bottom: 12%;
}

.hero-visual .window { transform: rotate(-1.2deg); }

.hero-visual .phone {
    position: absolute;
    right: -2%;
    bottom: -4%;
    width: 36%;
    transform: rotate(3deg);
}

.pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--paper);
    white-space: nowrap;
    z-index: 2;
}

.pin b { color: var(--accent); font-weight: 600; }

.pin-dingo { top: -14px; left: 6%; }

.pin-kab { bottom: 6%; right: 37%; }

/* ---------- Frames ---------- */
.window {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.browser {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
    padding: 0 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}

.browser-bar .dots { display: flex; gap: 6px; }

.browser-bar .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9c4b8;
}

.browser-bar .url {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--card);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11.5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone {
    position: relative;
    padding: 9px;
    border-radius: 34px;
    background: #121212;
    box-shadow:
        inset 0 0 0 1.5px #2b2b2b,
        0 30px 60px -25px rgba(10, 10, 10, .55);
}

.phone::before {
    /* side button */
    content: "";
    position: absolute;
    right: -3px;
    top: 22%;
    width: 3px;
    height: 12%;
    border-radius: 0 2px 2px 0;
    background: #2a2a2a;
}

.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: var(--kablowka);
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 26px;
    padding: 0 18px;
    background: var(--kablowka);
    color: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
}

.phone-status::after {
    /* punch-hole camera */
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: #050505;
}

.phone-status svg { height: 10px; width: auto; fill: #fff; }

.phone-status .icons { display: flex; gap: 5px; align-items: center; }

.phone-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    background: #f3f4f6;
}

.phone-nav span {
    width: 34%;
    height: 4px;
    border-radius: 2px;
    background: #1f2937;
    opacity: .75;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }

.section-head {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .mono { color: var(--muted); padding-top: 12px; }

.section-head h2 {
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 700;
    max-width: 18ch;
}

.section-head p {
    margin-top: 18px;
    font-size: 19px;
    color: var(--ink-2);
    max-width: 38em;
}

/* ---------- For business (offer) ---------- */
#dla-firm { padding-bottom: 0; }

.offer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.offer-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.offer-card:hover { border-color: var(--ink); transform: translateY(-3px); }

.offer-card .mono { color: var(--accent-ink); font-size: 11.5px; }

.offer-card h3 {
    margin-top: 14px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.offer-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.offer-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    font-weight: 600;
    font-size: 15px;
}

.offer-proof svg { width: 16px; height: 16px; transition: transform .2s; }

.offer-card:hover .offer-proof { color: var(--accent-ink); }

.offer-card:hover .offer-proof svg { transform: translateX(3px); }

.offer-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.industries { color: var(--ink-2); font-size: 17px; }

.industries .mono { color: var(--muted); margin-right: 8px; }

/* ---------- Case studies ---------- */
.case + .case {
    margin-top: clamp(64px, 8vw, 110px);
    padding-top: clamp(56px, 7vw, 90px);
    border-top: 1px solid var(--line);
}

.case-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 44px;
}

.case-index {
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: -6px;
}

.case-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.case-title img,
.case-title .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex: none;
}

.case-title .app-icon {
    display: grid;
    place-items: center;
    background: var(--kablowka);
}

.case-title .app-icon svg { width: 34px; height: 34px; }

.case-title h3 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 700;
}

.case-kind { color: var(--muted); margin-top: 8px; font-size: 16px; }

.case-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink-2);
    background: var(--card);
    white-space: nowrap;
}

.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.badge.live i { background: var(--dingo); }

.case-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.case-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.case-grid.flip .story { order: 2; }

.story h4 {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 8px;
}

.story p { color: var(--ink-2); }

.story p + h4 { margin-top: 26px; }

.story .lede {
    font-size: 21px;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 30px;
}

.result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 32px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.result div { background: var(--card); padding: 16px 18px; }

.result strong {
    display: block;
    font-size: 26px;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.result span { font-size: 14px; color: var(--muted); }

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.stack span {
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-2);
}

.case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    align-items: center;
    margin-top: 32px;
}

/* Before / after */
.compare {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
    --pos: 50%;
    touch-action: pan-y;
}

.compare img { width: 100%; user-select: none; -webkit-user-drag: none; }

.compare .before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare .before img { height: 100%; object-fit: cover; object-position: left top; }

.compare .handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
    pointer-events: none;
}

.compare .handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.compare input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.compare-label {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(21, 21, 19, .82);
    color: #fff;
    pointer-events: none;
}

.compare-label.l { left: 12px; }

.compare-label.r { right: 12px; background: var(--dingo); }

.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

/* Kablówka composition */
.kab-shot { position: relative; padding-right: 15%; }

.kab-shot .panel-float {
    position: absolute;
    right: 0;
    top: 12%;
    width: 30%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(15, 42, 74, .45);
    background: #fff;
}

.kab-shot .panel-float img { aspect-ratio: 629 / 1050; object-fit: cover; object-position: top; }

.zoomable { cursor: zoom-in; }

.features {
    list-style: none;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

.features li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 16px;
}

.features li b { color: var(--ink); font-weight: 600; }

.features li .mono { color: var(--muted); padding-top: 3px; font-size: 11.5px; }

/* In progress card */
.next {
    margin-top: clamp(64px, 8vw, 110px);
    padding: clamp(24px, 3.5vw, 44px);
    border: 1.5px dashed #c9c3b6;
    border-radius: 18px;
    background:
        repeating-linear-gradient(-45deg, transparent 0 14px, rgba(21, 21, 19, .025) 14px 15px),
        var(--paper);
}

.next-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }

.next-top .mono { color: var(--muted); }

.badge.wip { color: #8a5a00; border-color: #ead7ae; background: #fbf3df; }

.badge.wip i { background: #e2a20b; }

.next-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.next h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }

.next-kind { margin-top: 8px; color: var(--muted); }

.next-steps { list-style: none; counter-reset: s; }

.next-steps li {
    position: relative;
    padding: 0 0 18px 34px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.next-steps li b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }

.next-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
}

.next-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: 0;
    width: 1.5px;
    background: var(--line);
}

.next-steps li.done::before {
    border-color: var(--dingo);
    background: var(--dingo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.next-steps li.done::after { background: var(--dingo); }

.next-steps li.now::before { border-color: #e2a20b; box-shadow: inset 0 0 0 4px var(--card); background: #e2a20b; }

.next-steps li.now b::after {
    content: "teraz";
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #fbf3df;
    color: #8a5a00;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: 2px;
}

/* DinGO: what's new (tabs) */
.news-label { display: block; margin-bottom: 18px; color: var(--accent-ink); }

.news {
    margin-top: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 3.5vw, 44px);
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.news-tabs {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.news-list button {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 6px;
    padding: 14px 12px 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font: inherit;
    color: var(--ink-2);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: color .2s;
}

.news-list button::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .2s;
}

.news-list button .mono { grid-row: span 2; color: var(--muted); padding-top: 3px; font-size: 11.5px; }

.news-list button b { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }

.news-list button small {
    grid-column: 2;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, margin .3s ease;
}

.news-list button:hover b { color: var(--accent-ink); }

.news-list button[aria-selected="true"]::before { opacity: 1; }

.news-list button[aria-selected="true"] .mono { color: var(--accent-ink); }

.news-list button[aria-selected="true"] small { max-height: 5em; margin-top: 4px; }

.news-panels {
    position: relative;
    border-radius: 12px;
    background:
        radial-gradient(circle at 1px 1px, rgba(21, 21, 19, .07) 1px, transparent 0) 0 0 / 18px 18px,
        var(--paper-2);
    border: 1px solid var(--line);
    min-height: 460px;
    display: grid;
}

.news-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 36px);
}

.news-panel[hidden] { display: none; }

.news-panel img {
    max-height: 520px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #fff;
}

.news-panel.wide img { width: 100%; max-height: none; }

/* Smaller projects */
.minis { margin-top: clamp(64px, 8vw, 110px); }

.minis-title { margin-bottom: 18px; color: var(--muted); font-weight: 500; }

.mini {
    padding: clamp(22px, 3vw, 36px);
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
}

.mini + .mini { margin-top: 18px; }

.mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.mini-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.mini-head .app-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.mini-head .app-icon svg { width: 24px; height: 24px; }

.ss-icon { background: #188038; }

.et-icon { background: #1e293b; }

.mini h4 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1; letter-spacing: -.035em; }

.mini .case-kind { margin-top: 6px; font-size: 15px; }

.mini .badge.wip { margin-bottom: 14px; }

.mini-lede { font-size: 18px; line-height: 1.45; color: var(--ink); }

.mini-points { list-style: none; margin-top: 16px; }

.mini-points li {
    position: relative;
    padding: 7px 0 7px 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 15.5px;
}

.mini-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #188038;
}

.mini .stack { margin-top: 20px; }

.mini .case-links { margin-top: 20px; }

.mini-phones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 22px);
    max-width: 640px;
    justify-self: end;
    width: 100%;
}

.mini-phones .phone { border-radius: 28px; padding: 7px; }

.mini-phones .phone-screen { border-radius: 22px; background: #0f172a; }

.mini-phones .phone-status { background: #0f172a; height: 22px; font-size: 10px; padding: 0 14px; }

.mini-phones .phone-status::after { top: 6px; width: 9px; height: 9px; margin-left: -4.5px; }

.mini-phones .phone-nav { background: #0f172a; }

.mini-phones .phone-nav span { background: #94a3b8; }

/* SmartShift demo (spreadsheet look) */
.ss-demo {
    border: 1px solid #dadce0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    font-family: var(--font);
}

.ss-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
}

.ss-toolbar button {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #dadce0;
    background: #fff;
    font: 600 13px var(--font);
    color: var(--ink);
    cursor: pointer;
}

.ss-toolbar .ss-run { background: #188038; border-color: #188038; color: #fff; }

.ss-toolbar .ss-run:hover { background: #137333; }

.ss-toolbar .ss-reset:hover { background: #f1f3f4; }

.ss-file { margin-left: auto; color: #5f6368; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ss-scroll { overflow-x: auto; }

.ss-sheet {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    color: #202124;
}

.ss-sheet th,
.ss-sheet td {
    border: 1px solid #e3e3e3;
    padding: 0;
    height: 26px;
    text-align: center;
    white-space: nowrap;
}

.ss-sheet thead th,
.ss-sheet tfoot th,
.ss-sheet tfoot td {
    background: #f1f3f4;
    color: #5f6368;
    font-weight: 500;
    padding: 0 8px;
}

.ss-sheet tbody th {
    text-align: left;
    padding: 0 10px;
    font-weight: 500;
    background: #fafafa;
    width: 1%;
}

.ss-sheet .ss-corner { text-align: left; }

.ss-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 84px;
    height: 26px;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.ss-cell:hover { background: #e8f0fe; }

.ss-chip {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.ss-naprawy { background: #feefc3; color: #8a4b00; }

.ss-stolik { background: #d2e3fc; color: #174ea6; }

.ss-równanie { background: #ceead6; color: #0d652d; }

.ss-paskowane { background: #e9d7fe; color: #6b21a8; }

.ss-wózek { background: #fde2c8; color: #9a3412; }

.ss-prowadzący { background: #fad2cf; color: #a50e0e; }

.ss-lock { outline: 1.5px dashed currentColor; outline-offset: 1px; }

.ss-abs { color: #80868b; font-size: 11px; font-weight: 600; font-style: italic; }

.ss-pop { animation: ss-pop .35s ease both; }

@keyframes ss-pop {
    from { opacity: 0; transform: scale(.85); }
    to { opacity: 1; transform: none; }
}

.ss-skills td { min-width: 52px; }

.ss-skill {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 18px;
    padding: 0 5px;
    border-radius: 4px;
    font: 600 11px var(--mono);
}

.ss-skill-2 { background: #188038; color: #fff; }

.ss-skill-1 { background: #fff; color: #188038; box-shadow: inset 0 0 0 1.5px #188038; }

.ss-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid #dadce0;
    background: #f8f9fa;
}

.ss-legend dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #202124;
}

.ss-legend dd { margin: 4px 0 0 34px; font-size: 12.5px; line-height: 1.4; color: #5f6368; }

.ss-tabs {
    display: flex;
    gap: 2px;
    padding: 0 8px;
    background: #f1f3f4;
    border-top: 1px solid #dadce0;
}

.ss-tabs button {
    padding: 7px 12px;
    border: 0;
    background: none;
    font: 500 12px var(--font);
    color: #5f6368;
    cursor: pointer;
}

.ss-tabs button[aria-selected="true"] { background: #fff; color: #188038; box-shadow: inset 0 2px 0 #188038; }

.ss-status { padding: 9px 12px; font-size: 13px; color: #5f6368; border-top: 1px solid #dadce0; background: #fff; }

/* ---------- Mobile section (dark) ---------- */
.night {
    background: var(--night);
    color: #f1efe9;
}

.night .section-head .mono { color: var(--night-muted); }

.night .section-head p { color: #cfcbc1; }

.phones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 32px);
    align-items: start;
}

.phones-row { max-width: 820px; margin: 0 auto; }

.phones figure:nth-child(2) { margin-top: 56px; }

.phones figure:nth-child(3) { margin-top: 112px; }

.phones figcaption {
    margin-top: 16px;
    color: var(--night-muted);
    font-size: 14px;
    line-height: 1.4;
}

.phones figcaption b { display: block; color: #f1efe9; font-weight: 600; }

/* ---------- Tech ---------- */
.tech {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.tech-group {
    padding: 28px 26px 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tech-group h3 {
    font-size: 22px;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.tech-group > p { font-size: 15px; color: var(--muted); margin-bottom: 18px; min-height: 3.2em; }

.tech-group ul { list-style: none; }

.tech-group li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px dashed var(--line);
    font-weight: 500;
}

.tech-group li small {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: right;
}

.tech-group.highlight { background: var(--ink); color: var(--paper); }

.tech-group.highlight > p,
.tech-group.highlight li small { color: #b9b5ab; }

.tech-group.highlight li { border-top-color: #3a3935; }

/* ---------- Contact ---------- */
.contact {
    background: #c63a14;
    color: #fff;
    padding: clamp(72px, 10vw, 130px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
}

.contact .mono { color: rgba(255, 255, 255, .78); }

.contact h2 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 84px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
}

.contact p { margin-top: 24px; font-size: 19px; max-width: 32em; color: rgba(255, 255, 255, .9); }

.contact-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .35); }

.contact-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    text-decoration: none;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 600;
    word-break: break-word;
}

.contact-list a small {
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .78;
    margin-bottom: 4px;
}

.contact-list svg { flex: none; width: 22px; height: 22px; transition: transform .2s; }

.contact-list a:hover svg { transform: translate(3px, -3px); }

.contact ::selection { background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--night);
    color: var(--night-muted);
    padding: 28px 0;
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.site-footer a { color: #e6e3db; text-decoration: none; }

.site-footer a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(12, 12, 11, .92);
}

.lightbox[open] { display: grid; place-items: center; }

.lightbox::backdrop { background: transparent; }

.lightbox img {
    max-width: min(94vw, 1800px);
    max-height: 86vh;
    width: auto;
    border-radius: 8px;
    cursor: zoom-out;
}

.lightbox figcaption {
    margin-top: 12px;
    color: #cfcbc1;
    text-align: center;
    font-size: 14px;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #44423d;
    background: #1d1c1a;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .ss-pop { animation: none; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .offer-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .section-head { grid-template-columns: 1fr; gap: 14px; }

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

    .section-head .mono { padding-top: 0; }

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

@media (max-width: 900px) {
    .nav a:not(.btn) { display: none; }

    .hero-grid { grid-template-columns: 1fr; }

    .hero-visual { margin-top: 12px; max-width: 640px; }

    .case-grid,
    .case-grid.flip,
    .mobile-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .case-grid.flip .story { order: 0; }

    .news-tabs { grid-template-columns: 1fr; }

    .next-grid { grid-template-columns: 1fr; }

    .mini-grid { grid-template-columns: 1fr; }

    .mini-phones { justify-self: stretch; max-width: none; }

    .news-list {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        border-top: 0;
        scrollbar-width: none;
        margin: 0 -4px;
        padding: 0 4px 4px;
    }

    .news-list::-webkit-scrollbar { display: none; }

    .news-list button {
        flex: 0 0 auto;
        display: flex;
        gap: 6px;
        padding: 9px 14px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--paper);
    }

    .news-list button::before,
    .news-list button small { display: none; }

    .news-list button .mono { padding-top: 2px; }

    .news-list button b { font-size: 15px; }

    .news-list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }

    .news-list button[aria-selected="true"] b,
    .news-list button[aria-selected="true"] .mono { color: var(--paper); }

    .news-panels { min-height: 0; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }

    .site-header .wrap { height: 60px; }

    .brand-name small { display: none; }

    .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

    .pin-kab { right: 30%; bottom: 0; }

    .case-top { grid-template-columns: 1fr; align-items: start; }

    .case-badges { justify-content: flex-start; }

    .case-title img,
    .case-title .app-icon { width: 46px; height: 46px; border-radius: 12px; }

    .news { padding: 20px 16px; border-radius: 14px; }

    .mini { padding: 20px 16px; border-radius: 14px; }

    .ss-file { display: none; }

    .ss-cell { min-width: 74px; }

    .ss-legend { grid-template-columns: 1fr; }

    .news-panel img { max-height: 420px; }

    .kab-shot { padding-right: 0; }

    .kab-shot .panel-float { display: none; }

    .result strong { font-size: 22px; }

    .phones {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 8px;
        scrollbar-width: none;
    }

    .phones::-webkit-scrollbar { display: none; }

    .phones figure {
        flex: 0 0 68%;
        scroll-snap-align: center;
        margin-top: 0 !important;
    }

    .offer,
    .tech,
    .services,
    .process { grid-template-columns: 1fr; }

    .tech-group > p { min-height: 0; }

    .compare-label { top: 8px; font-size: 10.5px; }
}
