:root {
    --primary: #0f172a;
    --secondary: #334155;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --background: #eef3f8;
    --white: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --border: #dbe3ee;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER / MENU */

#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 227, 238, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    display: block;
    width: 150px;
    height: auto;
}

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

.main-nav a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* HERO */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 90px 0;
    background-image:
            url("images/background.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-bottom: 1px solid #dde6f0;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: 46px;
    line-height: 1.15;
    color: var(--primary);
    letter-spacing: -0.8px;
}

.hero p {
    margin: 0 0 32px;
    max-width: 700px;
    font-size: 20px;
    color: var(--secondary);
}

.button {
    display: inline-block;
    padding: 13px 22px;
    background: var(--accent);
    color: var(--white);
    border: 0;
    border-radius: 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.button:hover {
    text-decoration: none;
    background: var(--accent-dark);
}

/* SEKCJE */

section {
    padding: 72px 0;
    scroll-margin-top: 100px;
}

section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.intro {
    max-width: 820px;
    color: var(--secondary);
    font-size: 18px;
}

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

/* USŁUGI */

#uslugi {
    background: var(--white);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background:
            radial-gradient(
                    circle at top right,
                    rgba(37, 99, 235, 0.08),
                    transparent 38%
            ),
            #ffffff;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.10);
}

.card h3 {
    position: relative;
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 22px;
    line-height: 1.3;
}

.card h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.card:hover h3::after {
    width: 68px;
}

.card p {
    position: relative;
    margin-bottom: 0;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.65;
}

/* JASNE SEKCJE */

.section-light {
    background: #f6f9fc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* W CZYM MOŻEMY POMÓC */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.feature-item {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background:
            radial-gradient(
                    circle at top right,
                    rgba(37, 99, 235, 0.08),
                    transparent 38%
            ),
            #ffffff;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.10);
}

.feature-item h3 {
    position: relative;
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 21px;
    line-height: 1.3;
}

.feature-item h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.feature-item:hover h3::after {
    width: 68px;
}

.feature-item p {
    position: relative;
    margin-bottom: 0;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.65;
}

/* O FIRMIE */

.about {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* JAK PRACUJEMY */

#jak-pracujemy {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    position: relative;
    min-height: 270px;
    background:
            radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 38%),
            #ffffff;
    padding: 30px 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.10);
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.step h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 21px;
    line-height: 1.3;
}

.step p {
    margin: 0;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.65;
}

/* TECHNOLOGIE */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tech-tags span {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

/* KONTAKT / FORMULARZ */

#kontakt {
    background: var(--white);
}

.contact-box {
    background:
            radial-gradient(circle at top right, rgba(37, 99, 235, 0.24), transparent 34%),
            linear-gradient(135deg, #0f172a 0%, #172554 100%);
    color: var(--white);
    padding: 42px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.contact-box-form {
    max-width: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-text {
    max-width: 520px;
}

.contact-text h2 {
    margin-top: 0;
    color: var(--white);
}

.contact-text p {
    color: #dbeafe;
    font-size: 18px;
}

.contact-text a {
    color: var(--white);
    font-weight: 700;
}

.contact-text a:hover {
    color: #bfdbfe;
}

.contact-form {
    background: rgba(255, 255, 255, 0.96);
    padding: 30px;
    border: 1px solid rgba(219, 227, 238, 0.8);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form,
.form-row,
.form-group,
.recaptcha-group,
#recaptchaPlaceholder,
#recaptchaContainer {
    min-width: 0;
    max-width: 100%;
}

.recaptcha-group {
    width: 100%;
    overflow: visible;
}

#recaptchaContainer {
    width: 100%;
    min-height: 78px;
    overflow: visible;
}

#recaptchaContainer > div,
#recaptchaContainer iframe {
    max-width: none !important;
    overflow: visible !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    outline: none;
}

.form-group select {
    cursor: pointer;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-button {
    margin-top: 2px;
}

/* STOPKA */

footer {
    background: #111827;
    color: #d1d5db;
    padding: 36px 0;
    font-size: 14px;
}

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

.footer-company strong {
    display: block;
    color: var(--white);
    margin-bottom: 8px;
    font-size: 16px;
}

.footer-contact a {
    color: #d1d5db;
}

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

.form-consent {
    margin-top: 18px;
}

.form-consent .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.form-consent .checkbox-label input[type="checkbox"] {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    padding: 0;
    margin: 3px 0 0 0;
    box-shadow: none;
}

.form-consent .checkbox-label input[type="checkbox"]:focus {
    box-shadow: none;
}

.checkbox-required {
    display: inline-block;
    flex: 0 0 auto;
    margin-top: 0;
    color: #c00;
    line-height: 1.2;
}

.consent-text {
    display: block;
}

.checkbox-label a {
    color: #2563eb;
    font-weight: 700;
}

.required {
    color: #c00;
}

.form-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
}

.form-message-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.form-message-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.cookie-banner-content {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.cookie-banner-text {
    max-width: 690px;
}

.cookie-banner-text h2 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 22px;
}

.cookie-banner-text p {
    margin: 6px 0;
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.55;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-button,
.recaptcha-consent-button {
    padding: 12px 18px;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-button-primary {
    color: #ffffff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.cookie-button-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.cookie-button-secondary {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--border);
}

.cookie-button-secondary:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: #f8fafc;
}

.recaptcha-information {
    margin: 0 0 12px;
    padding: 14px 16px;
    color: var(--secondary);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.55;
}

.recaptcha-consent-button {
    color: var(--accent);
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.recaptcha-consent-button:hover {
    background: rgba(37, 99, 235, 0.06);
}

.recaptcha-error {
    margin: 0;
    padding: 14px 16px;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 9px;
}

.form-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

@media (max-width: 700px) {
    .cookie-banner {
        padding: 12px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 22px;
    }

    .cookie-banner-actions {
        flex-direction: column-reverse;
    }

    .cookie-button {
        width: 100%;
    }

}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.footer-privacy-button {
    padding: 0;
    color: #d1d5db;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.footer-privacy-button:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1000px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 78px 0;

        background-image:
                url("images/background-mobile.jpg");

        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 19px;
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-text {
        max-width: 820px;
    }
}

@media (max-width: 800px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .logo-img {
        width: 140px;
    }

    .main-nav {
        gap: 16px;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 14px;
    }

    .hero {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 58px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 18px;
    }
}

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

    .step {
        min-height: auto;
    }

    .section-heading p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-box {
        padding: 28px;
    }
}

@media (max-width: 420px) {
    #recaptchaContainer {
        height: 69px;
    }

    #recaptchaContainer .g-recaptcha {
        transform: scale(0.88);
    }
}

@media (max-width: 380px) {
    #recaptchaContainer {
        height: 64px;
    }

    #recaptchaContainer .g-recaptcha {
        transform: scale(0.82);
    }
}

@media (max-width: 340px) {
    #recaptchaContainer {
        height: 58px;
    }

    #recaptchaContainer .g-recaptcha {
        transform: scale(0.74);
    }
}

@media (max-width: 480px) {
    .recaptcha-group {
        overflow: visible;
    }

    #recaptchaContainer {
        min-height: 144px;
        overflow: visible;
    }

    #recaptchaContainer > div,
    #recaptchaContainer iframe {
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 17px;
    }

    section h2 {
        font-size: 28px;
    }

    .card,
    .feature-item,
    .step {
        padding: 24px;
    }

    .contact-form {
        padding: 22px;
    }
}
