/* Septsite homepage 2026: spokojniejsza hierarchia, zachowany czerwony akcent marki. */
#homepage {
    --home-ink: #12131a;
    --home-ink-soft: #282a35;
    --home-night: #151a22;
    --home-night-2: #1c2733;
    --home-red: #c7272d;
    --home-red-dark: #a2171d;
    --home-red-soft: #f8e9e9;
    --home-violet: #60778b;
    --home-paper: #ffffff;
    --home-wash: #f7f6f4;
    --home-line: #e5e2df;
    --home-muted: #555962;
    --home-radius: 22px;
    background: var(--home-paper);
    color: var(--home-ink);
}

#homepage #wrapper,
#homepage #content,
#homepage .content-wrap { background: var(--home-paper); }

#homepage #content { overflow: hidden; }

#homepage h1,
#homepage h2,
#homepage h3,
#homepage p { margin-top: 0; }

#homepage h1,
#homepage h2,
#homepage h3 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--home-ink);
    letter-spacing: -.035em;
}

#homepage h2 { font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: 1.07; }
#homepage h3 { font-size: 1.35rem; line-height: 1.25; }

.home-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 75% 35%, rgba(76, 106, 132, .25), transparent 32%),
        radial-gradient(circle at 12% 88%, rgba(199, 39, 45, .17), transparent 27%),
        linear-gradient(125deg, var(--home-night), #18212b 62%, #1c2733);
    color: #fff;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: -5%; right: -5%; bottom: 34px;
    height: 74px;
    z-index: -1;
    opacity: .65;
    background:
        linear-gradient(174deg, transparent 47%, rgba(199,39,45,.9) 48%, transparent 49%) 0 0 / 100% 100%,
        linear-gradient(187deg, transparent 48%, rgba(96,119,139,.85) 49%, transparent 50%) 0 0 / 100% 100%;
}

.home-hero-network {
    position: absolute;
    z-index: -1;
    inset: 2% 0 0 43%;
    opacity: .18;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px),
        linear-gradient(27deg, transparent 49.5%, rgba(255,255,255,.28) 50%, transparent 50.5%),
        linear-gradient(153deg, transparent 49.5%, rgba(255,255,255,.2) 50%, transparent 50.5%);
    background-size: 105px 105px, 165px 92px, 190px 115px;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 75%, transparent);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
    padding-top: 76px;
    padding-bottom: 104px;
}

.home-kicker {
    margin-bottom: 20px;
    color: #ef9a9d;
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-kicker-light { color: var(--home-red); }

#homepage .home-hero h1 {
    max-width: 780px;
    margin-bottom: 28px;
    color: #fff;
    font-size: clamp(2.65rem, 4.75vw, 3.85rem);
    font-weight: 650;
    line-height: .98;
}

#homepage .home-hero h1 span { color: #d8cadf; }

#homepage .home-hero-lead {
    max-width: 700px;
    margin-bottom: 0;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.7;
}

.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.home-button:hover { transform: translateY(-2px); text-decoration: none; }
.home-button-primary { background: var(--home-red); color: #fff; box-shadow: 0 14px 38px rgba(199,39,45,.25); }
.home-button-primary:hover { background: #da3037; color: #fff; }
.home-button-ghost { border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.04); }
.home-button-ghost:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.home-button-dark { background: var(--home-night); color: #fff; }
.home-button-dark:hover { background: #2a2035; color: #fff; }

.home-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 31px 0 0; padding: 0; list-style: none; }
.home-hero-tags li { padding: 7px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.7); font-size: .75rem; }

.home-status-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(255,255,255,.965);
    box-shadow: 0 38px 80px rgba(0,0,0,.28);
    color: var(--home-ink);
    transform: rotate(1.2deg);
}

.home-status-top { display: flex; align-items: center; gap: 9px; padding: 16px 18px; border-bottom: 1px solid var(--home-line); color: #555762; font-size: .75rem; }
.home-status-top small { margin-left: auto; color: var(--home-red); font-weight: 700; }
.home-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #55a66e; box-shadow: 0 0 0 5px rgba(85,166,110,.12); }
.home-status-main { padding: 24px; }
.home-status-label { margin-bottom: 19px; color: #555962; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-status-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 15px 0; border-top: 1px solid #ece9e7; }
.home-status-row > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--home-red-soft); color: var(--home-red); }
.home-status-row .site-icon { width: 20px; height: 20px; }
.home-status-row strong { display: block; margin-bottom: 3px; font-size: .92rem; }
.home-status-row small { display: block; color: #555962; font-size: .75rem; line-height: 1.45; }
.home-status-footer { display: flex; flex-wrap: wrap; gap: 6px; padding: 15px 18px; background: #f7f5f3; }
.home-status-footer span { padding: 5px 8px; border-radius: 6px; background: #fff; color: #43464f; font-size: .65rem; font-weight: 600; }
.home-status-note { padding: 0 18px 16px; margin: 0; background: #f7f5f3; color: #555962; font-size: .72rem; }

.home-proof { border-bottom: 1px solid var(--home-line); background: #fff; }
.home-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-proof-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 27px 32px; border-left: 1px solid var(--home-line); }
.home-proof-grid > div:last-child { border-right: 1px solid var(--home-line); }
.home-proof-grid strong { font-size: .94rem; }
.home-proof-grid span { color: var(--home-muted); font-size: .78rem; }

.home-section { padding: clamp(78px, 9vw, 132px) 0; background: #fff; }
.home-section-heading { max-width: 790px; margin-bottom: 48px; }
.home-section-heading h2 { margin-bottom: 0; }
.home-section-heading > p:last-child { max-width: 680px; margin: 22px 0 0; color: var(--home-muted); font-size: 1rem; line-height: 1.7; }
.home-section-heading-wide { max-width: 900px; }
.home-section-heading-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 55px; max-width: none; }
.home-section-heading-split > p:last-child { margin-bottom: 5px; }

.home-problems { background: var(--home-wash); }
.home-problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d9d5d1; border-bottom: 1px solid #d9d5d1; }
.home-problem-grid article { min-height: 245px; padding: 30px 26px; border-right: 1px solid #d9d5d1; }
.home-problem-grid article:last-child { border-right: 0; }
.home-problem-grid article > span { display: block; margin-bottom: 50px; color: var(--home-red); font-size: .74rem; font-weight: 700; }
.home-problem-grid h3 { margin-bottom: 13px; font-size: 1.15rem; }
.home-problem-grid p { margin: 0; color: var(--home-muted); font-size: .9rem; line-height: 1.65; }

.home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-service-card { display: flex; flex-direction: column; min-height: 410px; padding: 32px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.home-service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(29,25,36,.09); }
.home-service-card-featured { color: #fff; background: var(--home-night); border-color: var(--home-night); }
.home-card-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 43px; border-radius: 14px; background: var(--home-red-soft); color: var(--home-red); }
.home-card-icon .site-icon { width: 23px; height: 23px; }
.home-service-card-featured .home-card-icon { background: rgba(255,255,255,.09); color: #ef8f93; }
.home-card-label { margin-bottom: 10px; color: var(--home-red); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-service-card-featured .home-card-label { color: #ef8f93; }
.home-service-card h3 { margin-bottom: 17px; font-size: 1.65rem; }
#homepage .home-service-card-featured h3 { color: #fff; }
.home-service-card > p:not(.home-card-label) { color: var(--home-muted); font-size: .92rem; line-height: 1.7; }
#homepage .home-service-card-featured > p:not(.home-card-label) { color: rgba(255,255,255,.66); }
.home-service-card > a { margin-top: auto; color: var(--home-ink); font-weight: 700; text-decoration: none; }
.home-service-card-featured > a { color: #fff; }
.home-service-card > a span { color: var(--home-red); }

.home-platforms { background: var(--home-night); }
#homepage .home-platforms h2 { color: #fff; }
#homepage .home-platforms .home-section-heading > p:last-child { color: rgba(255,255,255,.6); }
.home-platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: var(--home-radius); background: rgba(255,255,255,.1); }
.home-platform-card { position: relative; min-height: 260px; padding: 34px; background: #201a2b; color: #fff; text-decoration: none; transition: background .18s ease; }
.home-platform-card:hover { background: #2a2035; color: #fff; text-decoration: none; }
.home-platform-number { display: block; margin-bottom: 48px; color: #b99ac2; font-size: .72rem; font-weight: 700; }
.home-platform-card strong { display: block; margin-bottom: 12px; color: #fff; font-size: 1.55rem; letter-spacing: -.03em; }
#homepage .home-platform-card p { max-width: 490px; color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.65; }
.home-platform-card .home-link { position: absolute; left: 34px; bottom: 29px; color: #ef9a9d; font-size: .8rem; font-weight: 700; }
.home-platform-badge { position: absolute; top: 30px; right: 30px; padding: 5px 9px; border-radius: 999px; background: var(--home-red); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.home-platform-card-new { background: #281c2f; }

.home-text-link { align-self: end; margin-bottom: 7px; color: var(--home-red); font-weight: 700; text-decoration: none; }
.home-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-case-card { overflow: hidden; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fff; color: var(--home-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.home-case-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(29,25,36,.1); color: var(--home-ink); text-decoration: none; }
.home-case-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--home-wash); }
.home-case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-case-card:hover img { transform: scale(1.03); }
.home-case-copy { padding: 25px; }
.home-case-copy > span { display: block; margin-bottom: 9px; color: var(--home-red); font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.home-case-copy h3 { margin-bottom: 9px; }
.home-case-copy p { margin: 0; color: var(--home-muted); font-size: .85rem; line-height: 1.6; }

.home-panel-section { background: var(--home-wash); }
.home-panel-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(48px, 7vw, 92px); }
.home-panel-window { overflow: hidden; border: 1px solid #dad5d1; border-radius: 18px; background: #fff; box-shadow: 0 26px 60px rgba(31,26,36,.12); transform: perspective(1000px) rotateY(3deg) rotateX(1deg); }
.home-panel-window-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: #231b2d; }
.home-panel-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ba7c88; }
.home-panel-window-bar i:nth-child(2) { background: #d2a664; }
.home-panel-window-bar i:nth-child(3) { background: #6da87d; }
.home-panel-window-bar span { margin-left: auto; color: rgba(255,255,255,.7); font-size: .65rem; }
.home-panel-window-content { display: grid; grid-template-columns: 72px 1fr; min-height: 330px; }
.home-panel-sidebar { background: #f1efed; border-right: 1px solid #e1dedb; }
.home-panel-dashboard { padding: 30px; }
.home-panel-line { height: 12px; border-radius: 5px; background: #e7e3e0; }
.home-panel-line-short { width: 38%; }
.home-panel-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 28px; }
.home-panel-metrics span { height: 62px; border-radius: 10px; background: linear-gradient(135deg, #f8eded, #eee8f1); }
.home-panel-chart { position: relative; height: 112px; margin-top: 18px; border-radius: 10px; background: repeating-linear-gradient(0deg, #f8f6f4 0 21px, #ebe8e5 22px); overflow: hidden; }
.home-panel-chart b { position: absolute; left: -4%; right: -4%; bottom: 24px; height: 58px; border-top: 3px solid var(--home-red); border-radius: 50%; transform: rotate(-7deg); }
.home-panel-lines { display: grid; gap: 9px; margin-top: 19px; }
.home-panel-lines i { height: 8px; border-radius: 4px; background: #ece9e7; }
.home-panel-lines i:nth-child(2) { width: 78%; }
.home-panel-lines i:nth-child(3) { width: 55%; }
.home-panel-copy h2 { margin-bottom: 24px; }
.home-panel-copy > p:not(.home-kicker) { color: var(--home-muted); line-height: 1.75; }
.home-panel-copy .home-actions { margin-top: 28px; align-items: center; }
.home-panel-copy .home-button { margin-top: 0; }
.home-panel-copy .home-text-link { margin: 0; align-self: center; }

.home-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.home-more-card { padding: 38px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fff; }
.home-more-card > span { display: block; margin-bottom: 11px; color: var(--home-red); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-more-card h3 { max-width: 470px; margin-bottom: 17px; font-size: 1.9rem; }
.home-more-card p { max-width: 550px; color: var(--home-muted); line-height: 1.7; }
.home-more-card a { color: var(--home-red); font-weight: 700; text-decoration: none; }
.home-more-card-dark { background: linear-gradient(135deg, var(--home-night), #2b1c34); border-color: var(--home-night); }
#homepage .home-more-card-dark h3 { color: #fff; }
#homepage .home-more-card-dark p { color: rgba(255,255,255,.63); }
.home-more-card-dark .home-card-icon { background: rgba(255,255,255,.08); color: #ef8f93; }

.home-process { background: var(--home-wash); }
.home-process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.home-process-list li { position: relative; display: block; padding: 0 24px 0 0; }
.home-process-list li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 50px; right: 18px; height: 1px; background: #d4cfcb; }
.home-process-list li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 50%; background: var(--home-red); color: #fff; font-size: .7rem; font-weight: 700; }
.home-process-list h3 { margin-bottom: 11px; font-size: 1.12rem; }
.home-process-list p { color: var(--home-muted); font-size: .86rem; line-height: 1.65; }

.home-knowledge { background: #fff; }
.home-section-note { padding-left: 22px; border-left: 2px solid var(--home-red); }
.home-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-article-card,
.home-article-grid article { display: flex; flex-direction: column; min-height: 250px; padding: 30px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fff; color: inherit; text-decoration: none; }
.home-article-card { transition: border-color .18s ease, transform .18s ease; }
.home-article-card:hover { border-color: var(--home-red); color: inherit; text-decoration: none; transform: translateY(-3px); }
.home-article-card > span,
.home-article-grid article > span { display: inline-block; margin-bottom: 42px; color: var(--home-red); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-article-card h3,
.home-article-grid h3 { margin-bottom: 12px; }
.home-article-card p,
.home-article-grid p { margin: 0; color: var(--home-muted); font-size: .86rem; line-height: 1.65; }

.home-contact-band { position: relative; padding: 92px 0; background: var(--home-night); color: #fff; overflow: hidden; }
.home-contact-band::after { content: ""; position: absolute; width: 430px; height: 430px; right: -160px; top: -220px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.018); }
.home-contact-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 70px; }
#homepage .home-contact-band h2 { max-width: 790px; margin-bottom: 17px; color: #fff; }
#homepage .home-contact-band p:not(.home-kicker) { max-width: 700px; margin: 0; color: rgba(255,255,255,.62); line-height: 1.7; }
.home-contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.home-contact-actions > a:not(.home-button) { color: rgba(255,255,255,.78); font-size: .9rem; text-decoration: none; }

@media (max-width: 1199px) {
    .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 48px; }
    .home-problem-grid { grid-template-columns: repeat(2, 1fr); }
    .home-problem-grid article:nth-child(2) { border-right: 0; }
    .home-problem-grid article:nth-child(-n+2) { border-bottom: 1px solid #d9d5d1; }
}

@media (max-width: 991px) {
    #homepage #header .header-row { min-height: 72px; }
    #homepage #logo { flex: 1 1 auto; margin-right: auto; }
    .home-hero { min-height: auto; }
    .home-hero-grid { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 100px; }
    .home-hero-copy { max-width: 760px; }
    .home-status-card { max-width: 610px; transform: none; }
    .home-proof-grid { grid-template-columns: 1fr; }
    .home-proof-grid > div, .home-proof-grid > div:last-child { border-right: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
    .home-proof-grid > div:last-child { border-bottom: 0; }
    .home-service-grid, .home-case-grid, .home-article-grid { grid-template-columns: 1fr; }
    .home-service-card { min-height: 330px; }
    .home-card-icon { margin-bottom: 30px; }
    .home-case-card { display: grid; grid-template-columns: .9fr 1.1fr; }
    .home-case-image { aspect-ratio: auto; min-height: 270px; }
    .home-case-copy { align-self: center; }
    .home-panel-grid { grid-template-columns: 1fr; }
    .home-panel-visual { max-width: 690px; }
    .home-process-list { grid-template-columns: repeat(2, 1fr); gap: 38px 20px; }
    .home-process-list li:nth-child(2)::after { display: none; }
    .home-contact-band-inner { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 767px) {
    .home-section-heading-split { grid-template-columns: 1fr; gap: 10px; }
    .home-platform-grid, .home-more-grid { grid-template-columns: 1fr; }
    .home-case-card { display: block; }
    .home-case-image { aspect-ratio: 4 / 3; min-height: 0; }
    .home-panel-window-content { grid-template-columns: 48px 1fr; min-height: 270px; }
    .home-panel-dashboard { padding: 22px; }
}

@media (max-width: 575px) {
    .home-hero-grid { padding-top: 54px; padding-bottom: 90px; }
    #homepage .home-hero h1 { font-size: clamp(2.35rem, 12vw, 3.55rem); }
    .home-actions { flex-direction: column; align-items: stretch; }
    .home-button { width: 100%; text-align: center; }
    .home-status-card { margin-top: 4px; }
    .home-status-main { padding: 18px; }
    .home-status-footer { display: grid; grid-template-columns: repeat(2, 1fr); }
    .home-problem-grid { grid-template-columns: 1fr; }
    .home-problem-grid article, .home-problem-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid #d9d5d1; }
    .home-problem-grid article:last-child { border-bottom: 0; }
    .home-problem-grid article > span { margin-bottom: 28px; }
    .home-service-card, .home-more-card, .home-platform-card { padding: 27px 24px; }
    .home-platform-card .home-link { left: 24px; }
    .home-process-list { grid-template-columns: 1fr; }
    .home-process-list li::after { display: none; }
    .home-panel-window { transform: none; }
    .home-panel-metrics { grid-template-columns: 1fr; }
    .home-panel-metrics span { height: 34px; }
    .home-contact-actions { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .home-button,
    .home-service-card,
    .home-case-card,
    .home-case-image img,
    .home-article-card { transition: none; }
    .home-article-card:hover,
    .home-case-card:hover { transform: none; }
}
