/* CM Klara – profesjonalny profil lekarza */

.cmk-profile {
    --cmk-profile-accent: #d71920;
    --cmk-profile-accent-dark: #ad1218;
    --cmk-profile-blue: #1f65ac;
    --cmk-profile-navy: #293746;
    --cmk-profile-text: #42474d;
    --cmk-profile-muted: #727b84;
    --cmk-profile-line: #e2e6ea;
    --cmk-profile-bg: #f4f7fa;
    box-sizing: border-box;
    width: min(1240px, calc(100vw - 40px));
    max-width: none;
    margin: 0 auto 56px;
    color: var(--cmk-profile-text);
    font-family: Poppins, Arial, sans-serif;
}

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

.cmk-profile--polnoc {
    --cmk-profile-accent: #2472bc;
    --cmk-profile-accent-dark: #18558f;
}

.cmk-profile__hero {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: stretch;
    margin: 0 0 30px;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    background: linear-gradient(115deg, #f1f4f7 0%, #fff 72%);
    border: 1px solid var(--cmk-profile-line);
    border-top: 5px solid var(--cmk-profile-accent);
    box-shadow: 0 14px 38px rgba(35, 49, 63, 0.08);
}

.cmk-profile__photo-wrap {
    min-height: 480px;
    overflow: hidden;
    background: #e7ebef;
    border-radius: 2px;
}

.cmk-profile__photo,
.cmk-profile__photo-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center top;
}

.cmk-profile__photo-placeholder {
    background: linear-gradient(145deg, #e8ebee, #dfe4e8);
}

.cmk-profile__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 0;
}

.cmk-profile__location {
    margin: 0 0 12px;
    color: var(--cmk-profile-blue);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.cmk-profile__name {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 20px;
    color: #30343a;
    font-family: Oswald, Arial, sans-serif;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.cmk-profile__name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: var(--cmk-profile-accent);
}

.cmk-profile__specialty {
    margin: 0 0 12px;
    color: #30343a;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.35;
    font-weight: 700;
}

.cmk-profile__badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 20px;
    padding: 7px 12px;
    color: #49515a;
    background: #e9eef3;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.cmk-profile__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
    padding: 20px 0;
    border-top: 1px solid var(--cmk-profile-line);
    border-bottom: 1px solid var(--cmk-profile-line);
}

.cmk-profile__fact {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.cmk-profile__fact-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--cmk-profile-blue);
    border: 1px solid rgba(31, 101, 172, 0.28);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
}

.cmk-profile__fact span:last-child {
    display: block;
    min-width: 0;
}

.cmk-profile__fact small,
.cmk-profile__fact strong {
    display: block;
}

.cmk-profile__fact small {
    margin-bottom: 3px;
    color: var(--cmk-profile-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmk-profile__fact strong {
    color: #353b42;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cmk-profile__lead {
    max-width: 760px;
    color: #59616a;
    font-size: 16px;
    line-height: 1.75;
}

.cmk-profile__lead p {
    margin-top: 0;
}

.cmk-profile__lead p:last-child {
    margin-bottom: 0;
}

.cmk-profile__actions,
.cmk-profile__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cmk-profile__actions {
    margin-top: 26px;
}

.cmk-profile__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cmk-profile__button:hover,
.cmk-profile__button:focus-visible {
    transform: translateY(-1px);
}

.cmk-profile__button--primary {
    color: #fff !important;
    background: var(--cmk-profile-accent);
    border-color: var(--cmk-profile-accent);
}

.cmk-profile__button--primary:hover,
.cmk-profile__button--primary:focus-visible {
    color: #fff !important;
    background: var(--cmk-profile-accent-dark);
    border-color: var(--cmk-profile-accent-dark);
}

.cmk-profile__button--phone {
    color: var(--cmk-profile-blue) !important;
    background: #fff;
    border-color: rgba(31, 101, 172, 0.45);
}

.cmk-profile__button--phone:hover,
.cmk-profile__button--phone:focus-visible {
    color: #fff !important;
    background: var(--cmk-profile-blue);
    border-color: var(--cmk-profile-blue);
}

.cmk-profile__sections {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 26px;
    align-items: start;
}

.cmk-profile__section {
    position: relative;
    min-width: 0;
    padding: clamp(26px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--cmk-profile-line);
    box-shadow: 0 8px 26px rgba(35, 49, 63, 0.045);
}

.cmk-profile__section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42%;
    height: 3px;
    background: var(--cmk-profile-accent);
}

.cmk-profile__section--consultations {
    grid-row: span 2;
}

.cmk-profile__section--prices {
    grid-column: 1 / -1;
}

.cmk-profile__section h2 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #343a40;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.2;
    font-weight: 700;
}

.cmk-profile__section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--cmk-profile-accent);
}

.cmk-profile__section p,
.cmk-profile__section li {
    color: #59616a;
    font-size: 15px;
    line-height: 1.75;
}

.cmk-profile__section p:first-child {
    margin-top: 0;
}

.cmk-profile__section p:last-child {
    margin-bottom: 0;
}

.cmk-profile__section ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmk-profile__section li {
    position: relative;
    margin: 0;
    padding-left: 22px;
}

.cmk-profile__section li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 2px solid var(--cmk-profile-accent);
    border-radius: 50%;
}

.cmk-profile__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
}

.cmk-profile__price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cmk-profile-line);
    color: #59616a;
    font-size: 15px;
    line-height: 1.5;
}

.cmk-profile__price-row strong {
    flex: 0 0 auto;
    color: var(--cmk-profile-accent);
}

.cmk-profile__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 26px;
    padding: clamp(24px, 3vw, 34px);
    background: linear-gradient(105deg, #eef5fb 0%, #fff 78%);
    border: 1px solid #dbe7f1;
}

.cmk-profile__cta-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--cmk-profile-blue);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmk-profile__cta strong {
    display: block;
    color: #35404a;
    font-size: clamp(20px, 2.3vw, 28px);
    line-height: 1.25;
}

.cmk-profile__cta p {
    margin: 7px 0 0;
    color: #67717b;
    font-size: 14px;
    line-height: 1.55;
}

.cmk-profile__cta-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .cmk-profile__hero {
        grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
        gap: 38px;
    }

    .cmk-profile__facts {
        grid-template-columns: 1fr 1fr;
    }

    .cmk-profile__fact:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .cmk-profile {
        width: min(100% - 30px, 760px);
    }

    .cmk-profile__hero,
    .cmk-profile__sections {
        grid-template-columns: 1fr;
    }

    .cmk-profile__photo-wrap,
    .cmk-profile__photo,
    .cmk-profile__photo-placeholder {
        min-height: 0;
    }

    .cmk-profile__photo-wrap {
        width: min(100%, 500px);
        aspect-ratio: 4 / 4.6;
    }

    .cmk-profile__section--consultations,
    .cmk-profile__section--prices {
        grid-row: auto;
        grid-column: auto;
    }

    .cmk-profile__cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .cmk-profile__cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .cmk-profile {
        width: min(100% - 22px, 560px);
        margin-bottom: 36px;
    }

    .cmk-profile__hero {
        gap: 26px;
        margin-bottom: 20px;
        padding: 18px;
    }

    .cmk-profile__name {
        font-size: clamp(36px, 12vw, 50px);
    }

    .cmk-profile__facts,
    .cmk-profile__section ul,
    .cmk-profile__prices {
        grid-template-columns: 1fr;
    }

    .cmk-profile__fact:last-child {
        grid-column: auto;
    }

    .cmk-profile__actions,
    .cmk-profile__cta-actions {
        display: grid;
        width: 100%;
    }

    .cmk-profile__button {
        width: 100%;
    }

    .cmk-profile__sections {
        gap: 20px;
    }

    .cmk-profile__section,
    .cmk-profile__cta {
        padding: 23px 19px;
    }

    .cmk-profile__price-row {
        display: grid;
        gap: 5px;
    }
}
