.hb-dpc-widget,
.hb-dpc-widget * {
    box-sizing: border-box;
}

.hb-dpc-widget {
    width: 100%;
    max-width: 640px;
    font-family: Arial, Helvetica, sans-serif;
}

.hb-dpc-main-card {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    padding: 28px 32px;
    background: #d8f1f2;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(43, 181, 186, 0.12);
}

.hb-dpc-visual {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-dpc-ring {
    position: absolute;
    inset: 0;
    width: 96px;
    height: 96px;
    transform-origin: 50% 50%;
    animation: hb-dpc-spin 2.4s linear infinite;
}

.hb-dpc-logo-circle {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(43, 181, 186, 0.2);
}

.hb-dpc-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.hb-dpc-person-icon {
    width: 28px;
    height: 28px;
    fill: #2bb5ba;
}

.hb-dpc-content {
    flex: 1 1 auto;
    min-width: 0;
}

.hb-dpc-content h3 {
    margin: 0 0 4px;
    padding: 0;
    color: #1a4444;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hb-dpc-description,
.hb-dpc-specialism,
.hb-dpc-small-text {
    padding: 0;
}

.hb-dpc-description {
    margin: 0 0 10px;
    color: #3a6060;
    font-size: 14px;
    line-height: 1.5;
}

.hb-dpc-specialism {
    margin: 0 0 4px;
    color: #3a6060;
    font-size: 14px;
    line-height: 1.5;
}

.hb-dpc-word {
    display: inline-block;
    color: #1a4444;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hb-dpc-word.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.hb-dpc-word.is-entering {
    opacity: 0;
    transform: translateY(6px);
}

.hb-dpc-small-text {
    margin: 0 0 16px;
    color: #7aabab;
    font-size: 12px;
    line-height: 1.4;
}

.hb-dpc-primary-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: #1a4444;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hb-dpc-primary-button:hover,
.hb-dpc-primary-button:focus {
    background: #2bb5ba;
    color: #fff !important;
    transform: translateY(-1px);
}

.hb-dpc-primary-button:focus-visible,
.hb-dpc-member-copy a:focus-visible {
    outline: 3px solid rgba(43, 181, 186, 0.35);
    outline-offset: 3px;
}

.hb-dpc-member-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 12px;
    padding: 20px 28px;
    background: #fff;
    border: 1px solid rgba(43, 181, 186, 0.25);
    border-radius: 16px;
}

.hb-dpc-edit-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 181, 186, 0.1);
    border-radius: 50%;
}

.hb-dpc-edit-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #2bb5ba;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hb-dpc-member-copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}

.hb-dpc-member-copy span {
    color: #5a7a7a;
}

.hb-dpc-member-copy a {
    display: inline-block;
    margin-left: 10px;
    padding-bottom: 1px;
    border-bottom: 2px solid #2bb5ba;
    color: #1a4444 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.hb-dpc-member-copy a:hover,
.hb-dpc-member-copy a:focus {
    color: #2bb5ba !important;
}

@keyframes hb-dpc-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .hb-dpc-main-card {
        align-items: flex-start;
        gap: 18px;
        padding: 22px 20px;
    }

    .hb-dpc-visual {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .hb-dpc-ring {
        width: 72px;
        height: 72px;
    }

    .hb-dpc-logo-circle {
        width: 43px;
        height: 43px;
    }

    .hb-dpc-content h3 {
        font-size: 18px;
    }

    .hb-dpc-primary-button {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
        text-align: center;
    }

    .hb-dpc-member-card {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }

    .hb-dpc-member-copy a {
        display: block;
        width: fit-content;
        margin-top: 4px;
        margin-left: 0;
    }
}

@media (max-width: 390px) {
    .hb-dpc-main-card {
        display: block;
    }

    .hb-dpc-visual {
        margin: 0 auto 15px;
    }

    .hb-dpc-content {
        text-align: center;
    }

    .hb-dpc-primary-button {
        max-width: 100%;
    }

    .hb-dpc-member-card {
        display: block;
        text-align: center;
    }

    .hb-dpc-edit-icon {
        margin: 0 auto 10px;
    }

    .hb-dpc-member-copy a {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-dpc-ring {
        animation: none;
    }

    .hb-dpc-word,
    .hb-dpc-primary-button {
        transition: none;
    }
}
