@font-face {
    font-family: 'Neue Machina';
    src: url('/assets/NeueMachina-Regular.woff2') format('woff2'),
         url('/assets/NeueMachina-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #121212;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    background: #121212;
    color: #ffffff;
    font-family: 'Public Sans', Arial, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

.site-header {
    width: 100%;
    min-height: 112px;
    padding: 1.35rem 2.4rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    background: #121212;
}

.logo-container {
    line-height: 0;
    flex-shrink: 0;
    margin-top: -1rem;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
}

.logo {
    width: 165px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.3rem;
    padding-top: 0.55rem;
    flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
    font-family: 'Neue Machina', 'Public Sans', Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #aaaaaa;
    border: 1px solid #777777;
    background: transparent;
    padding: 0.85rem 1rem;
    min-width: 104px;
    text-align: center;
    transition: color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav button:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.site-nav .nav-consultation {
    min-width: 148px;
}

main {
    background: #121212;
}

.section-topline {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
}

.full-topline {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.page-eyebrow,
.small-label {
    font-family: 'Neue Machina', 'Public Sans', Arial, sans-serif;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 1rem;
}

.about-hero {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.8rem 3rem 5.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1fr);
    gap: 3.6rem;
    align-items: stretch;
}

.image-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.42);
    padding: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.image-frame::before,
.image-frame::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    pointer-events: none;
}

.image-frame::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
}

.image-frame::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.image-frame-main {
    height: 100%;
    min-height: 100%;
}

.about-photo {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.9) contrast(1.04);
}

.about-content {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-content article + article {
    margin-top: 2.15rem;
}

.about-content h1,
.about-content h2 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
}

.about-content p {
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 400;
    color: #f0f0f0;
    max-width: 585px;
}

.about-content p + p {
    margin-top: 1rem;
}

.signature-section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 3rem 3.35rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.signature-grid > div:first-child,
.signature-card {
    min-height: 100%;
}

.signature-grid > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0.75rem;
}

.signature-grid h2 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: clamp(31px, 3vw, 43px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.8px;
    max-width: 430px;
}

.signature-card {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding: 3.8rem 0 0.2rem 1.35rem;
    display: flex;
    align-items: flex-start;
}

.signature-card:nth-child(2),
.signature-card:nth-child(3) {
    align-items: flex-start;
    padding-top: 3.8rem;
    padding-bottom: 0.2rem;
    transform: none;
}

.signature-card p {
    font-size: 16px;
    line-height: 1.52;
    color: #cfcfcf;
    max-width: 360px;
}

.development-section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 3rem 3.45rem;
    background: #121212;
}

.development-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 3.7rem;
    align-items: stretch;
}

.office-frame {
    margin-left: calc(-1 * ((100vw - 1180px) / 2));
    padding: 0.75rem;
    height: 100%;
    align-self: stretch;
    display: flex;
}

.office-photo {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image:
        linear-gradient(rgba(18, 18, 18, 0.08), rgba(18, 18, 18, 0.08)),
        url('/assets/poznajmysie-biuro.png');
    background-size: cover;
    background-position: left top;
    background-color: #151515;
    filter: saturate(0.75) contrast(1.05);
}

.development-content {
    max-width: 585px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.development-content .page-eyebrow {
    margin-top: 0;
}

.development-content h2 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: clamp(44px, 4.4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.85rem;
}

.development-content p {
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 400;
    color: #f1f1f1;
    max-width: 560px;
}

.development-content p + p {
    margin-top: 1.9rem;
}

.site-footer {
    position: relative;
    width: 100%;
    padding: 0.75rem 2rem 1rem;
    background: #121212;
    color: #8d8d8d;
    text-align: center;
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
}

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

.site-footer a:hover {
    color: #ffffff;
}

.site-footer span {
    margin: 0 0.35rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 1.25rem;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #121212;
    color: #ffffff;
    padding: 2rem;
    border: 1px solid #333333;
    border-radius: 12px;
    width: min(92vw, 780px);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888888;
    background: transparent;
    border: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-content h2 {
    margin-bottom: 0.75rem;
    padding-right: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Public Sans', sans-serif;
    font-size: 22px;
}

.modal-lead {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #aaaaaa;
    text-align: center;
    max-width: 620px;
    margin: 0 auto 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaaaaa;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid #555555;
    background: transparent;
    color: #ffffff;
    outline: none;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #555555;
}

.form-group input:focus {
    border-color: #ffffff;
}

.services-group {
    margin-top: 0.45rem;
}

.services-group > label {
    margin-bottom: 1.15rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-group .custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    user-select: none;
    margin: 0;
    position: relative;
    transition: color 0.25s ease;
}

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

.form-group .custom-checkbox span {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    border: 1px solid #666666;
    border-radius: 5px;
    background: transparent;
    position: relative;
    transition: all 0.25s ease;
}

.form-group .custom-checkbox span::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.form-group .custom-checkbox input:checked + span {
    background: #ffffff;
    border-color: #ffffff;
}

.form-group .custom-checkbox input:checked + span::after {
    transform: rotate(45deg) scale(1);
}

.form-group .custom-checkbox:hover {
    color: #ffffff;
}

.form-group .custom-checkbox:hover span {
    border-color: #ffffff;
}

.submit-btn {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    width: 100%;
    padding: 1rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #cccccc;
}

@media (max-width: 1180px) {
    .site-header {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .site-nav {
        gap: 0.85rem;
    }

    .site-nav a,
    .site-nav button {
        font-size: 11px;
        min-width: auto;
        padding: 0.75rem 0.85rem;
    }

    .about-hero,
    .signature-section,
    .development-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about-grid {
        gap: 2.4rem;
    }

    .signature-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .signature-grid > div:first-child {
        padding-right: 0;
    }

    .signature-card,
    .signature-card:nth-child(2),
    .signature-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
        padding: 1.15rem 0 0;
        align-items: flex-start;
    }

    .signature-card p {
        max-width: 100%;
    }

    .development-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.6rem;
    }

    .office-frame {
        margin-left: -2rem;
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.25rem;
    }

    .site-nav {
        justify-content: flex-start;
        padding-top: 0;
    }

    .about-hero {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

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

    .image-frame-main {
        height: auto;
        min-height: 0;
    }

    .about-photo {
        height: auto;
        min-height: 0;
        max-height: 560px;
    }

    .about-content p {
        max-width: 100%;
    }

    .development-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .office-frame {
        height: auto;
        margin-left: 0;
    }

    .office-photo {
        height: 390px;
        min-height: 390px;
    }

    .development-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        align-items: flex-start;
    }

    .modal-content {
        width: 100%;
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1.1rem 1.25rem 1.25rem;
    }

    .logo {
        width: 142px;
    }

    .site-nav {
        width: 100%;
        gap: 0.65rem;
    }

    .site-nav a,
    .site-nav button,
    .site-nav .nav-consultation {
        font-size: 10px;
        padding: 0.65rem 0.7rem;
        min-width: auto;
    }

    .about-hero,
    .signature-section,
    .development-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .about-hero {
        padding-top: 1.6rem;
        padding-bottom: 3.6rem;
    }

    .image-frame {
        padding: 0.55rem;
    }

    .image-frame::before,
    .image-frame::after {
        width: 42px;
        height: 42px;
    }

    .about-content h1,
    .about-content h2 {
        font-size: 25px;
    }

    .about-content p,
    .development-content p {
        font-size: 16px;
        line-height: 1.45;
    }

    .signature-section {
        padding-bottom: 2.85rem;
    }

    .signature-grid h2 {
        font-size: 30px;
    }

    .office-photo {
        height: 300px;
        min-height: 300px;
    }

    .development-content h2 {
        font-size: 38px;
    }

    .site-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        font-size: 12px;
    }
}


.footer-contact,
.footer-copy {
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.75rem auto 0.55rem;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.42rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: #9d9d9d;
    text-decoration: none;
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-button:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 640px) {
    .footer-links {
        gap: 0.45rem;
        margin-top: 0.7rem;
    }

    .footer-button {
        width: 100%;
        max-width: 260px;
        font-size: 9px;
    }
}

