* {
    box-sizing: border-box;
}

:root {
    --vortex-graphite: #313C44;
    --vortex-graphite-light: #3D4A53;
    --vortex-green: #99CA3B;
    --vortex-green-hover: #A6D54A;

    --page-background: #F2F4F3;
    --card-background: #FFFFFF;

    --text-main: #313C44;
    --text-secondary: #6F7B82;

    --green-soft: #F3F8E9;
    --border: #E4E9EB;

    --shadow: rgba(49, 60, 68, 0.14);
}


/* =========================================================
   PODSTAWOWE
   ========================================================= */

html {
    background: var(--page-background);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 255, 255, 0.98),
            transparent 38rem
        ),
        var(--page-background);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================================================
   GŁÓWNA STRONA WIZYTÓWKI
   ========================================================= */

.page {
    width: 100%;
    min-height: 100vh;

    padding: 24px 14px 42px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   KARTA
   ========================================================= */

.profile-card {
    width: min(100%, 500px);

    overflow: hidden;

    background: var(--card-background);

    border: 1px solid rgba(49, 60, 68, 0.08);

    border-radius: 28px;

    box-shadow:
        0 28px 80px var(--shadow);
}


/* =========================================================
   GÓRNY PANEL
   ========================================================= */

.hero {
    position: relative;

    height: 115px;

    background:
        linear-gradient(
            135deg,
            var(--vortex-graphite) 0%,
            var(--vortex-graphite-light) 100%
        );
}


/* zielona linia zgodna z logo */

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: var(--vortex-green);
}


/* ukrywamy tekst VORTEX GROUP z prawego górnego rogu */

.brand {
    display: none;
}


/* =========================================================
   GŁÓWNA CZĘŚĆ
   ========================================================= */

.profile {
    position: relative;

    padding: 0 26px 32px;

    text-align: center;
}


/* =========================================================
   ZDJĘCIE
   ========================================================= */

.avatar {
    display: block;

    width: 140px;
    height: 140px;

    margin: -70px auto 8px;

    border-radius: 50%;

    object-fit: cover;

    background: #DDDDDD;

    border: 6px solid #FFFFFF;

    box-shadow:
        0 10px 30px rgba(49, 60, 68, 0.18);

    position: relative;

    z-index: 5;
}


.avatar-placeholder {
    align-items: center;
    justify-content: center;

    color: #FFFFFF;

    background: var(--vortex-graphite);

    font-size: 40px;
    font-weight: 800;
}


/* =========================================================
   LOGO VORTEX
   ========================================================= */

.company-logo {
    width: 100%;

    margin: 18px auto 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}


.company-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 255px;
    max-height: 70px;

    object-fit: contain;
}


/* =========================================================
   IMIĘ / STANOWISKO / FIRMA
   ========================================================= */

h1 {
    margin: 0;

    color: var(--vortex-graphite);

    font-size: 32px;
    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -0.035em;
}


.job-title {
    margin-top: 9px;

    color: var(--vortex-graphite);

    font-size: 16px;
    font-weight: 750;
}


.company {
    max-width: 390px;

    margin: 6px auto 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.45;
}


.description {
    max-width: 410px;

    margin: 20px auto 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   PRZYCISK ZAPISZ KONTAKT
   ========================================================= */

.save-contact {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 56px;

    margin-top: 26px;

    padding: 0 22px;

    border-radius: 16px;

    color: var(--vortex-graphite);

    background: var(--vortex-green);

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 10px 28px rgba(153, 202, 59, 0.30);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.save-contact:hover {
    background: var(--vortex-green-hover);

    box-shadow:
        0 13px 34px rgba(153, 202, 59, 0.38);

    transform: translateY(-1px);
}


.save-contact:active {
    transform: translateY(1px);
}


/* =========================================================
   SZYBKIE AKCJE
   ========================================================= */

.quick-actions {
    display: flex;

    justify-content: center;

    gap: 24px;

    margin: 28px 0;
}


.quick-actions a,
.quick-actions button {
    width: 76px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--vortex-graphite);

    cursor: pointer;

    text-align: center;
}


.quick-actions span {
    display: flex;

    width: 52px;
    height: 52px;

    margin: 0 auto 8px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green-soft);

    border: 1px solid rgba(153, 202, 59, 0.28);

    color: var(--vortex-graphite);

    font-size: 20px;
    font-weight: 700;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


.quick-actions a:hover span,
.quick-actions button:hover span {
    background: rgba(153, 202, 59, 0.20);

    transform: translateY(-2px);
}


.quick-actions small {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   LISTA KONTAKTOWA
   ========================================================= */

.details {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: #FFFFFF;

    text-align: left;
}


/* pojedynczy wiersz */

.detail-row {
    display: flex;

    gap: 14px;

    align-items: center;

    min-height: 72px;

    padding: 13px 16px;

    border-bottom: 1px solid var(--border);

    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}


.detail-row:last-child {
    border-bottom: 0;
}


.detail-row:hover {
    background: #FAFCF7;

    padding-left: 18px;
}


/* ikonka */

.detail-icon {
    flex: 0 0 40px;

    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--green-soft);

    border: 1px solid rgba(153, 202, 59, 0.18);

    color: var(--vortex-graphite);

    font-size: 16px;
    font-weight: 800;
}


/* tekst */

.detail-row > span:last-child {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.detail-row small {
    color: var(--text-secondary);

    font-size: 11px;
}


.detail-row strong {
    overflow-wrap: anywhere;

    color: var(--vortex-graphite);

    font-size: 14px;

    font-weight: 750;
}


/* =========================================================
   STOPKA
   ========================================================= */

footer {
    padding: 18px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    text-align: center;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


/* =========================================================
   STRONA GŁÓWNA / LISTA WIZYTÓWEK
   ========================================================= */

.directory {
    min-height: 100vh;

    padding: 30px 15px;

    display: flex;

    justify-content: center;
    align-items: flex-start;
}


.directory-card {
    width: min(100%, 620px);

    margin-top: 7vh;

    padding: 30px;

    border-radius: 24px;

    background: #FFFFFF;

    border: 1px solid var(--border);

    box-shadow:
        0 20px 70px rgba(49, 60, 68, 0.12);
}


.directory-card h1 {
    margin-top: 8px;

    color: var(--vortex-graphite);
}


.eyebrow {
    color: var(--vortex-green);

    font-size: 11px;

    font-weight: 850;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.muted {
    color: var(--text-secondary);
}


.directory-list {
    margin-top: 22px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 16px;
}


.directory-list a {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 16px;

    border-bottom: 1px solid var(--border);

    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}


.directory-list a:last-child {
    border-bottom: 0;
}


.directory-list a:hover {
    padding-left: 19px;

    background: var(--green-soft);
}


.directory-list strong {
    color: var(--vortex-graphite);
}


.directory-list span {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   TELEFON / MOBILE
   ========================================================= */

@media (max-width: 540px) {

    .page {
        padding: 0;

        display: block;
    }


    .profile-card {
        min-height: 100vh;

        border: 0;

        border-radius: 0;

        box-shadow: none;
    }


    .hero {
        height: 115px;
    }


    .profile {
        padding-left: 20px;
        padding-right: 20px;
    }


    .avatar {
        width: 136px;
        height: 136px;

        margin-top: -68px;
    }


    .company-logo {
        margin-top: 16px;
        margin-bottom: 18px;
    }


    .company-logo img {
        max-width: 235px;
        max-height: 62px;
    }


    h1 {
        font-size: 30px;
    }


    .description {
        font-size: 14px;
    }


    .save-contact {
        min-height: 54px;
    }


    .quick-actions {
        gap: 12px;
    }


    .detail-row {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   BARDZO MAŁE TELEFONY
   ========================================================= */

@media (max-width: 370px) {

    .profile {
        padding-left: 15px;
        padding-right: 15px;
    }


    h1 {
        font-size: 27px;
    }


    .company-logo img {
        max-width: 210px;
    }


    .quick-actions {
        gap: 2px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;

        transition: none !important;
    }
}